BN_CTX_new_ex

Allocate a BN_CTX associated with library context ctx.

Synopsis

Declared in <openssl/bn.h>

BN_CTX*
BN_CTX_new_ex(OSSL_LIB_CTX* ctx);

Return Value

New BN_CTX, or NULL on allocation failure; free with BN_CTX_free().

Parameters

NameDescription
ctxLibrary context for provider-aware temporaries, or NULL for the default.