summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2022-07-07 13:20:12 +0000
committertb <>2022-07-07 13:20:12 +0000
commitf7277e127cd34eb2dc81ee25bd005d8768bafe25 (patch)
tree233d3fc3c4edf2b9dc873792e2201890b69dfd80 /src
parent1f888739fa08a5540cfbff134abdec75e5baf8cf (diff)
downloadopenbsd-f7277e127cd34eb2dc81ee25bd005d8768bafe25.tar.gz
openbsd-f7277e127cd34eb2dc81ee25bd005d8768bafe25.tar.bz2
openbsd-f7277e127cd34eb2dc81ee25bd005d8768bafe25.zip
Use the security level knob in the test script.
from beck
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libssl/ssl/testssl16
1 files 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
66 done 66 done
67done 67done
68for protocol in TLSv1.3; do 68for protocol in TLSv1.3; do
69 echo "Testing ciphersuites for $protocol" 69 echo "Testing ciphersuites for $protocol at security level 2"
70 for cipher in `$openssl ciphers -v "$protocol" | 70 for cipher in `$openssl ciphers -v "$protocol" |
71 awk "/ $protocol / { print \\$1 }"`; do 71 awk "/ $protocol / { print \\$1 }"`; do
72 echo "Testing $cipher" 72 echo "Testing $cipher"
73 $ssltest -cipher $cipher 73 $ssltest -cipher $cipher -seclevel 2
74 if [ $? -ne 0 ] ; then 74 if [ $? -ne 0 ] ; then
75 echo "Failed $cipher" 75 echo "Failed $cipher"
76 exit 1 76 exit 1
77 fi 77 fi
78 done 78 done
79done 79done
80for protocol in TLSv1.3; do
81 echo "Testing ciphersuites for $protocol at security level 3"
82 for cipher in `$openssl ciphers -v "$protocol" |
83 awk "/ $protocol / { print \\$1 }"`; do
84 echo "Testing $cipher"
85 $ssltest -cipher $cipher -seclevel 3
86 if [ $? -eq 0 ] ; then
87 echo "Failed $cipher should not have succeeded"
88 exit 1
89 fi
90 done
91done
80 92
81############################################################################# 93#############################################################################
82 94