SSL_CTX_set_timeout(3) OpenSSL SSL_CTX_set_timeout(3) NNAAMMEE SSL_CTX_set_timeout, SSL_CTX_get_timeout - manipulate timeout values for session caching SSYYNNOOPPSSIISS #include long SSL_CTX_set_timeout(SSL_CTX *ctx, long t); long SSL_CTX_get_timeout(SSL_CTX *ctx); DDEESSCCRRIIPPTTIIOONN _S_S_L___C_T_X___s_e_t___t_i_m_e_o_u_t_(_) sets the timeout for newly created sessions for ccttxx to tt. The timeout value tt must be given in seconds. _S_S_L___C_T_X___g_e_t___t_i_m_e_o_u_t_(_) returns the currently set timeout value for ccttxx. NNOOTTEESS Whenever 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 _S_S_L___S_E_S_S_I_O_N___g_e_t___t_i_m_e(3) family of functions. Expired sessions are removed from the internal session cache, whenever _S_S_L___C_T_X___f_l_u_s_h___s_e_s_s_i_o_n_s(3) is called, either directly by the application or automatically (see _S_S_L___C_T_X___s_e_t___s_e_s_s_i_o_n___c_a_c_h_e___m_o_d_e(3)) The default value for session timeout is decided on a per protocol basis, see _S_S_L___g_e_t___d_e_f_a_u_l_t___t_i_m_e_o_u_t(3). All currently supported proto- cols have the same default timeout value of 300 seconds. RREETTUURRNN VVAALLUUEESS _S_S_L___C_T_X___s_e_t___t_i_m_e_o_u_t_(_) returns the previously set timeout value. _S_S_L___C_T_X___g_e_t___t_i_m_e_o_u_t_(_) returns the currently set timeout value. SSEEEE AALLSSOO _s_s_l(3), _S_S_L___C_T_X___s_e_t___s_e_s_s_i_o_n___c_a_c_h_e___m_o_d_e(3), _S_S_L___S_E_S_S_I_O_N___g_e_t___t_i_m_e(3), _S_S_L___C_T_X___f_l_u_s_h___s_e_s_s_i_o_n_s(3), _S_S_L___g_e_t___d_e_f_a_u_l_t___t_i_m_e_o_u_t(3) 1.0.1u 2016-09-22 SSL_CTX_set_timeout(3)