summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinoguchi <>2021-09-20 10:45:01 +0000
committerinoguchi <>2021-09-20 10:45:01 +0000
commitee6a1999fb960518680dc5b1b76490addf12bc89 (patch)
tree24dc3d9f67f417b9420947756345c206aa884ce5
parent88a8d6683055f73a054da9693c5a730d3201b0cb (diff)
downloadopenbsd-ee6a1999fb960518680dc5b1b76490addf12bc89.tar.gz
openbsd-ee6a1999fb960518680dc5b1b76490addf12bc89.tar.bz2
openbsd-ee6a1999fb960518680dc5b1b76490addf12bc89.zip
Fix appstest.sh for testing with OpenSSL 3.0
- Fix 'Server Temp Key' check to work with both words "P-384" and "secp384r1". - Test TLSv1 and TLSv1.1 only if OpenSSL version is 1.x.
-rwxr-xr-xsrc/regress/usr.bin/openssl/appstest.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/regress/usr.bin/openssl/appstest.sh b/src/regress/usr.bin/openssl/appstest.sh
index 457e671ece..c5b1f21869 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.51 2021/06/21 13:29:05 inoguchi Exp $ 3# $OpenBSD: appstest.sh,v 1.52 2021/09/20 10:45:01 inoguchi Exp $
4# 4#
5# Copyright (c) 2016 Kinichiro Inoguchi <inoguchi@openbsd.org> 5# Copyright (c) 2016 Kinichiro Inoguchi <inoguchi@openbsd.org>
6# 6#
@@ -1510,7 +1510,7 @@ function test_sc_by_protocol_version {
1510 fi 1510 fi
1511 1511
1512 if [ $ver = "tls1_3" ] ; then 1512 if [ $ver = "tls1_3" ] ; then
1513 grep 'Server Temp Key: ECDH, P-384, 384 bits' $s_client_out \ 1513 grep 'Server Temp Key: ECDH, .*384.*, 384 bits' $s_client_out \
1514 > /dev/null 1514 > /dev/null
1515 check_exit_status $? 1515 check_exit_status $?
1516 fi 1516 fi
@@ -1770,8 +1770,10 @@ function test_server_client {
1770 sleep 1 1770 sleep 1
1771 1771
1772 # test by protocol version 1772 # test by protocol version
1773 if [ "$other_openssl_version" = "OpenSSL 1." ] ; then
1773 test_sc_by_protocol_version $sc tls1 'Protocol : TLSv1$' $c_id 1774 test_sc_by_protocol_version $sc tls1 'Protocol : TLSv1$' $c_id
1774 test_sc_by_protocol_version $sc tls1_1 'Protocol : TLSv1\.1$' $c_id 1775 test_sc_by_protocol_version $sc tls1_1 'Protocol : TLSv1\.1$' $c_id
1776 fi
1775 test_sc_by_protocol_version $sc tls1_2 'Protocol : TLSv1\.2$' $c_id 1777 test_sc_by_protocol_version $sc tls1_2 'Protocol : TLSv1\.2$' $c_id
1776 test_sc_by_protocol_version $sc tls1_3 'Protocol : TLSv1\.3$' $c_id 1778 test_sc_by_protocol_version $sc tls1_3 'Protocol : TLSv1\.3$' $c_id
1777 1779
@@ -1973,6 +1975,7 @@ function test_version {
1973 1975
1974openssl_bin=${OPENSSL:-/usr/bin/openssl} 1976openssl_bin=${OPENSSL:-/usr/bin/openssl}
1975other_openssl_bin=${OTHER_OPENSSL:-/usr/local/bin/eopenssl11} 1977other_openssl_bin=${OTHER_OPENSSL:-/usr/local/bin/eopenssl11}
1978other_openssl_version=`$other_openssl_bin version | cut -b 1-10`
1976 1979
1977ecdsa_tests=0 1980ecdsa_tests=0
1978gost_tests=0 1981gost_tests=0