xref: /onnv-gate/usr/src/cmd/ssh/include/readpass.h (revision 10296:afe43a511349)
10Sstevel@tonic-gate /*	$OpenBSD: readpass.h,v 1.7 2002/03/26 15:58:46 markus Exp $	*/
20Sstevel@tonic-gate 
30Sstevel@tonic-gate #ifndef	_READPASS_H
40Sstevel@tonic-gate #define	_READPASS_H
50Sstevel@tonic-gate 
60Sstevel@tonic-gate #ifdef __cplusplus
70Sstevel@tonic-gate extern "C" {
80Sstevel@tonic-gate #endif
90Sstevel@tonic-gate 
100Sstevel@tonic-gate 
110Sstevel@tonic-gate /*
120Sstevel@tonic-gate  * Author: Tatu Ylonen <ylo@cs.hut.fi>
130Sstevel@tonic-gate  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
140Sstevel@tonic-gate  *                    All rights reserved
150Sstevel@tonic-gate  *
160Sstevel@tonic-gate  * As far as I am concerned, the code I have written for this software
170Sstevel@tonic-gate  * can be used freely for any purpose.  Any derived versions of this
180Sstevel@tonic-gate  * software must be clearly marked as such, and if the derived work is
190Sstevel@tonic-gate  * incompatible with the protocol description in the RFC file, it must be
200Sstevel@tonic-gate  * called by a name other than "ssh" or "Secure Shell".
210Sstevel@tonic-gate  */
220Sstevel@tonic-gate 
230Sstevel@tonic-gate #define RP_ECHO			0x0001
240Sstevel@tonic-gate #define RP_ALLOW_STDIN		0x0002
250Sstevel@tonic-gate #define RP_ALLOW_EOF		0x0004
26*10296SHuie-Ying.Lee@Sun.COM #define RP_USE_ASKPASS          0x0008
270Sstevel@tonic-gate 
280Sstevel@tonic-gate char	*read_passphrase(const char *, int);
29*10296SHuie-Ying.Lee@Sun.COM int	ask_permission(const char *, ...)
30*10296SHuie-Ying.Lee@Sun.COM     __attribute__((format(printf, 1, 2)));
31*10296SHuie-Ying.Lee@Sun.COM int	read_keyfile_line(FILE *, const char *, char *, size_t, u_long *);
320Sstevel@tonic-gate 
330Sstevel@tonic-gate #ifdef __cplusplus
340Sstevel@tonic-gate }
350Sstevel@tonic-gate #endif
360Sstevel@tonic-gate 
370Sstevel@tonic-gate #endif /* _READPASS_H */
38