aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/ssl_handshake_SUITE.erl
diff options
context:
space:
mode:
authorAndreas Schultz <[email protected]>2012-04-06 04:01:35 +0200
committerIngela Anderton Andin <[email protected]>2012-08-22 14:00:44 +0200
commitd7ced5ea0c0fa88a03adf0e5d05d6bac3c3fbaae (patch)
tree347f5ef2c56a0a7e3ae99281b55d65da6032847c /lib/ssl/test/ssl_handshake_SUITE.erl
parentfc4c828438e99afe47f7531101a1561decc3cf37 (diff)
downloadotp-d7ced5ea0c0fa88a03adf0e5d05d6bac3c3fbaae.tar.gz
otp-d7ced5ea0c0fa88a03adf0e5d05d6bac3c3fbaae.tar.bz2
otp-d7ced5ea0c0fa88a03adf0e5d05d6bac3c3fbaae.zip
ssl: Add TLS version to dec_hs/2
TLS 1.2 changes the layout of several handshake records. This adds the TLS version to dec_hs/2 so it can decode those.
Diffstat (limited to 'lib/ssl/test/ssl_handshake_SUITE.erl')
-rw-r--r--lib/ssl/test/ssl_handshake_SUITE.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ssl/test/ssl_handshake_SUITE.erl b/lib/ssl/test/ssl_handshake_SUITE.erl
index 08c23b2d47..946865a3d8 100644
--- a/lib/ssl/test/ssl_handshake_SUITE.erl
+++ b/lib/ssl/test/ssl_handshake_SUITE.erl
@@ -48,7 +48,8 @@ decode_hello_handshake(_Config) ->
16#00, 16#00, 16#33, 16#74, 16#00, 16#07, 16#06, 16#73,
16#70, 16#64, 16#79, 16#2f, 16#32>>,
- {Records, _Buffer} = ssl_handshake:get_tls_handshake(HelloPacket, <<>>),
+ Version = {3, 0},
+ {Records, _Buffer} = ssl_handshake:get_tls_handshake(Version, HelloPacket, <<>>),
{Hello, _Data} = hd(Records),
#renegotiation_info{renegotiated_connection = <<0>>} = Hello#server_hello.renegotiation_info.