Function s2n_tls_sys::s2n_init

source ·
pub unsafe extern "C" fn s2n_init() -> c_int
Expand description

Initializes the s2n-tls library and should be called once in your application, before any other s2n-tls functions are called. Failure to call s2n_init() will result in errors from other s2n-tls functions.

@warning This function is not thread safe and should only be called once.

@returns S2N_SUCCESS on success. S2N_FAILURE on failure