1157016Sdes/* $OpenBSD: readpassphrase.h,v 1.5 2003/06/17 21:56:23 millert Exp $ */ 2126274Sdes 398937Sdes/* 4157016Sdes * Copyright (c) 2000, 2002 Todd C. Miller <Todd.Miller@courtesan.com> 598937Sdes * 6157016Sdes * Permission to use, copy, modify, and distribute this software for any 7157016Sdes * purpose with or without fee is hereby granted, provided that the above 8157016Sdes * copyright notice and this permission notice appear in all copies. 998937Sdes * 10157016Sdes * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11157016Sdes * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12157016Sdes * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13157016Sdes * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14157016Sdes * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15157016Sdes * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16157016Sdes * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17157016Sdes * 18157016Sdes * Sponsored in part by the Defense Advanced Research Projects 19157016Sdes * Agency (DARPA) and Air Force Research Laboratory, Air Force 20157016Sdes * Materiel Command, USAF, under agreement number F39502-99-1-0512. 2198937Sdes */ 2298937Sdes 23157016Sdes/* OPENBSD ORIGINAL: include/readpassphrase.h */ 24157016Sdes 2598937Sdes#ifndef _READPASSPHRASE_H_ 2698937Sdes#define _READPASSPHRASE_H_ 2798937Sdes 2898937Sdes#include "includes.h" 2998937Sdes 3098937Sdes#ifndef HAVE_READPASSPHRASE 3198937Sdes 3298937Sdes#define RPP_ECHO_OFF 0x00 /* Turn off echo (default). */ 3398937Sdes#define RPP_ECHO_ON 0x01 /* Leave echo on. */ 3498937Sdes#define RPP_REQUIRE_TTY 0x02 /* Fail if there is no tty. */ 3598937Sdes#define RPP_FORCELOWER 0x04 /* Force input to lower case. */ 3698937Sdes#define RPP_FORCEUPPER 0x08 /* Force input to upper case. */ 3798937Sdes#define RPP_SEVENBIT 0x10 /* Strip the high bit from input. */ 38106121Sdes#define RPP_STDIN 0x20 /* Read from stdin, not /dev/tty */ 3998937Sdes 40106121Sdeschar * readpassphrase(const char *, char *, size_t, int); 4198937Sdes 4298937Sdes#endif /* HAVE_READPASSPHRASE */ 4398937Sdes 4498937Sdes#endif /* !_READPASSPHRASE_H_ */ 45