summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/cli.h
blob: e33ce4a5047004111fbb9ef494006a93238c82b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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.
 */
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);

#endif /* CLI_H */