[#EVP_read_pw_string]
= EVP&lowbar;read&lowbar;pw&lowbar;string
:mrdocs:

Prompt on the terminal for a password into `buf&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;read&lowbar;pw&lowbar;string(
    char* buf,
    int length,
    char const* prompt,
    int verify);
----

== Return Value

0 on success, a negative value on mismatch&sol;cancel, or a positive UI error code&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buf*
| Destination buffer receiving the password (NUL&hyphen;terminated)&period;
| *length*
| Capacity of `buf` in bytes including the NUL terminator&period;
| *prompt*
| Prompt string shown to the user, or NULL for the default&period;
| *verify*
| Nonzero to ask twice and require matching input&period;
|===


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