Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

readpassphrase.h

00001 /* OPENBSD ORIGINAL: include/readpassphrase.h */
00002 
00003 /*      $OpenBSD: readpassphrase.h,v 1.3 2002/06/28 12:32:22 millert Exp $      */
00004 
00005 /*
00006  * Copyright (c) 2000 Todd C. Miller <[email protected]>
00007  * All rights reserved.
00008  *
00009  * Redistribution and use in source and binary forms, with or without
00010  * modification, are permitted provided that the following conditions
00011  * are met:
00012  * 1. Redistributions of source code must retain the above copyright
00013  *    notice, this list of conditions and the following disclaimer.
00014  * 2. Redistributions in binary form must reproduce the above copyright
00015  *    notice, this list of conditions and the following disclaimer in the
00016  *    documentation and/or other materials provided with the distribution.
00017  * 3. The name of the author may not be used to endorse or promote products
00018  *    derived from this software without specific prior written permission.
00019  *
00020  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
00021  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
00022  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
00023  * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00024  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00025  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
00026  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
00027  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
00028  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
00029  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00030  */
00031 
00032 #ifndef _READPASSPHRASE_H_
00033 #define _READPASSPHRASE_H_
00034 
00035 #if defined(__GNUC__) && __GNUC__ >= 4
00036 #pragma GCC visibility push(hidden)
00037 #endif
00038 
00039 #ifndef HAVE_READPASSPHRASE
00040 
00041 #define RPP_ECHO_OFF    0x00            /* Turn off echo (default). */
00042 #define RPP_ECHO_ON     0x01            /* Leave echo on. */
00043 #define RPP_REQUIRE_TTY 0x02            /* Fail if there is no tty. */
00044 #define RPP_FORCELOWER  0x04            /* Force input to lower case. */
00045 #define RPP_FORCEUPPER  0x08            /* Force input to upper case. */
00046 #define RPP_SEVENBIT    0x10            /* Strip the high bit from input. */
00047 #define RPP_STDIN       0x20            /* Read from stdin, not /dev/tty */
00048 
00049 char * readpassphrase(const char *, char *, size_t, int);
00050 
00051 #endif /* HAVE_READPASSPHRASE */
00052 
00053 #if defined(__GNUC__) && __GNUC__ >= 4
00054 #pragma GCC visibility pop
00055 #endif
00056 
00057 #endif /* !_READPASSPHRASE_H_ */

Generated on Wed May 7 19:22:09 2008 for FreeTDS API by  doxygen 1.4.1