#include
int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *c); int SSL_add_session(SSL_CTX *ctx, SSL_SESSION *c);
int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c); int SSL_remove_session(SSL_CTX *ctx, SSL_SESSION *c);
_S_S_L___C_T_X___r_e_m_o_v_e___s_e_s_s_i_o_n_(_) removes the session cc from the context ccttxx. _S_S_L___S_E_S_S_I_O_N___f_r_e_e(3) is called once for cc.
_S_S_L___a_d_d___s_e_s_s_i_o_n_(_) and _S_S_L___r_e_m_o_v_e___s_e_s_s_i_o_n_(_) are synonyms for their SSL_CTX_*() counterparts.
If a server SSL_CTX is configured with the SSL_SESS_CACHE_NO_INTERNAL_STORE flag then the internal cache will not be populated automatically by new sessions negotiated by the SSL/TLS implementation, even though the internal cache will be searched automatically for session-resume requests (the latter can be surpressed by SSL_SESS_CACHE_NO_INTERNAL_LOOKUP). So the application can use _S_S_L___C_T_X___a_d_d___s_e_s_s_i_o_n_(_) directly to have full control over the sessions that can be resumed if desired.
The operation failed. In case of the add operation, it was tried to add the same (identical) session twice. In case of the remove operation, the session was not found in the cache.
The operation succeeded.