1SSL_SESSION_HAS_TICKET(3) OpenSSL SSL_SESSION_HAS_TICKET(3)
2
3
4
6 SSL_SESSION_get0_ticket, SSL_SESSION_has_ticket,
7 SSL_SESSION_get_ticket_lifetime_hint - get details about the ticket
8 associated with a session
9
11 #include <openssl/ssl.h>
12
13 int SSL_SESSION_has_ticket(const SSL_SESSION *s);
14 unsigned long SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *s);
15 void SSL_SESSION_get0_ticket(const SSL_SESSION *s, const unsigned char **tick,
16 size_t *len);
17
19 SSL_SESSION_has_ticket() returns 1 if there is a Session Ticket
20 associated with this session, and 0 otherwise.
21
22 SSL_SESSION_get_ticket_lifetime_hint returns the lifetime hint in
23 seconds associated with the session ticket.
24
25 SSL_SESSION_get0_ticket obtains a pointer to the ticket associated with
26 a session. The length of the ticket is written to *len. If tick is non
27 NULL then a pointer to the ticket is written to *tick. The pointer is
28 only valid while the connection is in use. The session (and hence the
29 ticket pointer) may also become invalid as a result of a call to
30 SSL_CTX_flush_sessions().
31
33 SSL_SESSION_has_ticket() returns 1 if session ticket exists or 0
34 otherwise.
35
36 SSL_SESSION_get_ticket_lifetime_hint() returns the number of seconds.
37
39 ssl(7), d2i_SSL_SESSION(3), SSL_SESSION_get_time(3),
40 SSL_SESSION_free(3)
41
43 The SSL_SESSION_has_ticket(), SSL_SESSION_get_ticket_lifetime_hint()
44 and SSL_SESSION_get0_ticket() functions were added in OpenSSL 1.1.0.
45
47 Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.
48
49 Licensed under the OpenSSL license (the "License"). You may not use
50 this file except in compliance with the License. You can obtain a copy
51 in the file LICENSE in the source distribution or at
52 <https://www.openssl.org/source/license.html>.
53
54
55
561.1.1l 2021-09-15 SSL_SESSION_HAS_TICKET(3)