diff options
author | jsing <> | 2014-10-13 13:42:39 +0000 |
---|---|---|
committer | jsing <> | 2014-10-13 13:42:39 +0000 |
commit | 8890ce1e761bbb200cb6447b579ed30d21164f9f (patch) | |
tree | 17e87849b332239cdd57ddb161ef0ed699ae122f /src/regress/lib/libssl/ssl/testssl | |
parent | 742c764ecc0f891a8d36d3c11815aab4f8ac8f80 (diff) | |
download | openbsd-8890ce1e761bbb200cb6447b579ed30d21164f9f.tar.gz openbsd-8890ce1e761bbb200cb6447b579ed30d21164f9f.tar.bz2 openbsd-8890ce1e761bbb200cb6447b579ed30d21164f9f.zip |
Add NPN regress tests from OpenSSL. However, unlike OpenSSL, actually exit
with a failure if the NPN verification fails.
Diffstat (limited to 'src/regress/lib/libssl/ssl/testssl')
-rw-r--r-- | src/regress/lib/libssl/ssl/testssl | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/regress/lib/libssl/ssl/testssl b/src/regress/lib/libssl/ssl/testssl index a4fa4112df..ca974a68c9 100644 --- a/src/regress/lib/libssl/ssl/testssl +++ b/src/regress/lib/libssl/ssl/testssl | |||
@@ -143,7 +143,7 @@ fi | |||
143 | #fi | 143 | #fi |
144 | 144 | ||
145 | # | 145 | # |
146 | # DTLS | 146 | # DTLS tests |
147 | # | 147 | # |
148 | 148 | ||
149 | echo test dtlsv1 | 149 | echo test dtlsv1 |
@@ -171,3 +171,15 @@ for protocol in SSLv3; do | |||
171 | fi | 171 | fi |
172 | done | 172 | done |
173 | done | 173 | done |
174 | |||
175 | # | ||
176 | # Next Protocol Negotiation tests | ||
177 | # | ||
178 | echo "Testing NPN..." | ||
179 | $ssltest -bio_pair -tls1 -npn_client || exit 1 | ||
180 | $ssltest -bio_pair -tls1 -npn_server || exit 1 | ||
181 | $ssltest -bio_pair -tls1 -npn_server_reject || exit 1 | ||
182 | $ssltest -bio_pair -tls1 -npn_client -npn_server_reject || exit 1 | ||
183 | $ssltest -bio_pair -tls1 -npn_client -npn_server || exit 1 | ||
184 | $ssltest -bio_pair -tls1 -npn_client -npn_server -num 2 || exit 1 | ||
185 | $ssltest -bio_pair -tls1 -npn_client -npn_server -num 2 -reuse || exit 1 | ||