xref: /freebsd/crypto/openssl/doc/man3/SSL_get_default_timeout.pod (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1e71b7053SJung-uk Kim=pod
2e71b7053SJung-uk Kim
3e71b7053SJung-uk Kim=head1 NAME
4e71b7053SJung-uk Kim
5e71b7053SJung-uk KimSSL_get_default_timeout - get default session timeout value
6e71b7053SJung-uk Kim
7e71b7053SJung-uk Kim=head1 SYNOPSIS
8e71b7053SJung-uk Kim
9e71b7053SJung-uk Kim #include <openssl/ssl.h>
10e71b7053SJung-uk Kim
11e71b7053SJung-uk Kim long SSL_get_default_timeout(const SSL *ssl);
12e71b7053SJung-uk Kim
13e71b7053SJung-uk Kim=head1 DESCRIPTION
14e71b7053SJung-uk Kim
15e71b7053SJung-uk KimSSL_get_default_timeout() returns the default timeout value assigned to
16e71b7053SJung-uk KimSSL_SESSION objects negotiated for the protocol valid for B<ssl>.
17e71b7053SJung-uk Kim
18e71b7053SJung-uk Kim=head1 NOTES
19e71b7053SJung-uk Kim
20e71b7053SJung-uk KimWhenever a new session is negotiated, it is assigned a timeout value,
21e71b7053SJung-uk Kimafter which it will not be accepted for session reuse. If the timeout
22e71b7053SJung-uk Kimvalue was not explicitly set using
23e71b7053SJung-uk KimL<SSL_CTX_set_timeout(3)>, the hardcoded default
24e71b7053SJung-uk Kimtimeout for the protocol will be used.
25e71b7053SJung-uk Kim
26e71b7053SJung-uk KimSSL_get_default_timeout() return this hardcoded value, which is 300 seconds
27e71b7053SJung-uk Kimfor all currently supported protocols.
28e71b7053SJung-uk Kim
29e71b7053SJung-uk Kim=head1 RETURN VALUES
30e71b7053SJung-uk Kim
31e71b7053SJung-uk KimSee description.
32e71b7053SJung-uk Kim
33e71b7053SJung-uk Kim=head1 SEE ALSO
34e71b7053SJung-uk Kim
35e71b7053SJung-uk KimL<ssl(7)>,
36e71b7053SJung-uk KimL<SSL_CTX_set_session_cache_mode(3)>,
37e71b7053SJung-uk KimL<SSL_SESSION_get_time(3)>,
38e71b7053SJung-uk KimL<SSL_CTX_flush_sessions(3)>,
39e71b7053SJung-uk KimL<SSL_get_default_timeout(3)>
40e71b7053SJung-uk Kim
41e71b7053SJung-uk Kim=head1 COPYRIGHT
42e71b7053SJung-uk Kim
43e71b7053SJung-uk KimCopyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
44e71b7053SJung-uk Kim
45*b077aed3SPierre ProncheryLicensed under the Apache License 2.0 (the "License").  You may not use
46e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
47e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
48e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
49e71b7053SJung-uk Kim
50e71b7053SJung-uk Kim=cut
51