diff options
author | Péter Dimitrov <[email protected]> | 2018-11-30 13:35:20 +0100 |
---|---|---|
committer | Péter Dimitrov <[email protected]> | 2019-01-11 09:59:12 +0100 |
commit | 88733e3e2e9b7e15fac74a42e813da4f19f86482 (patch) | |
tree | 5fc1ccf069bb05433d9858ec05d18e157429a34f /lib/ssl/src/dtls_handshake.erl | |
parent | c823b266f08c0a87218af9a64debac63328ef46f (diff) | |
download | otp-88733e3e2e9b7e15fac74a42e813da4f19f86482.tar.gz otp-88733e3e2e9b7e15fac74a42e813da4f19f86482.tar.bz2 otp-88733e3e2e9b7e15fac74a42e813da4f19f86482.zip |
ssl: Process "supported_versions" before decoding
Change-Id: I465760b7001692367c68839219745e40abafdfa8
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 36c4b540b6..eb0f742e70 100644 --- a/lib/ssl/src/dtls_handshake.erl +++ b/lib/ssl/src/dtls_handshake.erl @@ -340,8 +340,9 @@ decode_handshake(Version, ?CLIENT_HELLO, <<?UINT24(_), ?UINT16(_), ?BYTE(Cm_length), Comp_methods:Cm_length/binary, Extensions/binary>>) -> TLSVersion = dtls_v1:corresponding_tls_version(Version), + LegacyVersion = dtls_v1:corresponding_tls_version({Major, Minor}), Exts = ssl_handshake:decode_vector(Extensions), - DecodedExtensions = ssl_handshake:decode_hello_extensions(Exts, TLSVersion, client), + DecodedExtensions = ssl_handshake:decode_hello_extensions(Exts, TLSVersion, LegacyVersion, client), #client_hello{ client_version = {Major,Minor}, |