[#OSSL_ENCODER_CTX_set_passphrase_ui]
= OSSL&lowbar;ENCODER&lowbar;CTX&lowbar;set&lowbar;passphrase&lowbar;ui
:mrdocs:

Set a UI method for passphrase prompting on an encoder context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;ENCODER&lowbar;CTX&lowbar;set&lowbar;passphrase&lowbar;ui(
    xref:OSSL_ENCODER_CTX.adoc[OSSL&lowbar;ENCODER&lowbar;CTX]* ctx,
    xref:UI_METHOD.adoc[UI&lowbar;METHOD] const* ui&lowbar;method,
    void* ui&lowbar;data);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Encoder context to configure&period;
| *ui&lowbar;method*
| UI&lowbar;METHOD used to read passphrases, or NULL for the default&period;
| *ui&lowbar;data*
| Application data passed to the UI method&period;
|===


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