diff options
author | tb <> | 2022-07-07 13:20:12 +0000 |
---|---|---|
committer | tb <> | 2022-07-07 13:20:12 +0000 |
commit | f7277e127cd34eb2dc81ee25bd005d8768bafe25 (patch) | |
tree | 233d3fc3c4edf2b9dc873792e2201890b69dfd80 /src | |
parent | 1f888739fa08a5540cfbff134abdec75e5baf8cf (diff) | |
download | openbsd-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/testssl | 16 |
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 |
67 | done | 67 | done |
68 | for protocol in TLSv1.3; do | 68 | for 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 |
79 | done | 79 | done |
80 | for 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 | ||
91 | done | ||
80 | 92 | ||
81 | ############################################################################# | 93 | ############################################################################# |
82 | 94 | ||