1SSL_CTX_FLUSH_SESSIONS(3)           OpenSSL          SSL_CTX_FLUSH_SESSIONS(3)
2
3
4

NAME

6       SSL_CTX_flush_sessions - remove expired sessions
7

SYNOPSIS

9        #include <openssl/ssl.h>
10
11        void SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm);
12

DESCRIPTION

14       SSL_CTX_flush_sessions() causes a run through the session cache of ctx
15       to remove sessions expired at time tm.
16

NOTES

18       If enabled, the internal session cache will collect all sessions
19       established up to the specified maximum number (see
20       SSL_CTX_sess_set_cache_size()).  As sessions will not be reused ones
21       they are expired, they should be removed from the cache to save
22       resources. This can either be done automatically whenever 255 new
23       sessions were established (see SSL_CTX_set_session_cache_mode(3)) or
24       manually by calling SSL_CTX_flush_sessions().
25
26       The parameter tm specifies the time which should be used for the
27       expiration test, in most cases the actual time given by time(0) will be
28       used.
29
30       SSL_CTX_flush_sessions() will only check sessions stored in the
31       internal cache. When a session is found and removed, the
32       remove_session_cb is however called to synchronize with the external
33       cache (see SSL_CTX_sess_set_get_cb(3)).
34

RETURN VALUES

36       SSL_CTX_flush_sessions() does not return a value.
37

SEE ALSO

39       ssl(7), SSL_CTX_set_session_cache_mode(3), SSL_CTX_set_timeout(3),
40       SSL_CTX_sess_set_get_cb(3)
41
43       Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.
44
45       Licensed under the OpenSSL license (the "License").  You may not use
46       this file except in compliance with the License.  You can obtain a copy
47       in the file LICENSE in the source distribution or at
48       <https://www.openssl.org/source/license.html>.
49
50
51
521.1.1k                            2021-03-26         SSL_CTX_FLUSH_SESSIONS(3)
Impressum