From a64c277588b070a93f88be3fcce68bbf2d986dc9 Mon Sep 17 00:00:00 2001 From: Pengyu Lv Date: Wed, 22 Feb 2023 09:30:20 +0800 Subject: [PATCH] compat.sh: Skip all *ECDH_* ciphersuites Signed-off-by: Pengyu Lv --- tests/compat.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/compat.sh b/tests/compat.sh index ae7c6829f..c6653f872 100755 --- a/tests/compat.sh +++ b/tests/compat.sh @@ -537,9 +537,10 @@ add_mbedtls_ciphersuites() # o_check_ciphersuite STANDARD_CIPHER_SUITE o_check_ciphersuite() { - if [ "${1#*ECDH_ECDSA*}" != "$1" ] && \ - [ "X${O_SUPPORT_ECDH}" = "XNO" ]; then - SKIP_NEXT="YES" + if [ "${O_SUPPORT_ECDH}" = "NO" ]; then + case "$1" in + *ECDH_*) SKIP_NEXT="YES" + esac fi } @@ -614,7 +615,7 @@ setup_arguments() case $($OPENSSL ciphers ALL) in *ECDH-ECDSA*) O_SUPPORT_ECDH="YES";; - *)O_SUPPORT_ECDH="NO";; + *) O_SUPPORT_ECDH="NO";; esac if [ "X$VERIFY" = "XYES" ];