diff options
author | Adam Langley <agl@chromium.org> | 2013-07-15 15:57:16 -0400 |
---|---|---|
committer | Adam Langley <agl@chromium.org> | 2013-09-13 11:27:26 -0400 |
commit | cb3cec4adfd0101a64009980735ddbedf4966df6 (patch) | |
tree | 5367596fd13b042378a8dab2869ecdff0f36b3ad /test/testssl | |
parent | b0d6f3c58fc86756574b410cb6a32589477d3954 (diff) |
Add tests for ALPN functionality.
Cherry-picked from a898936218bc279b5d7cdf76d58a25e7a2d419cb.
Diffstat (limited to 'test/testssl')
-rw-r--r-- | test/testssl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/testssl b/test/testssl index f8a1121f28..10a198dd3b 100644 --- a/test/testssl +++ b/test/testssl @@ -184,6 +184,18 @@ $ssltest -bio_pair -tls1 -serverinfo_file $serverinfo -serverinfo_sct -serverinf $ssltest -bio_pair -tls1 -custom_ext -serverinfo_file $serverinfo -serverinfo_sct -serverinfo_tack || exit 1 +############################################################################# +# ALPN tests + +$ssltest -bio_pair -tls1 -alpn_client foo -alpn_server bar || exit 1 +$ssltest -bio_pair -tls1 -alpn_client foo -alpn_server foo -alpn_expected foo || exit 1 +$ssltest -bio_pair -tls1 -alpn_client foo,bar -alpn_server foo -alpn_expected foo || exit 1 +$ssltest -bio_pair -tls1 -alpn_client bar,foo -alpn_server foo -alpn_expected foo || exit 1 +$ssltest -bio_pair -tls1 -alpn_client bar,foo -alpn_server foo,bar -alpn_expected foo || exit 1 +$ssltest -bio_pair -tls1 -alpn_client bar,foo -alpn_server bar,foo -alpn_expected bar || exit 1 +$ssltest -bio_pair -tls1 -alpn_client foo,bar -alpn_server bar,foo -alpn_expected bar || exit 1 +$ssltest -bio_pair -tls1 -alpn_client baz -alpn_server bar,foo || exit 1 + if ../util/shlib_wrap.sh ../apps/openssl no-srp; then echo skipping SRP tests else |