diff options
author | Benjamin Kaduk <bkaduk@akamai.com> | 2020-03-16 11:25:58 -0700 |
---|---|---|
committer | Ben Kaduk <kaduk@mit.edu> | 2020-05-01 15:10:11 -0700 |
commit | 3bfacb5fd4679812a7b9ec61d296b1add64669c0 (patch) | |
tree | bc10cebef57dc828c7da742dada9a3e05910884a /ssl/ssl_local.h | |
parent | 6250282f7fc37c5903d051174a69053a80e1b1bd (diff) |
Add SSL_new_session_ticket() API
This API requests that the TLS stack generate a (TLS 1.3)
NewSessionTicket message the next time it is safe to do so (i.e., we do
not have other data pending write, which could be mid-record). For
efficiency, defer actually generating/writing the ticket until there
is other data to write, to avoid producing server-to-client traffic when
not needed.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11416)
Diffstat (limited to 'ssl/ssl_local.h')
-rw-r--r-- | ssl/ssl_local.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/ssl_local.h b/ssl/ssl_local.h index 21bf482bef..de7e9fde48 100644 --- a/ssl/ssl_local.h +++ b/ssl/ssl_local.h @@ -1539,6 +1539,8 @@ struct ssl_st { /* RFC4507 session ticket expected to be received or sent */ int ticket_expected; + /* TLS 1.3 tickets requested by the application. */ + int extra_tickets_expected; # ifndef OPENSSL_NO_EC size_t ecpointformats_len; /* our list */ |