diff options
author | Ingela Anderton Andin <ingela@erlang.org> | 2019-07-10 11:35:27 +0200 |
---|---|---|
committer | Ingela Anderton Andin <ingela@erlang.org> | 2019-07-18 17:16:26 +0200 |
commit | f0eed56f7346a1146c4acb12bf28ef392a383f33 (patch) | |
tree | 1c657a20b2cab5bd71c6c5b87cc9a02e13c55a4d /lib/ssl/src/dtls_handshake.erl | |
parent | abb11dec132a4667f5ebb95c79a0b7ff5cda72e1 (diff) | |
download | erlang-f0eed56f7346a1146c4acb12bf28ef392a383f33.tar.gz |
ssl: Correct RSP/PSK and ALPN handling
Extention handling need some fixes to work
correctly for ALPN and SSL-3.0 only client/servers
do not support extensions
Diffstat (limited to 'lib/ssl/src/dtls_handshake.erl')
-rw-r--r-- | lib/ssl/src/dtls_handshake.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ssl/src/dtls_handshake.erl b/lib/ssl/src/dtls_handshake.erl index d8c0e30973..4a381745d4 100644 --- a/lib/ssl/src/dtls_handshake.erl +++ b/lib/ssl/src/dtls_handshake.erl @@ -255,7 +255,8 @@ enc_handshake(#client_hello{client_version = {Major, Minor}, CmLength = byte_size(BinCompMethods), BinCipherSuites = list_to_binary(CipherSuites), CsLength = byte_size(BinCipherSuites), - ExtensionsBin = ssl_handshake:encode_hello_extensions(HelloExtensions), + ExtensionsBin = ssl_handshake:encode_hello_extensions(HelloExtensions, + dtls_v1:corresponding_tls_version({Major, Minor})), {?CLIENT_HELLO, <<?BYTE(Major), ?BYTE(Minor), Random:32/binary, ?BYTE(SIDLength), SessionID/binary, |