Damien Miller | 874d77b | 2000-10-14 16:23:11 +1100 | [diff] [blame] | 1 | #ifndef CLI_H |
| 2 | #define CLI_H |
| 3 | |
| 4 | /* |
| 5 | * Presents a prompt and returns the response allocated with xmalloc(). |
| 6 | * Uses /dev/tty or stdin/out depending on arg. Optionally disables echo |
| 7 | * of response depending on arg. Tries to ensure that no other userland |
| 8 | * buffer is storing the response. |
| 9 | */ |
| 10 | char* cli_read_passphrase(char* prompt, int from_stdin, int echo_enable); |
| 11 | char* cli_prompt(char* prompt, int echo_enable); |
| 12 | void cli_mesg(char* mesg); |
| 13 | |
| 14 | #endif /* CLI_H */ |