aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_handshake.hrl
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2018-07-10 17:03:58 +0200
committerPéter Dimitrov <[email protected]>2018-07-19 14:30:00 +0200
commitcba55e0a8c27b4e3f2a5c1bdc227f7421932b343 (patch)
tree1cc2ffc9de8ce7dddc74420f4e7e5674660a9646 /lib/ssl/src/ssl_handshake.hrl
parent028941b5b54adeaf947ba60cd44de8ef1886e0eb (diff)
downloadotp-cba55e0a8c27b4e3f2a5c1bdc227f7421932b343.tar.gz
otp-cba55e0a8c27b4e3f2a5c1bdc227f7421932b343.tar.bz2
otp-cba55e0a8c27b4e3f2a5c1bdc227f7421932b343.zip
ssl: Implement 'supported_versions' extension
Change-Id: I8bb015e97ab4c317ef380123cf94350ed509c36f
Diffstat (limited to 'lib/ssl/src/ssl_handshake.hrl')
-rw-r--r--lib/ssl/src/ssl_handshake.hrl13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_handshake.hrl b/lib/ssl/src/ssl_handshake.hrl
index a191fcf766..9cc6f570fc 100644
--- a/lib/ssl/src/ssl_handshake.hrl
+++ b/lib/ssl/src/ssl_handshake.hrl
@@ -105,7 +105,9 @@
srp,
ec_point_formats,
elliptic_curves,
- sni
+ sni,
+ client_hello_versions,
+ server_hello_selected_version
}).
-record(server_hello, {
@@ -377,4 +379,13 @@
hostname = undefined
}).
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Supported Versions TLS 1.3 section 4.2.1
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+-define(SUPPORTED_VERSIONS_EXT, 43).
+
+-record(client_hello_versions, {versions}).
+-record(server_hello_selected_version, {selected_version}).
+
-endif. % -ifdef(ssl_handshake).