summaryrefslogtreecommitdiff
path: root/lib/ssl/src/ssl_connection.hrl
diff options
context:
space:
mode:
authorPéter Dimitrov <peterdmv@erlang.org>2019-10-07 15:47:11 +0200
committerPéter Dimitrov <peterdmv@erlang.org>2019-10-07 16:09:47 +0200
commit83fd566f64b6603a96376c3e97d0fc96df6b402c (patch)
tree60c62d05eefc0e2460528eb3b16572a154307470 /lib/ssl/src/ssl_connection.hrl
parentf598e954d682ce87a3f0105fb44ba445d9b63a8e (diff)
downloaderlang-83fd566f64b6603a96376c3e97d0fc96df6b402c.tar.gz
ssl: Generate encrypted ticket
Diffstat (limited to 'lib/ssl/src/ssl_connection.hrl')
-rw-r--r--lib/ssl/src/ssl_connection.hrl9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_connection.hrl b/lib/ssl/src/ssl_connection.hrl
index 330a2fa391..ca8ffbc386 100644
--- a/lib/ssl/src/ssl_connection.hrl
+++ b/lib/ssl/src/ssl_connection.hrl
@@ -53,6 +53,12 @@
tracker :: pid() | 'undefined' %% Tracker process for listen socket
}).
+-record(tickets, {
+ nonce = 0 :: integer(),
+ ticket_iv :: binary(),
+ ticket_key_shard :: binary()
+ }).
+
-record(handshake_env, {
client_hello_version :: ssl_record:ssl_version() | 'undefined',
unprocessed_handshake_events = 0 :: integer(),
@@ -60,7 +66,8 @@
| 'undefined',
expecting_finished = false ::boolean(),
renegotiation :: undefined | {boolean(), From::term() | internal | peer},
- resumption = false :: boolean(),
+ resumption = false :: boolean(), %% TLS 1.3
+ tickets :: undefined | #tickets{}, %% TLS 1.3
allow_renegotiate = true ::boolean(),
%% Ext handling
hello, %%:: #client_hello{} | #server_hello{}