Function s2n_tls_sys::s2n_crypto_disable_init

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

Prevents S2N from calling OPENSSL_init_crypto/OPENSSL_cleanup/EVP_cleanup on OpenSSL versions prior to 1.1.x. This allows applications or languages that also init OpenSSL to interoperate with S2N.

@warning This function must be called BEFORE s2n_init() to have any effect. It will return an error if s2n is already initialized.

@note If you disable this and are using a version of OpenSSL/libcrypto < 1.1.x, you will be responsible for library init and cleanup (specifically OPENSSL_add_all_algorithms() or OPENSSL_init_crypto(), and EVP_* APIs will not be usable unless the library is initialized.

@returns S2N_SUCCESS on success. S2N_FAILURE on failure