From e43556b6bf96f970c5d69a3a91f701ac60704b33 Mon Sep 17 00:00:00 2001 From: Yuto Takano Date: Mon, 21 Jun 2021 20:07:12 +0100 Subject: [PATCH] Remove hard exit with MAX_INTERMEDIATE_CA in ssl-opt.sh - Replace last remaining dependency on config.py with query_config - Replace hard exit with `requires_config_value_at_least` and `requires_config_value_at_most` to maintain the same effect Signed-off-by: Yuto Takano --- tests/ssl-opt.sh | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index 355e712bd4..ac10b26f05 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -3899,24 +3899,14 @@ run_test "Authentication: client no cert, openssl server required" \ -c "skip write certificate verify" \ -c "! mbedtls_ssl_handshake returned" -# The "max_int chain" tests assume that MAX_INTERMEDIATE_CA is set to its -# default value (8) +# config.h contains a value for MBEDTLS_X509_MAX_INTERMEDIATE_CA that is +# different from the script's assumed default value (below). +# Relevant tests are skipped if they do not match. MAX_IM_CA='8' -MAX_IM_CA_CONFIG=$( ../scripts/config.py get MBEDTLS_X509_MAX_INTERMEDIATE_CA) - -if [ -n "$MAX_IM_CA_CONFIG" ] && [ "$MAX_IM_CA_CONFIG" -ne "$MAX_IM_CA" ]; then - cat <