OSSL_LIB_CTX_new_from_dispatch

Allocate an OSSL_LIB_CTX wired to core BIO upcalls from a provider dispatch table.

Synopsis

Declared in <openssl/crypto.h>

OSSL_LIB_CTX*
OSSL_LIB_CTX_new_from_dispatch(
    OSSL_CORE_HANDLE const* handle,
    OSSL_DISPATCH const* in);

Return Value

New library context, or NULL on failure; free with OSSL_LIB_CTX_free().

Parameters

NameDescription
handleCore handle passed to the provider (reserved for future use; may be NULL).
inProvider-to-core OSSL_DISPATCH table containing BIO upcall function pointers.