xref: /freebsd/crypto/openssl/doc/man3/SSL_CTX_sessions.pod (revision e71b70530d95c4f34d8bdbd78d1242df1ba4a945)
1*e71b7053SJung-uk Kim=pod
2*e71b7053SJung-uk Kim
3*e71b7053SJung-uk Kim=head1 NAME
4*e71b7053SJung-uk Kim
5*e71b7053SJung-uk KimSSL_CTX_sessions - access internal session cache
6*e71b7053SJung-uk Kim
7*e71b7053SJung-uk Kim=head1 SYNOPSIS
8*e71b7053SJung-uk Kim
9*e71b7053SJung-uk Kim #include <openssl/ssl.h>
10*e71b7053SJung-uk Kim
11*e71b7053SJung-uk Kim struct lhash_st *SSL_CTX_sessions(SSL_CTX *ctx);
12*e71b7053SJung-uk Kim
13*e71b7053SJung-uk Kim=head1 DESCRIPTION
14*e71b7053SJung-uk Kim
15*e71b7053SJung-uk KimSSL_CTX_sessions() returns a pointer to the lhash databases containing the
16*e71b7053SJung-uk Kiminternal session cache for B<ctx>.
17*e71b7053SJung-uk Kim
18*e71b7053SJung-uk Kim=head1 NOTES
19*e71b7053SJung-uk Kim
20*e71b7053SJung-uk KimThe sessions in the internal session cache are kept in an
21*e71b7053SJung-uk KimL<LHASH(3)> type database. It is possible to directly
22*e71b7053SJung-uk Kimaccess this database e.g. for searching. In parallel, the sessions
23*e71b7053SJung-uk Kimform a linked list which is maintained separately from the
24*e71b7053SJung-uk KimL<LHASH(3)> operations, so that the database must not be
25*e71b7053SJung-uk Kimmodified directly but by using the
26*e71b7053SJung-uk KimL<SSL_CTX_add_session(3)> family of functions.
27*e71b7053SJung-uk Kim
28*e71b7053SJung-uk Kim=head1 RETURN VALUES
29*e71b7053SJung-uk Kim
30*e71b7053SJung-uk KimSSL_CTX_sessions() returns a pointer to the lhash of B<SSL_SESSION>.
31*e71b7053SJung-uk Kim
32*e71b7053SJung-uk Kim=head1 SEE ALSO
33*e71b7053SJung-uk Kim
34*e71b7053SJung-uk KimL<ssl(7)>, L<LHASH(3)>,
35*e71b7053SJung-uk KimL<SSL_CTX_add_session(3)>,
36*e71b7053SJung-uk KimL<SSL_CTX_set_session_cache_mode(3)>
37*e71b7053SJung-uk Kim
38*e71b7053SJung-uk Kim=head1 COPYRIGHT
39*e71b7053SJung-uk Kim
40*e71b7053SJung-uk KimCopyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.
41*e71b7053SJung-uk Kim
42*e71b7053SJung-uk KimLicensed under the OpenSSL license (the "License").  You may not use
43*e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
44*e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
45*e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
46*e71b7053SJung-uk Kim
47*e71b7053SJung-uk Kim=cut
48