blob: c4194046a26c3dad29c987ef6a31718578abd263 [file] [log] [blame]
Damien Miller389edc42000-11-06 12:39:34 +11001/* $OpenBSD: cli.h,v 1.2 2000/10/16 09:38:44 djm Exp $ */
2
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 */
12char* cli_read_passphrase(char* prompt, int from_stdin, int echo_enable);
13char* cli_prompt(char* prompt, int echo_enable);
14void cli_mesg(char* mesg);
15
16#endif /* CLI_H */