diff options
author | Ingela Anderton Andin <[email protected]> | 2018-10-11 18:14:10 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2018-10-24 13:24:43 +0200 |
commit | 9741880c7c580bc10709a7142b03c3f544a7e233 (patch) | |
tree | 48e85b9da78c66d931dbd2db1100b792a59bb541 /lib/ssl/src/tls_connection.erl | |
parent | ad7e7b50faacfac032577bed37cce33f34d3f753 (diff) | |
download | otp-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.erl | 3 |
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}, |