From 4be89414ab99c4c76b8e6ab5f22495a63f4bdb59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 9 Apr 2024 11:16:58 +0200 Subject: [PATCH] compat.sh: always filter ciphersuites MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We always want to call 'filter' regardless of the values of FILTER and EXCLUDE because it also performs standard-defined filtering like removing RC4 ciphersuites with DTLS. (AFAICS, not calling 'filter' when we thought it was not needed was just a performance optimisation.) Signed-off-by: Manuel Pégourié-Gonnard --- tests/compat.sh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/tests/compat.sh b/tests/compat.sh index c2ea8821d..014036951 100755 --- a/tests/compat.sh +++ b/tests/compat.sh @@ -272,17 +272,9 @@ filter() filter_ciphersuites() { - if [ "X" != "X$FILTER" -o "X" != "X$EXCLUDE" ]; - then - # Ciphersuite for Mbed TLS - M_CIPHERS=$( filter "$M_CIPHERS" ) - - # Ciphersuite for OpenSSL - O_CIPHERS=$( filter "$O_CIPHERS" ) - - # Ciphersuite for GnuTLS - G_CIPHERS=$( filter "$G_CIPHERS" ) - fi + M_CIPHERS=$( filter "$M_CIPHERS" ) + O_CIPHERS=$( filter "$O_CIPHERS" ) + G_CIPHERS=$( filter "$G_CIPHERS" ) } reset_ciphersuites()