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