Enable SSLv2 testing if OPENSSL_CMD is set

This commit is contained in:
Manuel Pégourié-Gonnard 2014-03-28 10:12:38 +01:00
parent d6aebe108a
commit 913030c286
2 changed files with 18 additions and 7 deletions

View file

@ -5,16 +5,15 @@
# Check each common ciphersuite, with each version, both ways (client/server),
# with and without client authentication.
set -u
# test if those two are set in the environment before assigning defaults
if [ -n "$GNUTLS_CLI" -a -n "$GNUTLS_SERV" ]; then
if [ -n "${GNUTLS_CLI:-}" -a -n "${GNUTLS_SERV:-}" ]; then
GNUTLS_AVAILABLE=1
else
GNUTLS_AVAILABLE=0
fi
# catch undefined variables from now on
set -u
# initialise counters
let "tests = 0"
let "failed = 0"