[#OSSL_PROVIDER_load]
= OSSL&lowbar;PROVIDER&lowbar;load
:mrdocs:

Load a provider by name into a library context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OSSL_PROVIDER.adoc[OSSL&lowbar;PROVIDER]*
OSSL&lowbar;PROVIDER&lowbar;load(
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* ctx,
    char const* name);
----

== Return Value

Provider handle on success, or NULL on failure&semi; unload with OSSL&lowbar;PROVIDER&lowbar;unload()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Library context that will own the provider, or NULL for the default&period;
| *name*
| Provider name (for example &quot;default&quot; or &quot;legacy&quot;)&period;
|===


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