1f02fcc43Szrj /* $OpenBSD: readpassphrase.h,v 1.5 2003/06/17 21:56:23 millert Exp $ */ 2f02fcc43Szrj /* $FreeBSD: head/include/readpassphrase.h 215236 2010-11-13 10:38:06Z delphij $ */ 3984263bcSMatthew Dillon 4984263bcSMatthew Dillon /* 5f02fcc43Szrj * Copyright (c) 2000, 2002 Todd C. Miller <Todd.Miller@courtesan.com> 6984263bcSMatthew Dillon * 7f02fcc43Szrj * Permission to use, copy, modify, and distribute this software for any 8f02fcc43Szrj * purpose with or without fee is hereby granted, provided that the above 9f02fcc43Szrj * copyright notice and this permission notice appear in all copies. 10984263bcSMatthew Dillon * 11f02fcc43Szrj * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 12f02fcc43Szrj * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 13f02fcc43Szrj * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14f02fcc43Szrj * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15f02fcc43Szrj * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16f02fcc43Szrj * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17f02fcc43Szrj * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18f02fcc43Szrj * 19f02fcc43Szrj * Sponsored in part by the Defense Advanced Research Projects 20f02fcc43Szrj * Agency (DARPA) and Air Force Research Laboratory, Air Force 21f02fcc43Szrj * Materiel Command, USAF, under agreement number F39502-99-1-0512. 22984263bcSMatthew Dillon */ 23984263bcSMatthew Dillon 24984263bcSMatthew Dillon #ifndef _READPASSPHRASE_H_ 25984263bcSMatthew Dillon #define _READPASSPHRASE_H_ 26984263bcSMatthew Dillon 27*6b07d4eeSSascha Wildner #include <sys/cdefs.h> 28*6b07d4eeSSascha Wildner #include <sys/types.h> 29*6b07d4eeSSascha Wildner 30984263bcSMatthew Dillon #define RPP_ECHO_OFF 0x00 /* Turn off echo (default). */ 31984263bcSMatthew Dillon #define RPP_ECHO_ON 0x01 /* Leave echo on. */ 32984263bcSMatthew Dillon #define RPP_REQUIRE_TTY 0x02 /* Fail if there is no tty. */ 33984263bcSMatthew Dillon #define RPP_FORCELOWER 0x04 /* Force input to lower case. */ 34984263bcSMatthew Dillon #define RPP_FORCEUPPER 0x08 /* Force input to upper case. */ 35