Prompt for a password with a minimum and maximum length.
Declared in <openssl/evp.h>
int
EVP_read_pw_string_min(
char* buf,
int minlen,
int maxlen,
char const* prompt,
int verify);
0 on success, or a non-zero value on failure / mismatch.
| Name | Description |
|---|---|
| buf | Output buffer receiving the password (NUL-terminated). |
| minlen | Minimum acceptable password length in characters. |
| maxlen | Maximum length including space for the trailing NUL. |
| prompt | Prompt string shown to the user. |
| verify | When non-zero, prompt twice and require matching input. |