2001-02-07 19:46:40 +03:00
|
|
|
/* $OpenBSD: cli.h,v 1.3 2001/01/16 23:58:09 deraadt Exp $ */
|
2001-01-14 07:49:51 +03:00
|
|
|
|
|
|
|
#ifndef CLI_H
|
|
|
|
#define CLI_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Presents a prompt and returns the response allocated with xmalloc().
|
|
|
|
* Uses /dev/tty or stdin/out depending on arg. Optionally disables echo
|
|
|
|
* of response depending on arg. Tries to ensure that no other userland
|
|
|
|
* buffer is storing the response.
|
|
|
|
*/
|
2001-02-07 19:46:40 +03:00
|
|
|
char * cli_read_passphrase(char * prompt, int from_stdin, int echo_enable);
|
|
|
|
char * cli_prompt(char * prompt, int echo_enable);
|
|
|
|
void cli_mesg(char * mesg);
|
2001-01-14 07:49:51 +03:00
|
|
|
|
|
|
|
#endif /* CLI_H */
|