1153838Sdfr=pod
2153838Sdfr
3153838Sdfr=head1 NAME
4178828Sdfr
5178828SdfrSSL_get_default_timeout - get default session timeout value
6178828Sdfr
7153838Sdfr=head1 SYNOPSIS
8153838Sdfr
9178828Sdfr #include <openssl/ssl.h>
10153838Sdfr
11178828Sdfr long SSL_get_default_timeout(const SSL *ssl);
12178828Sdfr
13178828Sdfr=head1 DESCRIPTION
14178828Sdfr
15178828SdfrSSL_get_default_timeout() returns the default timeout value assigned to
16178828SdfrSSL_SESSION objects negotiated for the protocol valid for B<ssl>.
17178828Sdfr
18178828Sdfr=head1 NOTES
19153838Sdfr
20178828SdfrWhenever a new session is negotiated, it is assigned a timeout value,
21178828Sdfrafter which it will not be accepted for session reuse. If the timeout
22178828Sdfrvalue was not explicitly set using
23178828SdfrL<SSL_CTX_set_timeout(3)|SSL_CTX_set_timeout(3)>, the hardcoded default
24178828Sdfrtimeout for the protocol will be used.
25178828Sdfr
26178828SdfrSSL_get_default_timeout() return this hardcoded value, which is 300 seconds
27153838Sdfrfor all currently supported protocols (SSLv2, SSLv3, and TLSv1).
28178828Sdfr
29178828Sdfr=head1 RETURN VALUES
30153838Sdfr
31178828SdfrSee description.
32178828Sdfr
33153838Sdfr=head1 SEE ALSO
34153838Sdfr
35178828SdfrL<ssl(3)|ssl(3)>,
36178828SdfrL<SSL_CTX_set_session_cache_mode(3)|SSL_CTX_set_session_cache_mode(3)>,
37153838SdfrL<SSL_SESSION_get_time(3)|SSL_SESSION_get_time(3)>,
38178828SdfrL<SSL_CTX_flush_sessions(3)|SSL_CTX_flush_sessions(3)>,
39178828SdfrL<SSL_get_default_timeout(3)|SSL_get_default_timeout(3)>
40178828Sdfr
41178828Sdfr=cut
42181344Sdfr