1*2175Sjp161948=pod
2*2175Sjp161948
3*2175Sjp161948=head1 NAME
4*2175Sjp161948
5*2175Sjp161948SSL_get_default_timeout - get default session timeout value
6*2175Sjp161948
7*2175Sjp161948=head1 SYNOPSIS
8*2175Sjp161948
9*2175Sjp161948 #include <openssl/ssl.h>
10*2175Sjp161948
11*2175Sjp161948 long SSL_get_default_timeout(const SSL *ssl);
12*2175Sjp161948
13*2175Sjp161948=head1 DESCRIPTION
14*2175Sjp161948
15*2175Sjp161948SSL_get_default_timeout() returns the default timeout value assigned to
16*2175Sjp161948SSL_SESSION objects negotiated for the protocol valid for B<ssl>.
17*2175Sjp161948
18*2175Sjp161948=head1 NOTES
19*2175Sjp161948
20*2175Sjp161948Whenever a new session is negotiated, it is assigned a timeout value,
21*2175Sjp161948after which it will not be accepted for session reuse. If the timeout
22*2175Sjp161948value was not explicitly set using
23*2175Sjp161948L<SSL_CTX_set_timeout(3)|SSL_CTX_set_timeout(3)>, the hardcoded default
24*2175Sjp161948timeout for the protocol will be used.
25*2175Sjp161948
26*2175Sjp161948SSL_get_default_timeout() return this hardcoded value, which is 300 seconds
27*2175Sjp161948for all currently supported protocols (SSLv2, SSLv3, and TLSv1).
28*2175Sjp161948
29*2175Sjp161948=head1 RETURN VALUES
30*2175Sjp161948
31*2175Sjp161948See description.
32*2175Sjp161948
33*2175Sjp161948=head1 SEE ALSO
34*2175Sjp161948
35*2175Sjp161948L<ssl(3)|ssl(3)>,
36*2175Sjp161948L<SSL_CTX_set_session_cache_mode(3)|SSL_CTX_set_session_cache_mode(3)>,
37*2175Sjp161948L<SSL_SESSION_get_time(3)|SSL_SESSION_get_time(3)>,
38*2175Sjp161948L<SSL_CTX_flush_sessions(3)|SSL_CTX_flush_sessions(3)>,
39*2175Sjp161948L<SSL_get_default_timeout(3)|SSL_get_default_timeout(3)>
40*2175Sjp161948
41*2175Sjp161948=cut
42