From 48daf116bc22f85719fc5d16fb0e632fb74fa73c Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 21 Jun 2014 16:48:05 +0000 Subject: Add DTLS support to ssltest and wire up some regress tests. ok miod@ --- src/regress/lib/libssl/ssl/testssl | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'src/regress/lib/libssl/ssl/testssl') diff --git a/src/regress/lib/libssl/ssl/testssl b/src/regress/lib/libssl/ssl/testssl index ad5624d917..80f3a1c511 100644 --- a/src/regress/lib/libssl/ssl/testssl +++ b/src/regress/lib/libssl/ssl/testssl @@ -158,4 +158,32 @@ else $ssltest -bio_pair -tls1 -cipher SRP -srpuser test -srppass abc123 fi -exit 0 +# +# DTLS +# + +echo test dtlsv1 +$ssltest -dtls1 $extra || exit 1 + +echo test dtlsv1 with server authentication +$ssltest -dtls1 -server_auth $CA $extra || exit 1 + +echo test dtlsv1 with client authentication +$ssltest -dtls1 -client_auth $CA $extra || exit 1 + +echo test dtlsv1 with both client and server authentication +$ssltest -dtls1 -server_auth -client_auth $CA $extra || exit 1 + +echo "Testing DTLS ciphersuites" +for protocol in SSLv3; do + echo "Testing ciphersuites for $protocol" + for cipher in `openssl ciphers "RSA+$protocol" | tr ':' '\n' | + grep -v RC4`; do + echo "Testing $cipher" + $ssltest -cipher $cipher -dtls1 + if [ $? -ne 0 ] ; then + echo "Failed $cipher" + exit 1 + fi + done +done -- cgit v1.2.3-55-g6feb