[#OSSL_provider_init]
= OSSL&lowbar;provider&lowbar;init
:mrdocs:

Exported provider entry point&semi; each provider module must define this symbol&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
extern
int
OSSL&lowbar;provider&lowbar;init(
    xref:OSSL_CORE_HANDLE.adoc[OSSL&lowbar;CORE&lowbar;HANDLE] const* handle,
    xref:OSSL_DISPATCH.adoc[OSSL&lowbar;DISPATCH] const* in,
    xref:OSSL_DISPATCH.adoc[OSSL&lowbar;DISPATCH] const** out,
    void** provctx);
----

== Description

OpenSSL loads the provider by resolving this function and calling it with the core dispatch tables described by OSSL&lowbar;provider&lowbar;init&lowbar;fn&period;

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *handle*
| Core handle for this provider instance&period;
| *in*
| Dispatch table of functions the core offers the provider&period;
| *out*
| Receives the provider&apos;s dispatch table of exported functions&period;
| *provctx*
| Receives an optional provider&hyphen;side context pointer&period;
|===


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