|
||||
File indexing completed on 2025-01-18 09:54:02
0001 /* $OpenBSD: readpassphrase.h,v 1.4 2003/06/03 01:52:39 millert Exp $ */ 0002 0003 /* 0004 * Copyright (c) 2000, 2002 Todd C. Miller <Todd.Miller@courtesan.com> 0005 * 0006 * Permission to use, copy, modify, and distribute this software for any 0007 * purpose with or without fee is hereby granted, provided that the above 0008 * copyright notice and this permission notice appear in all copies. 0009 * 0010 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 0011 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 0012 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 0013 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 0014 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 0015 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 0016 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 0017 * 0018 * Sponsored in part by the Defense Advanced Research Projects 0019 * Agency (DARPA) and Air Force Research Laboratory, Air Force 0020 * Materiel Command, USAF, under agreement number F39502-99-1-0512. 0021 */ 0022 0023 #ifndef LIBBSD_READPASSPHRASE_H 0024 #define LIBBSD_READPASSPHRASE_H 0025 0026 #define RPP_ECHO_OFF 0x00 /* Turn off echo (default). */ 0027 #define RPP_ECHO_ON 0x01 /* Leave echo on. */ 0028 #define RPP_REQUIRE_TTY 0x02 /* Fail if there is no tty. */ 0029 #define RPP_FORCELOWER 0x04 /* Force input to lower case. */ 0030 #define RPP_FORCEUPPER 0x08 /* Force input to upper case. */ 0031 #define RPP_SEVENBIT 0x10 /* Strip the high bit from input. */ 0032 #define RPP_STDIN 0x20 /* Read from stdin, not /dev/tty */ 0033 0034 #ifdef LIBBSD_OVERLAY 0035 #include <sys/cdefs.h> 0036 #else 0037 #include <bsd/sys/cdefs.h> 0038 #endif 0039 #include <sys/types.h> 0040 0041 __BEGIN_DECLS 0042 char * readpassphrase(const char *, char *, size_t, int); 0043 __END_DECLS 0044 0045 #endif /* !LIBBSD_READPASSPHRASE_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |