[#OSSL_LIB_CTX_set0_default]
= OSSL&lowbar;LIB&lowbar;CTX&lowbar;set0&lowbar;default
:mrdocs:

Set the thread&hyphen;local default OSSL&lowbar;LIB&lowbar;CTX used when NULL is passed for libctx&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]*
OSSL&lowbar;LIB&lowbar;CTX&lowbar;set0&lowbar;default(xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx);
----

== Return Value

The previous default library context&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *libctx*
| Library context to install as the default, or NULL to restore the global default&period;
|===


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