1SSL_CTX_sess_set_cache_size(3)      OpenSSL     SSL_CTX_sess_set_cache_size(3)
2
3
4

NAME

6       SSL_CTX_sess_set_cache_size, SSL_CTX_sess_get_cache_size - manipulate
7       session cache size
8

SYNOPSIS

10        #include <openssl/ssl.h>
11
12        long SSL_CTX_sess_set_cache_size(SSL_CTX *ctx, long t);
13        long SSL_CTX_sess_get_cache_size(SSL_CTX *ctx);
14

DESCRIPTION

16       SSL_CTX_sess_set_cache_size() sets the size of the internal session
17       cache of context ctx to t.  This value is a hint and not an absolute;
18       see the notes below.
19
20       SSL_CTX_sess_get_cache_size() returns the currently valid session cache
21       size.
22

NOTES

24       The internal session cache size is SSL_SESSION_CACHE_MAX_SIZE_DEFAULT,
25       currently 1024*20, so that up to 20000 sessions can be held. This size
26       can be modified using the SSL_CTX_sess_set_cache_size() call. A special
27       case is the size 0, which is used for unlimited size.
28
29       If adding the session makes the cache exceed its size, then unused
30       sessions are dropped from the end of the cache.  Cache space may also
31       be reclaimed by calling SSL_CTX_flush_sessions(3) to remove expired
32       sessions.
33
34       If the size of the session cache is reduced and more sessions are
35       already in the session cache, old session will be removed at the next
36       time a session shall be added. This removal is not synchronized with
37       the expiration of sessions.
38

RETURN VALUES

40       SSL_CTX_sess_set_cache_size() returns the previously valid size.
41
42       SSL_CTX_sess_get_cache_size() returns the currently valid size.
43

SEE ALSO

45       ssl(3), SSL_CTX_set_session_cache_mode(3), SSL_CTX_sess_number(3),
46       SSL_CTX_flush_sessions(3)
47
48
49
501.0.2o                            2020-01-28    SSL_CTX_sess_set_cache_size(3)
Impressum