OSSL_PROVIDER_add_builtin

Register a built-in provider init function under name in a library context.

Synopsis

Declared in <openssl/provider.h>

int
OSSL_PROVIDER_add_builtin(
    OSSL_LIB_CTX* ctx,
    char const* name,
    OSSL_provider_init_fn* init_fn);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxLibrary context receiving the registration, or NULL for the default.
nameName under which the provider can later be loaded.
init_fnProvider entry point of type OSSL_provider_init_fn.