From f7277e127cd34eb2dc81ee25bd005d8768bafe25 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 7 Jul 2022 13:20:12 +0000 Subject: Use the security level knob in the test script. from beck --- src/regress/lib/libssl/ssl/testssl | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/regress/lib/libssl/ssl/testssl b/src/regress/lib/libssl/ssl/testssl index fe633e8797..43efaa6460 100644 --- a/src/regress/lib/libssl/ssl/testssl +++ b/src/regress/lib/libssl/ssl/testssl @@ -66,17 +66,29 @@ for protocol in SSLv3 TLSv1.2; do done done for protocol in TLSv1.3; do - echo "Testing ciphersuites for $protocol" + echo "Testing ciphersuites for $protocol at security level 2" for cipher in `$openssl ciphers -v "$protocol" | awk "/ $protocol / { print \\$1 }"`; do echo "Testing $cipher" - $ssltest -cipher $cipher + $ssltest -cipher $cipher -seclevel 2 if [ $? -ne 0 ] ; then echo "Failed $cipher" exit 1 fi done done +for protocol in TLSv1.3; do + echo "Testing ciphersuites for $protocol at security level 3" + for cipher in `$openssl ciphers -v "$protocol" | + awk "/ $protocol / { print \\$1 }"`; do + echo "Testing $cipher" + $ssltest -cipher $cipher -seclevel 3 + if [ $? -eq 0 ] ; then + echo "Failed $cipher should not have succeeded" + exit 1 + fi + done +done ############################################################################# -- cgit v1.2.3-55-g6feb