summaryrefslogtreecommitdiff
path: root/src/lib/libssl/doc/SSL_CTX_flush_sessions.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/doc/SSL_CTX_flush_sessions.3')
-rw-r--r--src/lib/libssl/doc/SSL_CTX_flush_sessions.354
1 files changed, 54 insertions, 0 deletions
diff --git a/src/lib/libssl/doc/SSL_CTX_flush_sessions.3 b/src/lib/libssl/doc/SSL_CTX_flush_sessions.3
new file mode 100644
index 0000000000..6431008c4f
--- /dev/null
+++ b/src/lib/libssl/doc/SSL_CTX_flush_sessions.3
@@ -0,0 +1,54 @@
1.Dd $Mdocdate: October 12 2014 $
2.Dt SSL_CTX_FLUSH_SESSIONS 3
3.Os
4.Sh NAME
5.Nm SSL_CTX_flush_sessions ,
6.Nm SSL_flush_sessions
7.Nd remove expired sessions
8.Sh SYNOPSIS
9.In openssl/ssl.h
10.Ft void
11.Fn SSL_CTX_flush_sessions "SSL_CTX *ctx" "long tm"
12.Ft void
13.Fn SSL_flush_sessions "SSL_CTX *ctx" "long tm"
14.Sh DESCRIPTION
15.Fn SSL_CTX_flush_sessions
16causes a run through the session cache of
17.Fa ctx
18to remove sessions expired at time
19.Fa tm .
20.Pp
21.Fn SSL_flush_sessions
22is a synonym for
23.Fn SSL_CTX_flush_sessions .
24.Sh NOTES
25If enabled, the internal session cache will collect all sessions established
26up to the specified maximum number (see
27.Fn SSL_CTX_sess_set_cache_size ) .
28As sessions will not be reused ones they are expired, they should be
29removed from the cache to save resources.
30This can either be done automatically whenever 255 new sessions were
31established (see
32.Xr SSL_CTX_set_session_cache_mode 3 )
33or manually by calling
34.Fn SSL_CTX_flush_sessions .
35.Pp
36The parameter
37.Fa tm
38specifies the time which should be used for the
39expiration test, in most cases the actual time given by
40.Fn time 0
41will be used.
42.Pp
43.Fn SSL_CTX_flush_sessions
44will only check sessions stored in the internal cache.
45When a session is found and removed, the
46.Va remove_session_cb
47is however called to synchronize with the external cache (see
48.Xr SSL_CTX_sess_set_get_cb 3 ) .
49.Sh RETURN VALUES
50.Sh SEE ALSO
51.Xr ssl 3 ,
52.Xr SSL_CTX_sess_set_get_cb 3 ,
53.Xr SSL_CTX_set_session_cache_mode 3 ,
54.Xr SSL_CTX_set_timeout 3