[#OSSL_PROVIDER_set_default_search_path]
= OSSL&lowbar;PROVIDER&lowbar;set&lowbar;default&lowbar;search&lowbar;path
:mrdocs:

Set the default filesystem search path used when loading providers&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;PROVIDER&lowbar;set&lowbar;default&lowbar;search&lowbar;path(
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* path);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *libctx*
| Library context whose provider search path is updated, or NULL for the default&period;
| *path*
| Directory path searched for provider modules&period;
|===


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