diff options
author | Péter Dimitrov <[email protected]> | 2018-07-06 13:12:32 +0200 |
---|---|---|
committer | Péter Dimitrov <[email protected]> | 2018-07-19 14:26:45 +0200 |
commit | de8efcb60451d65404bd3b70d464da43af239be5 (patch) | |
tree | f9673d9963cc3527a53841ce86a2db4c8cbd3a89 /lib/ssl/src/tls_record.erl | |
parent | 9f3426df630f50c30004c35f7c70e34baa381092 (diff) | |
download | otp-de8efcb60451d65404bd3b70d464da43af239be5.tar.gz otp-de8efcb60451d65404bd3b70d464da43af239be5.tar.bz2 otp-de8efcb60451d65404bd3b70d464da43af239be5.zip |
ssl: Add experimental version 'tlsv1.3'
- Add 'tlsv1.3' to the available versions. It can be used to
trigger experimental behavior while implementing TLS 1.3.
- Add dummy clauses for handling version {3,4} of TLS.
- Update ssl_logger to handle unknown versions of TLS.
Change-Id: I564ffa47dca18b59f0dc16c9809dfd7adaf2d333
Diffstat (limited to 'lib/ssl/src/tls_record.erl')
-rw-r--r-- | lib/ssl/src/tls_record.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ssl/src/tls_record.erl b/lib/ssl/src/tls_record.erl index 278d471fdb..444759aafa 100644 --- a/lib/ssl/src/tls_record.erl +++ b/lib/ssl/src/tls_record.erl @@ -230,6 +230,8 @@ decode_cipher_text(#ssl_tls{type = Type, version = Version, %% Description: Creates a protocol version record from a version atom %% or vice versa. %%-------------------------------------------------------------------- +protocol_version('tlsv1.3') -> + {3, 4}; protocol_version('tlsv1.2') -> {3, 3}; protocol_version('tlsv1.1') -> @@ -240,6 +242,8 @@ protocol_version(sslv3) -> {3, 0}; protocol_version(sslv2) -> %% Backwards compatibility {2, 0}; +protocol_version({3, 4}) -> + 'tlsv1.3'; protocol_version({3, 3}) -> 'tlsv1.2'; protocol_version({3, 2}) -> |