OSSL_LIB_CTX_set0_default

Set the thread-local default OSSL_LIB_CTX used when NULL is passed for libctx.

Synopsis

Declared in <openssl/crypto.h>

OSSL_LIB_CTX*
OSSL_LIB_CTX_set0_default(OSSL_LIB_CTX* libctx);

Return Value

The previous default library context.

Parameters

NameDescription
libctxLibrary context to install as the default, or NULL to restore the global default.