mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-09 15:45:37 +00:00
Remove the check in ssl-opt.sh for MAX_INTERMEDIATE_CA
The check uses grep, not config.pl, on the x509 headers - not where it should be configured - config.h. grep syntax isn't very portable. Without config.pl it's quite hard to do this check properly so removing this check.
This commit is contained in:
parent
d4d70c4985
commit
266f3446b7
|
@ -1948,23 +1948,6 @@ run_test "Authentication: client no cert, ssl3" \
|
||||||
-C "! mbedtls_ssl_handshake returned" \
|
-C "! mbedtls_ssl_handshake returned" \
|
||||||
-S "X509 - Certificate verification failed"
|
-S "X509 - Certificate verification failed"
|
||||||
|
|
||||||
# The "max_int chain" tests assume that MAX_INTERMEDIATE_CA is set to its
|
|
||||||
# default value (8)
|
|
||||||
|
|
||||||
MAX_IM_CA=8
|
|
||||||
MAX_IM_CA_REGEX="#define[[:blank:]]\+MBEDTLS_X509_MAX_INTERMEDIATE_CA"
|
|
||||||
MAX_IM_CA_REGEX="${MAX_IM_CA_REGEX}[[:blank:]]\+${MAX_IM_CA}[[:blank:]]*$"
|
|
||||||
|
|
||||||
if grep "${MAX_IM_CA_REGEX}" ../include/mbedtls/x509.h > /dev/null;
|
|
||||||
then :;
|
|
||||||
else
|
|
||||||
echo "$(echo 'The tests for long intermediate chains assume the value' \
|
|
||||||
${MAX_IM_CA} 'for MBEDTLS_X509_MAX_INTERMEDIATE_CA.' \
|
|
||||||
'To test other values, please manually adapt the max_int' \
|
|
||||||
'tests in ssl-opt.sh.')"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
run_test "Authentication: server max_int chain, client default" \
|
run_test "Authentication: server max_int chain, client default" \
|
||||||
"$P_SRV crt_file=data_files/dir-maxpath/c09.pem \
|
"$P_SRV crt_file=data_files/dir-maxpath/c09.pem \
|
||||||
key_file=data_files/dir-maxpath/09.key" \
|
key_file=data_files/dir-maxpath/09.key" \
|
||||||
|
|
Loading…
Reference in a new issue