summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinoguchi <>2018-09-08 03:39:51 +0000
committerinoguchi <>2018-09-08 03:39:51 +0000
commit19eccec49d1d4ec129bb154c8da3cbd82ef0c723 (patch)
treea25c65ac31d2535ff693ca9ef1c0dbfb3a772f20 /src
parenteee043ff134cb8e7597ddd903c18a78492a51f7a (diff)
downloadopenbsd-19eccec49d1d4ec129bb154c8da3cbd82ef0c723.tar.gz
openbsd-19eccec49d1d4ec129bb154c8da3cbd82ef0c723.tar.bz2
openbsd-19eccec49d1d4ec129bb154c8da3cbd82ef0c723.zip
Test more ciphers and randomize the order in regress appstest.sh
- change test target ciphers - randomize the test ciphers order - display test cipher count
Diffstat (limited to 'src')
-rwxr-xr-xsrc/regress/usr.bin/openssl/appstest.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/regress/usr.bin/openssl/appstest.sh b/src/regress/usr.bin/openssl/appstest.sh
index 04b354f57b..744153412b 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.10 2018/09/07 14:11:39 inoguchi Exp $ 3# $OpenBSD: appstest.sh,v 1.11 2018/09/08 03:39:51 inoguchi Exp $
4# 4#
5# Copyright (c) 2016 Kinichiro Inoguchi <inoguchi@openbsd.org> 5# Copyright (c) 2016 Kinichiro Inoguchi <inoguchi@openbsd.org>
6# 6#
@@ -953,6 +953,7 @@ $openssl_bin s_server -accept $port -CAfile $ca_cert \
953 -cert $server_cert -key $server_key -pass pass:$server_pass \ 953 -cert $server_cert -key $server_key -pass pass:$server_pass \
954 -context "appstest.sh" -id_prefix "APPSTEST.SH" -crl_check \ 954 -context "appstest.sh" -id_prefix "APPSTEST.SH" -crl_check \
955 -nextprotoneg "http/1.1,spdy/3" -alpn "http/1.1,spdy/3" -www \ 955 -nextprotoneg "http/1.1,spdy/3" -alpn "http/1.1,spdy/3" -www \
956 -cipher ALL \
956 -msg -tlsextdebug > $s_server_out 2>&1 & 957 -msg -tlsextdebug > $s_server_out 2>&1 &
957check_exit_status $? 958check_exit_status $?
958s_server_pid=$! 959s_server_pid=$!
@@ -1004,13 +1005,16 @@ check_exit_status $?
1004grep 'Verify return code: 0 (ok)' $s_client_out > /dev/null 1005grep 'Verify return code: 0 (ok)' $s_client_out > /dev/null
1005check_exit_status $? 1006check_exit_status $?
1006 1007
1007# all available TLSv1.2 ciphers 1008# all available ciphers with random order
1008 1009
1009ciphers=`$openssl_bin ciphers TLSv1.2:-ECDSA:-ADH:-NULL | sed 's/:/ /g'` 1010ciphers=`$openssl_bin ciphers -v ALL:!ECDSA:!kGOST | awk '{print $1}' | sort -R`
1011cnum=0
1010for c in $ciphers ; do 1012for c in $ciphers ; do
1011 s_client_out=$user1_dir/s_client_tls_$c.out 1013 cnum=`expr $cnum + 1`
1014 cnstr=`printf %03d $cnum`
1015 s_client_out=$user1_dir/s_client_tls_${cnstr}_${c}.out
1012 1016
1013 start_message "s_client ... connect to SSL/TLS test server with $c" 1017 start_message "s_client ... connect to SSL/TLS test server with [ $cnstr ] $c"
1014 $openssl_bin s_client -connect $host:$port -CAfile $ca_cert -pause -prexit \ 1018 $openssl_bin s_client -connect $host:$port -CAfile $ca_cert -pause -prexit \
1015 -cipher $c -msg -tlsextdebug < /dev/null > $s_client_out 2>&1 1019 -cipher $c -msg -tlsextdebug < /dev/null > $s_client_out 2>&1
1016 check_exit_status $? 1020 check_exit_status $?