---
name: "libressl-SSL_SESSION_has_ticket"
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_SESSION_has_ticket"
---

# libressl-SSL\_SESSION\_has\_ticket(3)

get details about the ticket associated with a session

## NAME

**SSL\_SESSION\_has\_ticket**, **SSL\_SESSION\_get\_ticket\_lifetime\_hint** – get details about the ticket associated with a session

## SYNOPSIS

SSL Library (libssl, -lssl) libcrypto

**#include \<openssl/ssl.h\>**

*int*\

**SSL\_SESSION\_has\_ticket**(*const SSL\_SESSION \*s*);

*unsigned* *long*\

**SSL\_SESSION\_get\_ticket\_lifetime\_hint**(*const SSL\_SESSION \*s*);

## DESCRIPTION

**SSL\_SESSION\_has\_ticket**() returns 1 if there is a Session Ticket associated with *s* or 0 otherwise.

**SSL\_SESSION\_get\_ticket\_lifetime\_hint**() returns the lifetime hint in seconds associated with the session ticket.

## SEE ALSO

[ssl(3)](/ssl/3.md), SSL\_SESSION\_get\_id(3), SSL\_SESSION\_get\_time(3), SSL\_SESSION\_new(3)

## HISTORY

These functions first appeared in OpenSSL 1.1.0 and have been available since OpenBSD 6.3.
