aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/ssl_handshake_SUITE.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2019-07-10 11:35:27 +0200
committerIngela Anderton Andin <[email protected]>2019-07-18 17:16:26 +0200
commitf0eed56f7346a1146c4acb12bf28ef392a383f33 (patch)
tree1c657a20b2cab5bd71c6c5b87cc9a02e13c55a4d /lib/ssl/test/ssl_handshake_SUITE.erl
parentabb11dec132a4667f5ebb95c79a0b7ff5cda72e1 (diff)
downloadotp-f0eed56f7346a1146c4acb12bf28ef392a383f33.tar.gz
otp-f0eed56f7346a1146c4acb12bf28ef392a383f33.tar.bz2
otp-f0eed56f7346a1146c4acb12bf28ef392a383f33.zip
ssl: Correct RSP/PSK and ALPN handling
Extention handling need some fixes to work correctly for ALPN and SSL-3.0 only client/servers do not support extensions
Diffstat (limited to 'lib/ssl/test/ssl_handshake_SUITE.erl')
-rw-r--r--lib/ssl/test/ssl_handshake_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/test/ssl_handshake_SUITE.erl b/lib/ssl/test/ssl_handshake_SUITE.erl
index 1e6adf3e86..2750a4a9dc 100644
--- a/lib/ssl/test/ssl_handshake_SUITE.erl
+++ b/lib/ssl/test/ssl_handshake_SUITE.erl
@@ -141,7 +141,7 @@ encode_single_hello_sni_extension_correctly(_Config) ->
$t, $e, $s, $t, $., $c, $o, $m>>,
ExtSize = byte_size(SNI),
HelloExt = <<ExtSize:16/unsigned-big-integer, SNI/binary>>,
- Encoded = ssl_handshake:encode_extensions([#sni{hostname = "test.com"}], {3,3}),
+ Encoded = ssl_handshake:encode_extensions([#sni{hostname = "test.com"}]),
HelloExt = Encoded.
decode_single_hello_sni_extension_correctly(_Config) ->
@@ -214,7 +214,7 @@ encode_decode_srp(_Config) ->
0,3, % HostNameLength
98,97,114>>, % hostname = "bar"
EncodedExts0 = <<?UINT16(_),EncodedExts/binary>> =
- ssl_handshake:encode_hello_extensions(Exts),
+ ssl_handshake:encode_hello_extensions(Exts, {3,3}),
Exts = ssl_handshake:decode_hello_extensions(EncodedExts, {3,3}, {3,3}, client).
signature_algorithms(Config) ->