Annotation of src/include/readpassphrase.h, Revision 1.4
1.4 ! millert 1: /* $OpenBSD: readpassphrase.h,v 1.3 2002/06/28 12:32:22 millert Exp $ */
1.1 millert 2:
3: /*
4: * Copyright (c) 2000 Todd C. Miller <Todd.Miller@courtesan.com>
5: *
1.4 ! millert 6: * Permission to use, copy, modify, and distribute this software for any
! 7: * purpose with or without fee is hereby granted, provided that the above
! 8: * copyright notice and this permission notice appear in all copies.
1.1 millert 9: *
1.4 ! millert 10: * THE SOFTWARE IS PROVIDED "AS IS" AND TODD C. MILLER DISCLAIMS ALL
! 11: * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
! 12: * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL TODD C. MILLER BE LIABLE
! 13: * FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
! 14: * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
! 15: * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
! 16: * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1.1 millert 17: */
18:
19: #ifndef _READPASSPHRASE_H_
20: #define _READPASSPHRASE_H_
21:
22: #define RPP_ECHO_OFF 0x00 /* Turn off echo (default). */
23: #define RPP_ECHO_ON 0x01 /* Leave echo on. */
24: #define RPP_REQUIRE_TTY 0x02 /* Fail if there is no tty. */
25: #define RPP_FORCELOWER 0x04 /* Force input to lower case. */
26: #define RPP_FORCEUPPER 0x08 /* Force input to upper case. */
27: #define RPP_SEVENBIT 0x10 /* Strip the high bit from input. */
1.3 millert 28: #define RPP_STDIN 0x20 /* Read from stdin, not /dev/tty */
1.1 millert 29:
30: #include <sys/cdefs.h>
31:
32: __BEGIN_DECLS
1.2 millert 33: char * readpassphrase(const char *, char *, size_t, int);
1.1 millert 34: __END_DECLS
35:
36: #endif /* !_READPASSPHRASE_H_ */