1SSL_CTX_flush_sessions(3) OpenSSL SSL_CTX_flush_sessions(3)
2
3
4
6 SSL_CTX_flush_sessions, SSL_flush_sessions - remove expired sessions
7
9 #include <openssl/ssl.h>
10
11 void SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm);
12 void SSL_flush_sessions(SSL_CTX *ctx, long tm);
13
15 SSL_CTX_flush_sessions() causes a run through the session cache of ctx
16 to remove sessions expired at time tm.
17
18 SSL_flush_sessions() is a synonym for SSL_CTX_flush_sessions().
19
21 If enabled, the internal session cache will collect all sessions
22 established up to the specified maximum number (see
23 SSL_CTX_sess_set_cache_size()). As sessions will not be reused ones
24 they are expired, they should be removed from the cache to save
25 resources. This can either be done
26 automatically whenever 255 new sessions were established (see
27 SSL_CTX_set_session_cache_mode(3)) or manually by calling
28 SSL_CTX_flush_sessions().
29
30 The parameter tm specifies the time which should be used for the
31 expiration test, in most cases the actual time given by time(0) will be
32 used.
33
34 SSL_CTX_flush_sessions() will only check sessions stored in the
35 internal cache. When a session is found and removed, the
36 remove_session_cb is however called to synchronize with the external
37 cache (see SSL_CTX_sess_set_get_cb(3)).
38
41 ssl(3), SSL_CTX_set_session_cache_mode(3), SSL_CTX_set_timeout(3),
42 SSL_CTX_sess_set_get_cb(3)
43
44
45
461.0.0e 2001-02-04 SSL_CTX_flush_sessions(3)