SSL_CTX_SET_TIMEOUT - Online Linux Manual PageSection : 3ossl
Updated : 2022-03-15
Source : 3.0.2
Note : OpenSSL

NAMESSL_CTX_set_timeout, SSL_CTX_get_timeout − manipulate timeout values for session caching

SYNOPSIS​ #include <openssl/ssl.h> ​ ​ long SSL_CTX_set_timeout(SSL_CTX *ctx, long t); ​ long SSL_CTX_get_timeout(SSL_CTX *ctx);

DESCRIPTIONSSL_CTX_set_timeout() sets the timeout for newly created sessions for ​ctx to t. The timeout value t must be given in seconds. SSL_CTX_get_timeout() returns the currently set timeout value for ctx.

NOTESWhenever a new session is created, it is assigned a maximum lifetime. This lifetime is specified by storing the creation time of the session and the timeout value valid at this time. If the actual time is later than creation time plus timeout, the session is not reused. Due to this realization, all sessions behave according to the timeout value valid at the time of the session negotiation. Changes of the timeout value do not affect already established sessions. The expiration time of a single session can be modified using the ​SSL_SESSION_get_time(3) family of functions. Expired sessions are removed from the internal session cache, whenever ​SSL_CTX_flush_sessions(3) is called, either directly by the application or automatically (see ​SSL_CTX_set_session_cache_mode(3)) The default value for session timeout is decided on a per protocol basis, see(3). All currently supported protocols have the same default timeout value of 300 seconds.

RETURN VALUESSSL_CTX_set_timeout() returns the previously set timeout value. SSL_CTX_get_timeout() returns the currently set timeout value.

SEE ALSOssl(7), ​SSL_CTX_set_session_cache_mode(3), ​SSL_SESSION_get_time(3), ​SSL_CTX_flush_sessions(3), ​SSL_get_default_timeout(3)

COPYRIGHTCopyright 2001−2016 The OpenSSL Project Authors. All Rights Reserved. Licensed under the Apache License 2.0 (the License). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
0
Johanes Gumabo
Data Size   :   7,654 byte
man-SSL_CTX_set_timeout.3osslBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 171,482
Visitor ID   :     :  
Visitor IP   :   13.58.110.182   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|S___SL_CTX_get_timeout.3ossl|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|S___SL_CTX_get_timeout.3ossl|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|S___SL_CTX_get_timeout.3ossl|43|br══─}─══|'br══─}─══ )         (htmlprn|149|S___SL_CTX_get_timeout.3ossl|43|'br══─}─══ |'br══─}─══ )