summaryrefslogtreecommitdiff
path: root/regress/lib/libssl/ssl
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2020-04-09 17:55:46 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2020-04-09 17:55:46 +0000
commit0a72b302f6686df8ad3b2ffb4e5f32730c1e2af8 (patch)
tree00cef1af61f12d10794c2be85ad15b92c3b4e09c /regress/lib/libssl/ssl
parentcd73c96cecd86cb5d3cfb8b33ace8b7260a5a8c7 (diff)
Revise test to handle the fact that TLSv1.3 cipher suites are now being
included in the output from `openssl ciphers`.
Diffstat (limited to 'regress/lib/libssl/ssl')
-rw-r--r--regress/lib/libssl/ssl/testssl6
1 files changed, 4 insertions, 2 deletions
diff --git a/regress/lib/libssl/ssl/testssl b/regress/lib/libssl/ssl/testssl
index 428870bb431..a785e9c8ed4 100644
--- a/regress/lib/libssl/ssl/testssl
+++ b/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