summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinoguchi <>2020-05-19 12:08:39 +0000
committerinoguchi <>2020-05-19 12:08:39 +0000
commitb5cc6d8e187a01ba86228b83989611da5e8f8471 (patch)
treede2a287339fa9f016589dc9c72617110ee395f34
parent703cde656ae315f4314348b60e9b2fc02a42f0dc (diff)
downloadopenbsd-b5cc6d8e187a01ba86228b83989611da5e8f8471.tar.gz
openbsd-b5cc6d8e187a01ba86228b83989611da5e8f8471.tar.bz2
openbsd-b5cc6d8e187a01ba86228b83989611da5e8f8471.zip
Add -groups test for s_server and s_client in appstest.sh
-rwxr-xr-xsrc/regress/usr.bin/openssl/appstest.sh20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/regress/usr.bin/openssl/appstest.sh b/src/regress/usr.bin/openssl/appstest.sh
index 98d619c539..b780c27e90 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.42 2020/05/18 13:55:04 inoguchi Exp $ 3# $OpenBSD: appstest.sh,v 1.43 2020/05/19 12:08: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#
@@ -1433,14 +1433,27 @@ function test_sc_by_protocol_version {
1433 return 1433 return
1434 fi 1434 fi
1435 1435
1436 groups_and_cipher=""
1437 if [ $ver = "tls1_3" ] ; then
1438 # Expect HelloRetryRequest
1439 groups_and_cipher="-groups P-521:P-384 -cipher ALL"
1440 fi
1441
1436 s_client_out=$user1_dir/s_client_${sc}_${ver}.out 1442 s_client_out=$user1_dir/s_client_${sc}_${ver}.out
1437 1443
1438 start_message "s_client ... connect to TLS/SSL test server by $ver" 1444 start_message "s_client ... connect to TLS/SSL test server by $ver"
1439 sleep $test_pause_sec 1445 sleep $test_pause_sec
1440 $c_bin s_client -connect $host:$port -CAfile $ca_cert \ 1446 $c_bin s_client -connect $host:$port -CAfile $ca_cert \
1441 -$ver -msg -tlsextdebug < /dev/null > $s_client_out 2>&1 1447 -$ver $groups_and_cipher \
1448 -msg -tlsextdebug < /dev/null > $s_client_out 2>&1
1442 check_exit_status $? 1449 check_exit_status $?
1443 1450
1451 if [ $ver = "tls1_3" ] ; then
1452 grep 'Server Temp Key: ECDH, P-384, 384 bits' $s_client_out \
1453 > /dev/null
1454 check_exit_status $?
1455 fi
1456
1444 # OpenSSL1.1.1 with TLSv1.3 does not call SSL_SESSION_print() until 1457 # OpenSSL1.1.1 with TLSv1.3 does not call SSL_SESSION_print() until
1445 # NewSessionTicket arrival 1458 # NewSessionTicket arrival
1446 if ! [ $cid = "1" -a $ver = "tls1_3" ] ; then 1459 if ! [ $cid = "1" -a $ver = "tls1_3" ] ; then
@@ -1693,7 +1706,8 @@ function test_server_client {
1693 -cert $crt -key $key -pass pass:$pwd \ 1706 -cert $crt -key $key -pass pass:$pwd \
1694 -context "appstest.sh" -id_prefix "APPSTEST.SH" -crl_check \ 1707 -context "appstest.sh" -id_prefix "APPSTEST.SH" -crl_check \
1695 -alpn "http/1.1,spdy/3" -www -cipher ALL $extra_opts \ 1708 -alpn "http/1.1,spdy/3" -www -cipher ALL $extra_opts \
1696 -msg -tlsextdebug -verify 3 > $s_server_out 2>&1 & 1709 -msg -tlsextdebug -verify 3 -groups X25519:P-384:P-256 \
1710 > $s_server_out 2>&1 &
1697 check_exit_status $? 1711 check_exit_status $?
1698 s_server_pid=$! 1712 s_server_pid=$!
1699 echo "s_server pid = [ $s_server_pid ]" 1713 echo "s_server pid = [ $s_server_pid ]"