SSL_free(3) OpenSSL SSL_free(3) NNAAMMEE SSL_free - free an allocated SSL structure SSYYNNOOPPSSIISS #include void SSL_free(SSL *ssl); DDEESSCCRRIIPPTTIIOONN _S_S_L___f_r_e_e_(_) decrements the reference count of ssssll, and removes the SSL structure pointed to by ssssll and frees up the allocated memory if the reference count has reached 0. NNOOTTEESS _S_S_L___f_r_e_e_(_) also calls the _f_r_e_e_(_)ing procedures for indirectly affected items, if applicable: the buffering BIO, the read and write BIOs, cipher lists specially created for this ssssll, the SSSSLL__SSEESSSSIIOONN. Do not explicitly free these indirectly freed up items before or after calling _S_S_L___f_r_e_e_(_), as trying to free things twice may lead to program failure. The ssl session has reference counts from two users: the SSL object, for which the reference count is removed by _S_S_L___f_r_e_e_(_) and the internal session cache. If the session is considered bad, because _S_S_L___s_h_u_t_- _d_o_w_n(3) was not called for the connection and _S_S_L___s_e_t___s_h_u_t_d_o_w_n(3) was not used to set the SSL_SENT_SHUTDOWN state, the session will also be removed from the session cache as required by RFC2246. RREETTUURRNN VVAALLUUEESS _S_S_L___f_r_e_e_(_) does not provide diagnostic information. _S_S_L___n_e_w(3), _S_S_L___c_l_e_a_r(3), _S_S_L___s_h_u_t_d_o_w_n(3), _S_S_L___s_e_t___s_h_u_t_d_o_w_n(3), _s_s_l(3) 1.0.2u 2019-12-20 SSL_free(3)