diff options
author | jsing <> | 2014-12-10 15:06:50 +0000 |
---|---|---|
committer | jsing <> | 2014-12-10 15:06:50 +0000 |
commit | e8934f925b10bc19b03a59e35d50bd496f57edff (patch) | |
tree | ca3c1ccfc79c9a642c89eb73b9079893e0443f67 /src/regress/lib/libssl/ssl/testssl | |
parent | 648ebfc9b9a624a392062d19385a13d9604fb4c7 (diff) | |
download | openbsd-e8934f925b10bc19b03a59e35d50bd496f57edff.tar.gz openbsd-e8934f925b10bc19b03a59e35d50bd496f57edff.tar.bz2 openbsd-e8934f925b10bc19b03a59e35d50bd496f57edff.zip |
Add regress for ALPN.
Based on OpenSSL.
Diffstat (limited to 'src/regress/lib/libssl/ssl/testssl')
-rw-r--r-- | src/regress/lib/libssl/ssl/testssl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/regress/lib/libssl/ssl/testssl b/src/regress/lib/libssl/ssl/testssl index a8ecab263e..379ddfcc50 100644 --- a/src/regress/lib/libssl/ssl/testssl +++ b/src/regress/lib/libssl/ssl/testssl | |||
@@ -155,3 +155,22 @@ $ssltest -bio_pair -tls1 -npn_client -npn_server_reject || exit 1 | |||
155 | $ssltest -bio_pair -tls1 -npn_client -npn_server || exit 1 | 155 | $ssltest -bio_pair -tls1 -npn_client -npn_server || exit 1 |
156 | $ssltest -bio_pair -tls1 -npn_client -npn_server -num 2 || exit 1 | 156 | $ssltest -bio_pair -tls1 -npn_client -npn_server -num 2 || exit 1 |
157 | $ssltest -bio_pair -tls1 -npn_client -npn_server -num 2 -reuse || exit 1 | 157 | $ssltest -bio_pair -tls1 -npn_client -npn_server -num 2 -reuse || exit 1 |
158 | |||
159 | # | ||
160 | # ALPN tests | ||
161 | # | ||
162 | echo "Testing ALPN..." | ||
163 | $ssltest -bio_pair -tls1 -alpn_client foo -alpn_server bar || exit 1 | ||
164 | $ssltest -bio_pair -tls1 -alpn_client foo -alpn_server foo \ | ||
165 | -alpn_expected foo || exit 1 | ||
166 | $ssltest -bio_pair -tls1 -alpn_client foo,bar -alpn_server foo \ | ||
167 | -alpn_expected foo || exit 1 | ||
168 | $ssltest -bio_pair -tls1 -alpn_client bar,foo -alpn_server foo \ | ||
169 | -alpn_expected foo || exit 1 | ||
170 | $ssltest -bio_pair -tls1 -alpn_client bar,foo -alpn_server foo,bar \ | ||
171 | -alpn_expected foo || exit 1 | ||
172 | $ssltest -bio_pair -tls1 -alpn_client bar,foo -alpn_server bar,foo \ | ||
173 | -alpn_expected bar || exit 1 | ||
174 | $ssltest -bio_pair -tls1 -alpn_client foo,bar -alpn_server bar,foo \ | ||
175 | -alpn_expected bar || exit 1 | ||
176 | $ssltest -bio_pair -tls1 -alpn_client baz -alpn_server bar,foo || exit 1 | ||