xref: /titanic_44/usr/src/cmd/ssh/include/readpass.h (revision db8b037b5616a366b7dfdc01ef9552f02f9adfdd)
1 /*	$OpenBSD: readpass.h,v 1.7 2002/03/26 15:58:46 markus Exp $	*/
2 
3 #ifndef	_READPASS_H
4 #define	_READPASS_H
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 
11 /*
12  * Author: Tatu Ylonen <ylo@cs.hut.fi>
13  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
14  *                    All rights reserved
15  *
16  * As far as I am concerned, the code I have written for this software
17  * can be used freely for any purpose.  Any derived versions of this
18  * software must be clearly marked as such, and if the derived work is
19  * incompatible with the protocol description in the RFC file, it must be
20  * called by a name other than "ssh" or "Secure Shell".
21  */
22 
23 #define RP_ECHO			0x0001
24 #define RP_ALLOW_STDIN		0x0002
25 #define RP_ALLOW_EOF		0x0004
26 #define RP_USE_ASKPASS          0x0008
27 
28 char	*read_passphrase(const char *, int);
29 int	ask_permission(const char *, ...)
30     __attribute__((format(printf, 1, 2)));
31 int	read_keyfile_line(FILE *, const char *, char *, size_t, u_long *);
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif /* _READPASS_H */
38