]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Check for openssl 1.0.x to test DTLS.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 30 Apr 2011 20:28:24 +0000 (22:28 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 30 Apr 2011 20:28:24 +0000 (22:28 +0200)
tests/suite/testcompat-main

index 18ec3b1926ac79991b7ac5ee8cfd756ac84726ac..7a5809a00ceae6d728e6f6601d5388aeb2b86169 100755 (executable)
@@ -102,6 +102,12 @@ launch_bare_server $$ s_server -quiet -accept $PORT -keyform pem -certform pem -
 PID=$!
 wait_server $PID
 
+openssl version|grep -e 1\.0 >/dev/null 2>&1
+if test $? != 0;then
+  echo "OpenSSL 1.0.0 is required for DTLS tests"
+  exit 77
+fi
+
 # Test DTLS 1.0 with RSA ciphersuite
 echo "Checking DTLS 1.0 with RSA..." 
 $CLI $DEBUG -p $PORT 127.0.0.1 --priority "NONE:+CIPHER-ALL:+SIGN-ALL:+COMP-NULL:+MAC-ALL:+VERS-DTLS1.0:+RSA" --udp --insecure --x509certfile $CLI_CERT --x509keyfile $CLI_KEY </dev/null >/dev/null || \