[#OSSL_DECODER_CTX_set_passphrase_cb]
= OSSL&lowbar;DECODER&lowbar;CTX&lowbar;set&lowbar;passphrase&lowbar;cb
:mrdocs:

Set an OSSL&lowbar;PASSPHRASE&lowbar;CALLBACK used to prompt for a passphrase&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;DECODER&lowbar;CTX&lowbar;set&lowbar;passphrase&lowbar;cb(
    xref:OSSL_DECODER_CTX.adoc[OSSL&lowbar;DECODER&lowbar;CTX]* ctx,
    xref:OSSL_PASSPHRASE_CALLBACK.adoc[OSSL&lowbar;PASSPHRASE&lowbar;CALLBACK]* cb,
    void* cbarg);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Decoder context to configure&period;
| *cb*
| Passphrase callback invoked when decryption needs a secret&period;
| *cbarg*
| Opaque argument passed to `cb&period;`
|===


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