diff options
author | inoguchi <> | 2018-09-07 14:11:39 +0000 |
---|---|---|
committer | inoguchi <> | 2018-09-07 14:11:39 +0000 |
commit | eee043ff134cb8e7597ddd903c18a78492a51f7a (patch) | |
tree | 6e59e293eb12384976238fd5f4f6da86fd6a3ae7 /src | |
parent | 9a5d30a760f47be602bf70b41f03dcbc08c0fe04 (diff) | |
download | openbsd-eee043ff134cb8e7597ddd903c18a78492a51f7a.tar.gz openbsd-eee043ff134cb8e7597ddd903c18a78492a51f7a.tar.bz2 openbsd-eee043ff134cb8e7597ddd903c18a78492a51f7a.zip |
tests all available TLSv1.2 ciphers
Diffstat (limited to 'src')
-rwxr-xr-x | src/regress/usr.bin/openssl/appstest.sh | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/regress/usr.bin/openssl/appstest.sh b/src/regress/usr.bin/openssl/appstest.sh index 79b863392d..04b354f57b 100755 --- a/src/regress/usr.bin/openssl/appstest.sh +++ b/src/regress/usr.bin/openssl/appstest.sh | |||
@@ -1,6 +1,6 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | 2 | # |
3 | # $OpenBSD: appstest.sh,v 1.9 2018/08/27 06:50:13 inoguchi Exp $ | 3 | # $OpenBSD: appstest.sh,v 1.10 2018/09/07 14:11:39 inoguchi Exp $ |
4 | # | 4 | # |
5 | # Copyright (c) 2016 Kinichiro Inoguchi <inoguchi@openbsd.org> | 5 | # Copyright (c) 2016 Kinichiro Inoguchi <inoguchi@openbsd.org> |
6 | # | 6 | # |
@@ -1004,20 +1004,23 @@ check_exit_status $? | |||
1004 | grep 'Verify return code: 0 (ok)' $s_client_out > /dev/null | 1004 | grep 'Verify return code: 0 (ok)' $s_client_out > /dev/null |
1005 | check_exit_status $? | 1005 | check_exit_status $? |
1006 | 1006 | ||
1007 | # cipher = CHACHA20 | 1007 | # all available TLSv1.2 ciphers |
1008 | 1008 | ||
1009 | s_client_out=$user1_dir/s_client_tls_chacha20.out | 1009 | ciphers=`$openssl_bin ciphers TLSv1.2:-ECDSA:-ADH:-NULL | sed 's/:/ /g'` |
1010 | for c in $ciphers ; do | ||
1011 | s_client_out=$user1_dir/s_client_tls_$c.out | ||
1010 | 1012 | ||
1011 | start_message "s_client ... connect to SSL/TLS test server with CHACHA20" | 1013 | start_message "s_client ... connect to SSL/TLS test server with $c" |
1012 | $openssl_bin s_client -connect $host:$port -CAfile $ca_cert -pause -prexit \ | 1014 | $openssl_bin s_client -connect $host:$port -CAfile $ca_cert -pause -prexit \ |
1013 | -cipher 'CHACHA20' -msg -tlsextdebug < /dev/null > $s_client_out 2>&1 | 1015 | -cipher $c -msg -tlsextdebug < /dev/null > $s_client_out 2>&1 |
1014 | check_exit_status $? | 1016 | check_exit_status $? |
1015 | 1017 | ||
1016 | grep 'Cipher : .*-CHACHA20-.*' $s_client_out > /dev/null | 1018 | grep "Cipher : $c" $s_client_out > /dev/null |
1017 | check_exit_status $? | 1019 | check_exit_status $? |
1018 | 1020 | ||
1019 | grep 'Verify return code: 0 (ok)' $s_client_out > /dev/null | 1021 | grep 'Verify return code: 0 (ok)' $s_client_out > /dev/null |
1020 | check_exit_status $? | 1022 | check_exit_status $? |
1023 | done | ||
1021 | 1024 | ||
1022 | # Get session ticket to reuse | 1025 | # Get session ticket to reuse |
1023 | 1026 | ||