aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-09-26 10:41:21 +0200
committerIngela Anderton Andin <[email protected]>2018-10-01 10:50:22 +0200
commit66ed2fa10f8adeffd62b10fcb99a8e52de391519 (patch)
treef845c4cbdc54cd30969cde9720ed74dc5252ab22 /lib
parent973169ab1e1b79e6ef006ec25eb81c84ac0be34a (diff)
downloadotp-66ed2fa10f8adeffd62b10fcb99a8e52de391519.tar.gz
otp-66ed2fa10f8adeffd62b10fcb99a8e52de391519.tar.bz2
otp-66ed2fa10f8adeffd62b10fcb99a8e52de391519.zip
ssl: Correct extension decoding and dialyzer spec
Diffstat (limited to 'lib')
-rw-r--r--lib/ssl/src/ssl_handshake.erl2
-rw-r--r--lib/ssl/src/tls_handshake_1_3.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl_handshake.erl b/lib/ssl/src/ssl_handshake.erl
index ad22cd69d7..ba0b670091 100644
--- a/lib/ssl/src/ssl_handshake.erl
+++ b/lib/ssl/src/ssl_handshake.erl
@@ -767,7 +767,7 @@ decode_vector(<<?UINT16(Len), Vector:Len/binary>>) ->
Vector.
%%--------------------------------------------------------------------
--spec decode_hello_extensions(binary(), tls_record:version(), client | server) -> map().
+-spec decode_hello_extensions(binary(), ssl_record:ssl_version(), client | server) -> map().
%%
%% Description: Decodes TLS hello extensions
%%--------------------------------------------------------------------
diff --git a/lib/ssl/src/tls_handshake_1_3.erl b/lib/ssl/src/tls_handshake_1_3.erl
index 26abde3168..199054b43b 100644
--- a/lib/ssl/src/tls_handshake_1_3.erl
+++ b/lib/ssl/src/tls_handshake_1_3.erl
@@ -89,7 +89,7 @@ decode_handshake(?CERTIFICATE, <<?BYTE(CSize), Context:CSize/binary,
certificate_request_context = Context,
entries = CertList
};
-decode_handshake(?ENCRYPTED_EXTENSIONS, EncExts) ->
+decode_handshake(?ENCRYPTED_EXTENSIONS, <<?UINT16(Size), EncExts:Size/binary>>) ->
#encrypted_extensions{
extensions = decode_extensions(EncExts)
};