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.
18
19       SSL_CTX_sess_get_cache_size() returns the currently valid session cache
20       size.
21

NOTES

23       The internal session cache size is SSL_SESSION_CACHE_MAX_SIZE_DEFAULT,
24       currently 1024*20, so that up to 20000 sessions can be held. This size
25       can be modified using the SSL_CTX_sess_set_cache_size() call. A special
26       case is the size 0, which is used for unlimited size.
27
28       When the maximum number of sessions is reached, no more new sessions
29       are added to the cache. New space may be added by calling
30       SSL_CTX_flush_sessions(3) to remove expired sessions.
31
32       If the size of the session cache is reduced and more sessions are
33       already in the session cache, old session will be removed at the next
34       time a session shall be added. This removal is not synchronized with
35       the expiration of sessions.
36

RETURN VALUES

38       SSL_CTX_sess_set_cache_size() returns the previously valid size.
39
40       SSL_CTX_sess_get_cache_size() returns the currently valid size.
41

SEE ALSO

43       ssl(3), SSL_CTX_set_session_cache_mode(3), SSL_CTX_sess_number(3),
44       SSL_CTX_flush_sessions(3)
45
46
47
481.0.0e                            2002-07-10    SSL_CTX_sess_set_cache_size(3)
Impressum