SSL_CTX_free 3 2003-07-24 0.9.9-dev OpenSSL
NAME
SSL_CTX_free - free an allocated SSL_CTX object
LIBRARY
libcrypto, -lcrypto
SYNOPSIS
#include
void SSL_CTX_free(SSL_CTX *ctx);
DESCRIPTION
_S_S_L___C_T_X___f_r_e_e_(_) decrements the reference count of ccttxx, and removes the
SSL_CTX object pointed to by ccttxx and frees up the allocated memory if the
the reference count has reached 0.
It also calls the _f_r_e_e_(_)ing procedures for indirectly affected items, if
applicable: the session cache, the list of ciphers, the list of Client CAs,
the certificates and keys.
WARNINGS
If a session-remove callback is set (_S_S_L___C_T_X___s_e_s_s___s_e_t___r_e_m_o_v_e___c_b_(_)), this
callback will be called for each session being freed from ccttxx's
session cache. This implies, that all corresponding sessions from an
external session cache are removed as well. If this is not desired, the user
should explicitly unset the callback by calling
SSL_CTX_sess_set_remove_cb(ccttxx, NULL) prior to calling _S_S_L___C_T_X___f_r_e_e_(_).
RETURN VALUES
_S_S_L___C_T_X___f_r_e_e_(_) does not provide diagnostic information.
SEE ALSO
_S_S_L___C_T_X___n_e_w(3), _s_s_l(3),
_S_S_L___C_T_X___s_e_s_s___s_e_t___g_e_t___c_b(3)