diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2015-09-27 18:20:19 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2015-09-27 18:20:19 +0000 |
commit | 858b51949e068d09d9a4a9b155734913711ae31f (patch) | |
tree | 77896c0db9bd5e912fdc18175d916aca960f4d94 | |
parent | ff3a8a20fccac5ec393285ded9dfdf9bb2a75861 (diff) |
check if openssl(1) actually works before proceeding
It was possible for this test to pass even if the openssl command itself was
missing.
-rw-r--r-- | regress/lib/libssl/ssl/testssl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/regress/lib/libssl/ssl/testssl b/regress/lib/libssl/ssl/testssl index 756f8e73fa2..f156001456e 100644 --- a/regress/lib/libssl/ssl/testssl +++ b/regress/lib/libssl/ssl/testssl @@ -7,6 +7,8 @@ ssltest="${4-./ssltest} -key $key -cert $cert -c_key $key -c_cert $cert" openssl=${5-openssl} extra="$6" +$openssl version || exit 1 + if $openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key' >/dev/null; then dsa_cert=YES else |