aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/tls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-10-11 18:14:10 +0200
committerIngela Anderton Andin <[email protected]>2018-10-24 13:24:43 +0200
commit9741880c7c580bc10709a7142b03c3f544a7e233 (patch)
tree48e85b9da78c66d931dbd2db1100b792a59bb541 /lib/ssl/src/tls_connection.erl
parentad7e7b50faacfac032577bed37cce33f34d3f753 (diff)
downloadotp-9741880c7c580bc10709a7142b03c3f544a7e233.tar.gz
otp-9741880c7c580bc10709a7142b03c3f544a7e233.tar.bz2
otp-9741880c7c580bc10709a7142b03c3f544a7e233.zip
ssl: TLS-1.3 TLS record protocol handling
Diffstat (limited to 'lib/ssl/src/tls_connection.erl')
-rw-r--r--lib/ssl/src/tls_connection.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ssl/src/tls_connection.erl b/lib/ssl/src/tls_connection.erl
index 8ded2cbff7..af59dda442 100644
--- a/lib/ssl/src/tls_connection.erl
+++ b/lib/ssl/src/tls_connection.erl
@@ -152,9 +152,10 @@ next_record(#state{protocol_buffers =
#protocol_buffers{tls_packets = [], tls_cipher_texts = [CT | Rest]}
= Buffers,
connection_states = ConnStates0,
+ negotiated_version = Version,
ssl_options = #ssl_options{padding_check = Check}} = State) ->
- case tls_record:decode_cipher_text(CT, ConnStates0, Check) of
+ case tls_record:decode_cipher_text(Version, CT, ConnStates0, Check) of
{Plain, ConnStates} ->
{Plain, State#state{protocol_buffers =
Buffers#protocol_buffers{tls_cipher_texts = Rest},