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