1*ebfedea0SLionel Sambuc=pod 2*ebfedea0SLionel Sambuc 3*ebfedea0SLionel Sambuc=head1 NAME 4*ebfedea0SLionel Sambuc 5*ebfedea0SLionel SambucSSL_CTX_sessions - access internal session cache 6*ebfedea0SLionel Sambuc 7*ebfedea0SLionel Sambuc=head1 SYNOPSIS 8*ebfedea0SLionel Sambuc 9*ebfedea0SLionel Sambuc #include <openssl/ssl.h> 10*ebfedea0SLionel Sambuc 11*ebfedea0SLionel Sambuc struct lhash_st *SSL_CTX_sessions(SSL_CTX *ctx); 12*ebfedea0SLionel Sambuc 13*ebfedea0SLionel Sambuc=head1 DESCRIPTION 14*ebfedea0SLionel Sambuc 15*ebfedea0SLionel SambucSSL_CTX_sessions() returns a pointer to the lhash databases containing the 16*ebfedea0SLionel Sambucinternal session cache for B<ctx>. 17*ebfedea0SLionel Sambuc 18*ebfedea0SLionel Sambuc=head1 NOTES 19*ebfedea0SLionel Sambuc 20*ebfedea0SLionel SambucThe sessions in the internal session cache are kept in an 21*ebfedea0SLionel SambucL<lhash(3)|lhash(3)> type database. It is possible to directly 22*ebfedea0SLionel Sambucaccess this database e.g. for searching. In parallel, the sessions 23*ebfedea0SLionel Sambucform a linked list which is maintained separately from the 24*ebfedea0SLionel SambucL<lhash(3)|lhash(3)> operations, so that the database must not be 25*ebfedea0SLionel Sambucmodified directly but by using the 26*ebfedea0SLionel SambucL<SSL_CTX_add_session(3)|SSL_CTX_add_session(3)> family of functions. 27*ebfedea0SLionel Sambuc 28*ebfedea0SLionel Sambuc=head1 SEE ALSO 29*ebfedea0SLionel Sambuc 30*ebfedea0SLionel SambucL<ssl(3)|ssl(3)>, L<lhash(3)|lhash(3)>, 31*ebfedea0SLionel SambucL<SSL_CTX_add_session(3)|SSL_CTX_add_session(3)>, 32*ebfedea0SLionel SambucL<SSL_CTX_set_session_cache_mode(3)|SSL_CTX_set_session_cache_mode(3)> 33*ebfedea0SLionel Sambuc 34*ebfedea0SLionel Sambuc=cut 35