From aac4a18c7244667683abb07c55687fbe9e44eacd Mon Sep 17 00:00:00 2001 From: jsing <> Date: Thu, 9 Apr 2020 17:55:45 +0000 Subject: Revise test to handle the fact that TLSv1.3 cipher suites are now being included in the output from `openssl ciphers`. --- src/regress/lib/libssl/ssl/testssl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/regress/lib/libssl/ssl/testssl b/src/regress/lib/libssl/ssl/testssl index 428870bb43..a785e9c8ed 100644 --- a/src/regress/lib/libssl/ssl/testssl +++ b/src/regress/lib/libssl/ssl/testssl @@ -55,7 +55,8 @@ $ssltest -bio_pair -server_auth -client_auth -app_verify $CA $extra || exit 1 echo "Testing ciphersuites" for protocol in SSLv3 TLSv1.2; do echo "Testing ciphersuites for $protocol" - for cipher in `$openssl ciphers "$protocol+aRSA" | tr ':' ' '`; do + for cipher in `$openssl ciphers -v "$protocol+aRSA" | + awk "/ $protocol / { print \\$1 }"`; do echo "Testing $cipher" $ssltest -cipher $cipher if [ $? -ne 0 ] ; then @@ -107,7 +108,8 @@ $ssltest -dtls1 -server_auth -client_auth $CA $extra || exit 1 echo "Testing DTLS ciphersuites" for protocol in SSLv3; do echo "Testing ciphersuites for $protocol" - for cipher in `$openssl ciphers "RSA+$protocol" | tr ':' '\n' | + for cipher in `$openssl ciphers -v "RSA+$protocol" | + awk "/ $protocol / { print \\$1 }" | grep -v RC4`; do echo "Testing $cipher" $ssltest -cipher $cipher -dtls1 -- cgit v1.2.3-55-g6feb