[#OSSL_PROVIDER_add_builtin]
= OSSL&lowbar;PROVIDER&lowbar;add&lowbar;builtin
:mrdocs:

Register a built&hyphen;in provider init function under `name` in a library context&period;

== Synopsis

Declared in `&lt;openssl&sol;provider&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;PROVIDER&lowbar;add&lowbar;builtin(
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* ctx,
    char const* name,
    xref:OSSL_provider_init_fn.adoc[OSSL&lowbar;provider&lowbar;init&lowbar;fn]* init&lowbar;fn);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Library context receiving the registration, or NULL for the default&period;
| *name*
| Name under which the provider can later be loaded&period;
| *init&lowbar;fn*
| Provider entry point of type OSSL&lowbar;provider&lowbar;init&lowbar;fn&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
