summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/ssl/testssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libssl/ssl/testssl')
-rw-r--r--src/regress/lib/libssl/ssl/testssl30
1 files changed, 29 insertions, 1 deletions
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
158 $ssltest -bio_pair -tls1 -cipher SRP -srpuser test -srppass abc123 158 $ssltest -bio_pair -tls1 -cipher SRP -srpuser test -srppass abc123
159fi 159fi
160 160
161exit 0 161#
162# DTLS
163#
164
165echo test dtlsv1
166$ssltest -dtls1 $extra || exit 1
167
168echo test dtlsv1 with server authentication
169$ssltest -dtls1 -server_auth $CA $extra || exit 1
170
171echo test dtlsv1 with client authentication
172$ssltest -dtls1 -client_auth $CA $extra || exit 1
173
174echo test dtlsv1 with both client and server authentication
175$ssltest -dtls1 -server_auth -client_auth $CA $extra || exit 1
176
177echo "Testing DTLS ciphersuites"
178for protocol in SSLv3; do
179 echo "Testing ciphersuites for $protocol"
180 for cipher in `openssl ciphers "RSA+$protocol" | tr ':' '\n' |
181 grep -v RC4`; do
182 echo "Testing $cipher"
183 $ssltest -cipher $cipher -dtls1
184 if [ $? -ne 0 ] ; then
185 echo "Failed $cipher"
186 exit 1
187 fi
188 done
189done