From: Daniel Kubec Date: Fri, 29 May 2026 14:08:11 +0000 (+0200) Subject: DOC: document ticket suppression for SSL_OP_NO_TICKET and SSL_SESS_CACHE_OFF X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3fe91b11d2f0a103d53ef780b53fade175ec39a8;p=thirdparty%2Fopenssl.git DOC: document ticket suppression for SSL_OP_NO_TICKET and SSL_SESS_CACHE_OFF Complements: e5a1892 "TLS1.3: Disable tickets when SSL_OP_NO_TICKET and SSL_SESS_CACHE_OFF are set." Co-authored-by: Andrew Dinh Reviewed-by: Milan Broz Reviewed-by: Tomas Mraz MergeDate: Mon Jun 15 14:13:25 2026 (Merged from https://github.com/openssl/openssl/pull/31335) --- diff --git a/doc/man3/SSL_CTX_set_options.pod b/doc/man3/SSL_CTX_set_options.pod index ec66190d7a6..ae6f11cd54e 100644 --- a/doc/man3/SSL_CTX_set_options.pod +++ b/doc/man3/SSL_CTX_set_options.pod @@ -349,6 +349,16 @@ In TLSv1.3 it is possible to suppress all tickets (stateful and stateless) from being sent by calling L or L. +All tickets (stateful and stateless) are also suppressed when the server has set +B and the server-side session cache is disabled via +B through L. +Both conditions together indicate a clear intent to suppress resumption, so +sending B messages would be wasteful and misleading. + +From the server's perspective, a TLS 1.3 client that does not send the +B extension is effectively signaling no interest in +session tickets and session resumption, so tickets are also suppressed in this case. + =item SSL_OP_PRIORITIZE_CHACHA When SSL_OP_SERVER_PREFERENCE is set, temporarily reprioritize diff --git a/doc/man3/SSL_CTX_set_session_cache_mode.pod b/doc/man3/SSL_CTX_set_session_cache_mode.pod index 296212b8397..4234aa63443 100644 --- a/doc/man3/SSL_CTX_set_session_cache_mode.pod +++ b/doc/man3/SSL_CTX_set_session_cache_mode.pod @@ -47,6 +47,12 @@ The following session cache modes and modifiers are available: No session caching for client or server takes place. +For a server, setting B together with the +B option (see L) suppresses the +issuance of B messages. The combination indicates a clear +intent to disable session resumption, so no stateful or stateless tickets are +sent to the client. + =item SSL_SESS_CACHE_CLIENT Client sessions are added to the session cache. As there is no reliable way