[#SSL_CTX_set_default_passwd_cb]
= SSL&lowbar;CTX&lowbar;set&lowbar;default&lowbar;passwd&lowbar;cb
:mrdocs:

Set the default password callback used when loading encrypted PEM material into a context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SSL&lowbar;CTX&lowbar;set&lowbar;default&lowbar;passwd&lowbar;cb(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:pem_password_cb.adoc[pem&lowbar;password&lowbar;cb]* cb);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose PEM password callback is replaced&period;
| *cb*
| Password callback (see pem&lowbar;password&lowbar;cb), or NULL to clear&period;
|===


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