SSL_CTX_free(3) OpenSSL SSL_CTX_free(3) NNAAMMEE SSL_CTX_free - free an allocated SSL_CTX object SSYYNNOOPPSSIISS #include void SSL_CTX_free(SSL_CTX *ctx); DDEESSCCRRIIPPTTIIOONN _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. WWAARRNNIINNGGSS 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_(_). RREETTUURRNN VVAALLUUEESS _S_S_L___C_T_X___f_r_e_e_(_) does not provide diagnostic information. SSEEEE AALLSSOO _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) 1.0.2u 2019-12-20 SSL_CTX_free(3)