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