diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-03-18 09:55:03 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-03-18 09:55:03 +0000 |
commit | ae1f160d56b2d59d406f1af34cbdcc88a9e1b914 (patch) | |
tree | 7ac239d263df7247abaf6488a321dac17f2ebce9 /crypto/openssh/readpass.h | |
parent | 1e8db6e2f63ea90b361b3bbc9ebe9990660cb596 (diff) |
Vendor import of OpenSSH 3.1
Notes
Notes:
svn path=/vendor-crypto/openssh/dist/; revision=92555
Diffstat (limited to 'crypto/openssh/readpass.h')
-rw-r--r-- | crypto/openssh/readpass.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/crypto/openssh/readpass.h b/crypto/openssh/readpass.h index d8da448a7a7b..229973c68add 100644 --- a/crypto/openssh/readpass.h +++ b/crypto/openssh/readpass.h @@ -1,4 +1,4 @@ -/* $OpenBSD: readpass.h,v 1.2 2001/01/29 01:58:17 niklas Exp $ */ +/* $OpenBSD: readpass.h,v 1.6 2001/06/26 17:27:24 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -12,9 +12,7 @@ * called by a name other than "ssh" or "Secure Shell". */ -/* - * Reads a passphrase from /dev/tty with echo turned off. Returns the - * passphrase (allocated with xmalloc). Exits if EOF is encountered. If - * from_stdin is true, the passphrase will be read from stdin instead. - */ -char *read_passphrase(char *prompt, int from_stdin); +#define RP_ECHO 0x0001 +#define RP_ALLOW_STDIN 0x0002 + +char *read_passphrase(const char *, int); |