]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/ssl/SSL_SESSION_has_ticket.pod
Convert PKCS8* functions to use const getters
[thirdparty/openssl.git] / doc / ssl / SSL_SESSION_has_ticket.pod
CommitLineData
f2baac27
MC
1=pod
2
3=head1 NAME
4
c952780c
RS
5SSL_SESSION_get0_ticket,
6SSL_SESSION_has_ticket, SSL_SESSION_get_ticket_lifetime_hint,
7- get details about the ticket associated with a session
f2baac27
MC
8
9=head1 SYNOPSIS
10
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);
b7c9187b 15 void SSL_SESSION_get0_ticket(const SSL_SESSION *s, unsigned char **tick,
c952780c 16 size_t *len);
f2baac27
MC
17
18=head1 DESCRIPTION
19
20SSL_SESSION_has_ticket() returns 1 if there is a Session Ticket associated with
21this session, and 0 otherwise.
22
23SSL_SESSION_get_ticket_lifetime_hint returns the lifetime hint in seconds
24associated with the session ticket.
25
b7c9187b
MC
26SSL_SESSION_get0_ticket obtains a pointer to the ticket associated with a
27session. The length of the ticket is written to B<*len>. If B<tick> is non
28NULL then a pointer to the ticket is written to B<*tick>. The pointer is only
29valid while the connection is in use. The session (and hence the ticket pointer)
30may also become invalid as a result of a call to SSL_CTX_flush_sessions().
31
f2baac27
MC
32=head1 SEE ALSO
33
9b86974e
RS
34L<ssl(3)>,
35L<d2i_SSL_SESSION(3)>,
36L<SSL_SESSION_get_time(3)>,
37L<SSL_SESSION_free(3)>
f2baac27
MC
38
39=head1 HISTORY
40
b7c9187b
MC
41SSL_SESSION_has_ticket, SSL_SESSION_get_ticket_lifetime_hint and
42SSL_SESSION_get0_ticket were added in OpenSSL 1.1.0.
f2baac27 43
e2f92610
RS
44=head1 COPYRIGHT
45
46Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
47
48Licensed under the OpenSSL license (the "License"). You may not use
49this file except in compliance with the License. You can obtain a copy
50in the file LICENSE in the source distribution or at
51L<https://www.openssl.org/source/license.html>.
52
53=cut