summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbcook <>2015-09-27 18:20:18 +0000
committerbcook <>2015-09-27 18:20:18 +0000
commit517edd4aef01b023f59cf9b4ca4b8d1c7f226426 (patch)
treee81f5d631ead1d7acccc98f0b6e9221b2a5f15d1 /src
parent690895f392e7530ce4030abce648c3f5fc8dd5a5 (diff)
downloadopenbsd-517edd4aef01b023f59cf9b4ca4b8d1c7f226426.tar.gz
openbsd-517edd4aef01b023f59cf9b4ca4b8d1c7f226426.tar.bz2
openbsd-517edd4aef01b023f59cf9b4ca4b8d1c7f226426.zip
check if openssl(1) actually works before proceeding
It was possible for this test to pass even if the openssl command itself was missing.
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libssl/ssl/testssl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/regress/lib/libssl/ssl/testssl b/src/regress/lib/libssl/ssl/testssl
index 756f8e73fa..f156001456 100644
--- a/src/regress/lib/libssl/ssl/testssl
+++ b/src/regress/lib/libssl/ssl/testssl
@@ -7,6 +7,8 @@ ssltest="${4-./ssltest} -key $key -cert $cert -c_key $key -c_cert $cert"
7openssl=${5-openssl} 7openssl=${5-openssl}
8extra="$6" 8extra="$6"
9 9
10$openssl version || exit 1
11
10if $openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key' >/dev/null; then 12if $openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key' >/dev/null; then
11 dsa_cert=YES 13 dsa_cert=YES
12else 14else