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(7), SSL_CTX_set_session_cache_mode(3), SSL_CTX_sess_number(3),
46       SSL_CTX_flush_sessions(3)
47
49       Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
50
51       Licensed under the OpenSSL license (the "License").  You may not use
52       this file except in compliance with the License.  You can obtain a copy
53       in the file LICENSE in the source distribution or at
54       <https://www.openssl.org/source/license.html>.
55
56
57
581.1.1                             2018-09-11    SSL_CTX_SESS_SET_CACHE_SIZE(3)
Impressum