aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_connection.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/src/ssl_connection.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/src/ssl_connection.erl')
-rw-r--r--lib/ssl/src/ssl_connection.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl
index 94d129de6f..0cf753303b 100644
--- a/lib/ssl/src/ssl_connection.erl
+++ b/lib/ssl/src/ssl_connection.erl
@@ -1933,7 +1933,7 @@ next_state(Current, Next, #ssl_tls{type = ?HANDSHAKE, fragment = Data},
(_, StopState) -> StopState
end,
try
- {Packets, Buf} = ssl_handshake:get_tls_handshake(Data,Buf0),
+ {Packets, Buf} = ssl_handshake:get_tls_handshake(Version,Data,Buf0),
State = State0#state{tls_packets = Packets, tls_handshake_buffer = Buf},
handle_tls_handshake(Handle, Next, State)
catch throw:#alert{} = Alert ->