EVP_read_pw_string() -- SSLeay 0.9.0b -- January 1999

NAME

EVP_read_pw_string, EVP_set_pw_prompt, EVP_get_pw_prompt -- EVP password handling

SYNOPSIS

#include "envelope.h"

int EVP_read_pw_string()
char *buf, *prompt;
int len, verify;

void EVP_set_pw_prompt(char *prompt);

char *EVP_get_pw_prompt();

DESCRIPTION

EVP_read_pw_string() is the same as des_read_pw_string().

EVP_set_pw_prompt() sets the default prompt to use to use in EVP_read_pw_string when the prompt parameter is NULL. If the prompt parameter is NULL, this 'default prompt' feature is turned off. Be warned, this is a static variable so weird things will happen if it is used under Win16 and care must be taken when using a multi-threaded version of the library.

EVP_get_pw_prompt() returns a pointer to the default prompt string (a static variable) and returns NULL if the default is not set.