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

Prompt for a password with a minimum and maximum length&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&lowbar;min(
    char* buf,
    int minlen,
    int maxlen,
    char const* prompt,
    int verify);
----

== Return Value

0 on success, or a non&hyphen;zero value on failure &sol; mismatch&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buf*
| Output buffer receiving the password (NUL&hyphen;terminated)&period;
| *minlen*
| Minimum acceptable password length in characters&period;
| *maxlen*
| Maximum length including space for the trailing NUL&period;
| *prompt*
| Prompt string shown to the user&period;
| *verify*
| When non&hyphen;zero, prompt twice and require matching input&period;
|===


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