diff options
author | Adam Langley <agl@chromium.org> | 2013-07-15 15:57:16 -0400 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2013-07-22 15:47:48 +0100 |
commit | a898936218bc279b5d7cdf76d58a25e7a2d419cb (patch) | |
tree | 1eee6664014d32c780fad3b12630251a105c5014 /test/testssl | |
parent | a108f841ba4fc0706c2b3ef1a2d8d301a10d4a3a (diff) |
Add tests for ALPN functionality.
Conflicts:
ssl/ssltest.c
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 71524a0663..6a4efdb0dc 100644 --- a/test/testssl +++ b/test/testssl @@ -195,6 +195,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 |