Include a timing test that works without RSA.
[openssl.git] / test / testssl
index 9fc9bb2de790f877d896d694bc54e45c51389d37..873df83128e9effd62074294ae292c13b570423e 100644 (file)
@@ -12,7 +12,7 @@ else
 fi
 ssltest="./ssltest -key $key -cert $cert -c_key $key -c_cert $cert"
 
 fi
 ssltest="./ssltest -key $key -cert $cert -c_key $key -c_cert $cert"
 
-if ../apps/openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key'; then
+if ../apps/openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key' >/dev/null; then
   dsa_cert=YES
 else
   dsa_cert=NO
   dsa_cert=YES
 else
   dsa_cert=NO
@@ -112,6 +112,9 @@ $ssltest -bio_pair -server_auth -client_auth $CA || exit 1
 
 #############################################################################
 
 
 #############################################################################
 
+echo test tls1 with 1024bit anonymous DH, multiple handshakes
+$ssltest -v -bio_pair -tls1 -cipher ADH -dhe1024dsa -num 10 -f -time || exit 1
+
 if ../apps/openssl list-standard-commands | grep '^rsa$' >/dev/null; then
   echo test tls1 with 1024bit RSA, no DHE, multiple handshakes
   ./ssltest -v -bio_pair -tls1 -cert ../apps/server2.pem -no_dhe -num 10 -f -time || exit 1
 if ../apps/openssl list-standard-commands | grep '^rsa$' >/dev/null; then
   echo test tls1 with 1024bit RSA, no DHE, multiple handshakes
   ./ssltest -v -bio_pair -tls1 -cert ../apps/server2.pem -no_dhe -num 10 -f -time || exit 1