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