summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinoguchi <>2020-05-14 14:09:11 +0000
committerinoguchi <>2020-05-14 14:09:11 +0000
commit7b303087ae6334b1da6221bafd39395d16d7f065 (patch)
treeb2281ad9311001bc49c3984151db8a5ce1f6f95b /src
parent146b84d92921afde9717423e5d8701a93be0e4f1 (diff)
downloadopenbsd-7b303087ae6334b1da6221bafd39395d16d7f065.tar.gz
openbsd-7b303087ae6334b1da6221bafd39395d16d7f065.tar.bz2
openbsd-7b303087ae6334b1da6221bafd39395d16d7f065.zip
Skip protocol version message check in appstest.sh
- OpenSSL1.1.1 with TLSv1.3 does not call SSL_SESSION_print() until NewSessionTicket arrival - Shorten function name
Diffstat (limited to 'src')
-rwxr-xr-xsrc/regress/usr.bin/openssl/appstest.sh25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/regress/usr.bin/openssl/appstest.sh b/src/regress/usr.bin/openssl/appstest.sh
index 42113d46dd..ed7332c4b3 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.33 2020/05/14 12:29:55 inoguchi Exp $ 3# $OpenBSD: appstest.sh,v 1.34 2020/05/14 14:09:11 inoguchi Exp $
4# 4#
5# Copyright (c) 2016 Kinichiro Inoguchi <inoguchi@openbsd.org> 5# Copyright (c) 2016 Kinichiro Inoguchi <inoguchi@openbsd.org>
6# 6#
@@ -1274,9 +1274,10 @@ function test_pkcs {
1274 check_exit_status $? 1274 check_exit_status $?
1275} 1275}
1276 1276
1277function test_server_client_by_protocol_version { 1277function test_sc_by_protocol_version {
1278 ver=$1 1278 cid=$1
1279 msg=$2 1279 ver=$2
1280 msg=$3
1280 1281
1281 s_client_out=$user1_dir/s_client_${sc}_${ver}.out 1282 s_client_out=$user1_dir/s_client_${sc}_${ver}.out
1282 1283
@@ -1286,8 +1287,12 @@ function test_server_client_by_protocol_version {
1286 -$ver -msg -tlsextdebug < /dev/null > $s_client_out 2>&1 1287 -$ver -msg -tlsextdebug < /dev/null > $s_client_out 2>&1
1287 check_exit_status $? 1288 check_exit_status $?
1288 1289
1289 grep "$msg" $s_client_out > /dev/null 1290 # OpenSSL1.1.1 with TLSv1.3 does not call SSL_SESSION_print() until
1290 check_exit_status $? 1291 # NewSessionTicket arrival
1292 if ! [ $cid = "1" -a $ver = "tls1_3" ] ; then
1293 grep "$msg" $s_client_out > /dev/null
1294 check_exit_status $?
1295 fi
1291 1296
1292 grep 'Verify return code: 0 (ok)' $s_client_out > /dev/null 1297 grep 'Verify return code: 0 (ok)' $s_client_out > /dev/null
1293 check_exit_status $? 1298 check_exit_status $?
@@ -1342,10 +1347,10 @@ function test_server_client {
1342 sleep 1 1347 sleep 1
1343 1348
1344 # test by protocol version 1349 # test by protocol version
1345 test_server_client_by_protocol_version tls1 'Protocol : TLSv1$' 1350 test_sc_by_protocol_version $c_id tls1 'Protocol : TLSv1$'
1346 test_server_client_by_protocol_version tls1_1 'Protocol : TLSv1\.1$' 1351 test_sc_by_protocol_version $c_id tls1_1 'Protocol : TLSv1\.1$'
1347 test_server_client_by_protocol_version tls1_2 'Protocol : TLSv1\.2$' 1352 test_sc_by_protocol_version $c_id tls1_2 'Protocol : TLSv1\.2$'
1348 test_server_client_by_protocol_version tls1_3 'Protocol : TLSv1\.3$' 1353 test_sc_by_protocol_version $c_id tls1_3 'Protocol : TLSv1\.3$'
1349 1354
1350 # all available ciphers with random order 1355 # all available ciphers with random order
1351 1356