Prompt on the terminal for a password into buf.
Declared in <openssl/evp.h>
int
EVP_read_pw_string(
char* buf,
int length,
char const* prompt,
int verify);
0 on success, a negative value on mismatch/cancel, or a positive UI error code.
| Name | Description |
|---|---|
| buf | Destination buffer receiving the password (NUL-terminated). |
| length | Capacity of buf in bytes including the NUL terminator. |
| prompt | Prompt string shown to the user, or NULL for the default. |
| verify | Nonzero to ask twice and require matching input. |