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

Supply a passphrase for decrypting encoded private&hyphen;key input&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(
    xref:OSSL_DECODER_CTX.adoc[OSSL&lowbar;DECODER&lowbar;CTX]* ctx,
    unsigned char const* kstr,
    size&lowbar;t klen);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Decoder context to configure&period;
| *kstr*
| Passphrase bytes&period;
| *klen*
| Length of `kstr` in bytes&period;
|===


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