---
name: "libressl-SSL_CTX_set_num_tickets"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-SSL_CTX_set_num_tickets"
---

# libressl-SSL\_CTX\_set\_num\_tickets(3)

set and get the number of TLS 1.3 session tickets to be sent

## NAME

**SSL\_CTX\_set\_num\_tickets**, **SSL\_CTX\_get\_num\_tickets**, **SSL\_set\_num\_tickets**, **SSL\_get\_num\_tickets** – set and get the number of TLS 1.3 session tickets to be sent

## SYNOPSIS

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*);

## DESCRIPTION

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.

## SEE ALSO

[ssl(3)](/ssl/3.md), SSL\_CTX\_new(3)

## HISTORY

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