From: Nikos Mavrogiannopoulos Date: Sat, 31 Dec 2016 12:27:10 +0000 (+0100) Subject: tests: don't check against 3DES if disabled in openssl X-Git-Tag: gnutls_3_6_0~1137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab8df7a1ce303cd96778b5cfb2c2f1900103fbd5;p=thirdparty%2Fgnutls.git tests: don't check against 3DES if disabled in openssl --- 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 || \ - 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 || \ + 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 || \