summaryrefslogtreecommitdiff
path: root/lib/ssl/src/tls_record_1_3.hrl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ssl/src/tls_record_1_3.hrl')
-rw-r--r--lib/ssl/src/tls_record_1_3.hrl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ssl/src/tls_record_1_3.hrl b/lib/ssl/src/tls_record_1_3.hrl
index c6214a5de3..c2624e8fde 100644
--- a/lib/ssl/src/tls_record_1_3.hrl
+++ b/lib/ssl/src/tls_record_1_3.hrl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2018-2022. All Rights Reserved.
+%% Copyright Ericsson AB 2018-2023. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -43,7 +43,7 @@
%% } ContentType;
-define(INVALID, 0).
--define(LEGACY_VERSION, {3,3}).
+-define(LEGACY_VERSION, ?TLS_1_2).
-define(OPAQUE_TYPE, 23).
-record(inner_plaintext, {
@@ -55,7 +55,7 @@
%% decrypted version will still use #ssl_tls for code reuse purposes
%% with real values for content type and version
opaque_type = ?OPAQUE_TYPE,
- legacy_version = ?LEGACY_VERSION,
+ legacy_version = ?LEGACY_VERSION :: ssl_record:ssl_version(),
encoded_record
}).