xref: /titanic_44/usr/src/cmd/ssh/include/readpass.h (revision ef4d27fba69298571e509867dd27ea8bca349ec9)
17c478bd9Sstevel@tonic-gate /*	$OpenBSD: readpass.h,v 1.7 2002/03/26 15:58:46 markus Exp $	*/
27c478bd9Sstevel@tonic-gate 
37c478bd9Sstevel@tonic-gate #ifndef	_READPASS_H
47c478bd9Sstevel@tonic-gate #define	_READPASS_H
57c478bd9Sstevel@tonic-gate 
67c478bd9Sstevel@tonic-gate #ifdef __cplusplus
77c478bd9Sstevel@tonic-gate extern "C" {
87c478bd9Sstevel@tonic-gate #endif
97c478bd9Sstevel@tonic-gate 
107c478bd9Sstevel@tonic-gate 
117c478bd9Sstevel@tonic-gate /*
127c478bd9Sstevel@tonic-gate  * Author: Tatu Ylonen <ylo@cs.hut.fi>
137c478bd9Sstevel@tonic-gate  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
147c478bd9Sstevel@tonic-gate  *                    All rights reserved
157c478bd9Sstevel@tonic-gate  *
167c478bd9Sstevel@tonic-gate  * As far as I am concerned, the code I have written for this software
177c478bd9Sstevel@tonic-gate  * can be used freely for any purpose.  Any derived versions of this
187c478bd9Sstevel@tonic-gate  * software must be clearly marked as such, and if the derived work is
197c478bd9Sstevel@tonic-gate  * incompatible with the protocol description in the RFC file, it must be
207c478bd9Sstevel@tonic-gate  * called by a name other than "ssh" or "Secure Shell".
217c478bd9Sstevel@tonic-gate  */
227c478bd9Sstevel@tonic-gate 
237c478bd9Sstevel@tonic-gate #define RP_ECHO			0x0001
247c478bd9Sstevel@tonic-gate #define RP_ALLOW_STDIN		0x0002
257c478bd9Sstevel@tonic-gate #define RP_ALLOW_EOF		0x0004
26*ef4d27fbSHuie-Ying Lee #define RP_USE_ASKPASS          0x0008
277c478bd9Sstevel@tonic-gate 
287c478bd9Sstevel@tonic-gate char	*read_passphrase(const char *, int);
29*ef4d27fbSHuie-Ying Lee int	ask_permission(const char *, ...)
30*ef4d27fbSHuie-Ying Lee     __attribute__((format(printf, 1, 2)));
31*ef4d27fbSHuie-Ying Lee int	read_keyfile_line(FILE *, const char *, char *, size_t, u_long *);
327c478bd9Sstevel@tonic-gate 
337c478bd9Sstevel@tonic-gate #ifdef __cplusplus
347c478bd9Sstevel@tonic-gate }
357c478bd9Sstevel@tonic-gate #endif
367c478bd9Sstevel@tonic-gate 
377c478bd9Sstevel@tonic-gate #endif /* _READPASS_H */
38