Function s2n_tls_sys::s2n_disable_atexit
source · pub unsafe extern "C" fn s2n_disable_atexit() -> c_int
Expand description
Prevents S2N from installing an atexit handler, which allows safe shutdown of S2N from within a re-entrant shared library
@warning This function must be called BEFORE s2n_init() to have any effect. It will return an error if s2n is already initialized.
@note This will cause s2n_cleanup
to do complete cleanup of s2n-tls when called from the main
thread (the thread s2n_init
was called from).
@returns S2N_SUCCESS on success. S2N_FAILURE on failure