summaryrefslogtreecommitdiff
path: root/src/lib/libssl/doc/SSL_CTX_set_timeout.3
diff options
context:
space:
mode:
authorbentley <>2014-10-12 09:33:04 +0000
committerbentley <>2014-10-12 09:33:04 +0000
commit82b7f378b6907ab315a6e50322d2a0a8794a0aa9 (patch)
treea5087bf8d016a6041c2b6822fbecfd8f6c5e70b1 /src/lib/libssl/doc/SSL_CTX_set_timeout.3
parent0a63f0cf49369e1926567ab62e04e3355cedf0cd (diff)
downloadopenbsd-82b7f378b6907ab315a6e50322d2a0a8794a0aa9.tar.gz
openbsd-82b7f378b6907ab315a6e50322d2a0a8794a0aa9.tar.bz2
openbsd-82b7f378b6907ab315a6e50322d2a0a8794a0aa9.zip
Convert libssl manpages from pod to mdoc(7).
libcrypto has not been started yet. ok schwarze@ miod@
Diffstat (limited to 'src/lib/libssl/doc/SSL_CTX_set_timeout.3')
-rw-r--r--src/lib/libssl/doc/SSL_CTX_set_timeout.362
1 files changed, 62 insertions, 0 deletions
diff --git a/src/lib/libssl/doc/SSL_CTX_set_timeout.3 b/src/lib/libssl/doc/SSL_CTX_set_timeout.3
new file mode 100644
index 0000000000..c8aaee24e2
--- /dev/null
+++ b/src/lib/libssl/doc/SSL_CTX_set_timeout.3
@@ -0,0 +1,62 @@
1.Dd $Mdocdate: October 12 2014 $
2.Dt SSL_CTX_SET_TIMEOUT 3
3.Os
4.Sh NAME
5.Nm SSL_CTX_set_timeout ,
6.Nm SSL_CTX_get_timeout
7.Nd manipulate timeout values for session caching
8.Sh SYNOPSIS
9.In openssl/ssl.h
10.Ft long
11.Fn SSL_CTX_set_timeout "SSL_CTX *ctx" "long t"
12.Ft long
13.Fn SSL_CTX_get_timeout "SSL_CTX *ctx"
14.Sh DESCRIPTION
15.Fn SSL_CTX_set_timeout
16sets the timeout for newly created sessions for
17.Fa ctx
18to
19.Fa t .
20The timeout value
21.Fa t
22must be given in seconds.
23.Pp
24.Fn SSL_CTX_get_timeout
25returns the currently set timeout value for
26.Fa ctx .
27.Sh NOTES
28Whenever a new session is created, it is assigned a maximum lifetime.
29This lifetime is specified by storing the creation time of the session and the
30timeout value valid at this time.
31If the actual time is later than creation time plus timeout,
32the session is not reused.
33.Pp
34Due to this realization, all sessions behave according to the timeout value
35valid at the time of the session negotiation.
36Changes of the timeout value do not affect already established sessions.
37.Pp
38The expiration time of a single session can be modified using the
39.Xr SSL_SESSION_get_time 3
40family of functions.
41.Pp
42Expired sessions are removed from the internal session cache, whenever
43.Xr SSL_CTX_flush_sessions 3
44is called, either directly by the application or automatically (see
45.Xr SSL_CTX_set_session_cache_mode 3 ) .
46.Pp
47The default value for session timeout is decided on a per-protocol basis; see
48.Xr SSL_get_default_timeout 3 .
49All currently supported protocols have the same default timeout value of 300
50seconds.
51.Sh RETURN VALUES
52.Fn SSL_CTX_set_timeout
53returns the previously set timeout value.
54.Pp
55.Fn SSL_CTX_get_timeout
56returns the currently set timeout value.
57.Sh SEE ALSO
58.Xr ssl 3 ,
59.Xr SSL_CTX_flush_sessions 3 ,
60.Xr SSL_CTX_set_session_cache_mode 3 ,
61.Xr SSL_get_default_timeout 3 ,
62.Xr SSL_SESSION_get_time 3