Function s2n_tls_sys::s2n_connection_free
source · pub unsafe extern "C" fn s2n_connection_free(
conn: *mut s2n_connection
) -> c_int
Expand description
Frees the memory associated with an s2n_connection
handle. The handle is considered invalid after s2n_connection_free
is used.
s2n_connection_wipe() does not need to be called prior to this function. s2n_connection_free
performs its own wipe
of sensitive data.
@param conn A pointer to the s2n_connection object @returns 0 on success. -1 on failure