From 8fa06dc6fad9d5c6280ad1801d9fdbb714b8bade Mon Sep 17 00:00:00 2001 From: Pengyu Lv Date: Fri, 1 Dec 2023 14:23:27 +0800 Subject: [PATCH] Align the case listing with case running in compat.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pengyu Lv Signed-off-by: Manuel Pégourié-Gonnard --- tests/compat.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tests/compat.sh b/tests/compat.sh index b608b83ae..2b742e345 100755 --- a/tests/compat.sh +++ b/tests/compat.sh @@ -135,17 +135,28 @@ print_test_case() { list_test_cases() { for MODE in $MODES; do for TYPE in $TYPES; do - for VERIFY in $VERIFIES; do + # PSK cipher suites do not allow client certificate verification. + SUB_VERIFIES=$VERIFIES + if [ "$TYPE" = "PSK" ]; then + SUB_VERIFIES="NO" + fi + for VERIFY in $SUB_VERIFIES; do VERIF=$(echo $VERIFY | tr '[:upper:]' '[:lower:]') reset_ciphersuites add_common_ciphersuites add_openssl_ciphersuites add_gnutls_ciphersuites add_mbedtls_ciphersuites + # For GnuTLS client -> Mbed TLS server, + # we need to force IPv4 by connecting to 127.0.0.1 but then auth fails + SUB_G_CIPHERS=$G_CIPHERS + if is_dtls "$MODE" && [ "X$VERIFY" = "XYES" ]; then + SUB_G_CIPHERS="" + fi print_test_case m O "$O_CIPHERS" print_test_case O m "$O_CIPHERS" print_test_case m G "$G_CIPHERS" - print_test_case G m "$G_CIPHERS" + print_test_case G m "$SUB_G_CIPHERS" print_test_case m m "$M_CIPHERS" done done