libressl-SSL_CTX_set_num_tickets(3)

libressl-SSL_CTX_set_num_tickets3

Set and get the number of tls 1.3 session tickets to be sent

Usage

SSL Library (libssl, -lssl) libcrypto

#include <openssl/ssl.h>

int

SSL_CTX_set_num_tickets(SSL_CTX *ctx, size_t num_tickets);

size_t

SSL_CTX_get_num_tickets(const SSL_CTX *ctx);

int

SSL_set_num_tickets(SSL *ssl, size_t num_tickets);

size_t

SSL_get_num_tickets(const SSL *ssl);

Overview

These functions set and retrieve the configured number of session tickets for ctx and ssl, respectively.

They are provided only for compatibility with OpenSSL and have no effect in LibreSSL.

Return values

SSL_CTX_set_num_tickets() and SSL_set_num_tickets() always return 1.

SSL_CTX_get_num_tickets() and SSL_get_num_tickets() return the previously set number of tickets, or 0 if it has not been set.

History

These functions first appeared in OpenSSL 1.1.1 and have been available since OpenBSD 7.1.

From libressl 4.4.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.