1SSL_CTX_SESSIONS(3ossl) OpenSSL SSL_CTX_SESSIONS(3ossl)
2
3
4
6 SSL_CTX_sessions - access internal session cache
7
9 #include <openssl/ssl.h>
10
11 LHASH_OF(SSL_SESSION) *SSL_CTX_sessions(SSL_CTX *ctx);
12
14 SSL_CTX_sessions() returns a pointer to the lhash databases containing
15 the internal session cache for ctx.
16
18 The sessions in the internal session cache are kept in an LHASH(3) type
19 database. It is possible to directly access this database e.g. for
20 searching. In parallel, the sessions form a linked list which is
21 maintained separately from the LHASH(3) operations, so that the
22 database must not be modified directly but by using the
23 SSL_CTX_add_session(3) family of functions.
24
26 SSL_CTX_sessions() returns a pointer to the lhash of SSL_SESSION.
27
29 ssl(7), LHASH(3), SSL_CTX_add_session(3),
30 SSL_CTX_set_session_cache_mode(3)
31
33 Copyright 2001-2021 The OpenSSL Project Authors. All Rights Reserved.
34
35 Licensed under the Apache License 2.0 (the "License"). You may not use
36 this file except in compliance with the License. You can obtain a copy
37 in the file LICENSE in the source distribution or at
38 <https://www.openssl.org/source/license.html>.
39
40
41
423.0.5 2022-11-01 SSL_CTX_SESSIONS(3ossl)