blob: 27e89b2940733c1b8c41b8426534bf6f3b03200c [file] [log] [blame]
Kevin Steves2b725a02001-02-05 18:16:28 +00001/* $OpenBSD: cli.h,v 1.3 2001/01/16 23:58:09 deraadt Exp $ */
Damien Miller389edc42000-11-06 12:39:34 +11002
Damien Miller874d77b2000-10-14 16:23:11 +11003#ifndef CLI_H
4#define CLI_H
5
6/*
7 * Presents a prompt and returns the response allocated with xmalloc().
8 * Uses /dev/tty or stdin/out depending on arg. Optionally disables echo
9 * of response depending on arg. Tries to ensure that no other userland
10 * buffer is storing the response.
11 */
Kevin Stevesef4eea92001-02-05 12:42:17 +000012char* cli_read_passphrase(const char* prompt, int from_stdin,
Damien Miller92e78f82001-01-17 11:10:48 +110013 int echo_enable);
Damien Miller874d77b2000-10-14 16:23:11 +110014char* cli_prompt(char* prompt, int echo_enable);
15void cli_mesg(char* mesg);
16
17#endif /* CLI_H */