diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-12-31 13:27:10 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-12-31 14:51:09 +0100 |
commit | ab8df7a1ce303cd96778b5cfb2c2f1900103fbd5 (patch) | |
tree | c81957c7ce372122eedec6b204ff4b6cef1789de | |
parent | 47c5d00bdf1f9d50b4e34805e38b096110229576 (diff) | |
download | gnutls-ab8df7a1ce303cd96778b5cfb2c2f1900103fbd5.tar.gz |
tests: don't check against 3DES if disabled in openssl
-rwxr-xr-x | tests/suite/testcompat-main-openssl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/suite/testcompat-main-openssl b/tests/suite/testcompat-main-openssl index f6ed067ae2..1e48d95233 100755 --- a/tests/suite/testcompat-main-openssl +++ b/tests/suite/testcompat-main-openssl @@ -71,6 +71,9 @@ HAVE_SSL3=$? ${SERV} ciphers -v ALL 2>&1|grep -e CAMELLIA >/dev/null 2>&1 NO_CAMELLIA=$? +${SERV} ciphers -v ALL 2>&1|grep -e 3DES >/dev/null 2>&1 +NO_3DES=$? + ${SERV} ciphers -v ALL 2>&1|grep -e DSS >/dev/null 2>&1 NO_DSS=$? @@ -158,9 +161,11 @@ run_client_suite() { wait_server ${PID} # Test TLS 1.0 with RSA ciphersuite - echo "${PREFIX}Checking TLS 1.0 with RSA and 3DES-CBC..." - ${VALGRIND} "${CLI}" ${DEBUG} -p "${PORT}" 127.0.0.1 --priority "NONE:+3DES-CBC:+SIGN-ALL:+COMP-NULL:+MAC-ALL:+VERS-TLS1.0:+RSA${ADD}" --insecure --x509certfile "${CLI_CERT}" --x509keyfile "${CLI_KEY}" </dev/null >/dev/null || \ - fail ${PID} "Failed" + if test "${NO_3DES}" != 1; then + echo "${PREFIX}Checking TLS 1.0 with RSA and 3DES-CBC..." + ${VALGRIND} "${CLI}" ${DEBUG} -p "${PORT}" 127.0.0.1 --priority "NONE:+3DES-CBC:+SIGN-ALL:+COMP-NULL:+MAC-ALL:+VERS-TLS1.0:+RSA${ADD}" --insecure --x509certfile "${CLI_CERT}" --x509keyfile "${CLI_KEY}" </dev/null >/dev/null || \ + fail ${PID} "Failed" + fi echo "${PREFIX}Checking TLS 1.0 with RSA and AES-128-CBC..." ${VALGRIND} "${CLI}" ${DEBUG} -p "${PORT}" 127.0.0.1 --priority "NONE:+AES-128-CBC:+SIGN-ALL:+COMP-NULL:+MAC-ALL:+VERS-TLS1.0:+RSA${ADD}" --insecure --x509certfile "${CLI_CERT}" --x509keyfile "${CLI_KEY}" </dev/null >/dev/null || \ |