Eneboo - Documentación para desarrolladores
|
00001 /* crypto/conf/conf_def.h */ 00002 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 00003 * All rights reserved. 00004 * 00005 * This package is an SSL implementation written 00006 * by Eric Young (eay@cryptsoft.com). 00007 * The implementation was written so as to conform with Netscapes SSL. 00008 * 00009 * This library is free for commercial and non-commercial use as long as 00010 * the following conditions are aheared to. The following conditions 00011 * apply to all code found in this distribution, be it the RC4, RSA, 00012 * lhash, DES, etc., code; not just the SSL code. The SSL documentation 00013 * included with this distribution is covered by the same copyright terms 00014 * except that the holder is Tim Hudson (tjh@cryptsoft.com). 00015 * 00016 * Copyright remains Eric Young's, and as such any Copyright notices in 00017 * the code are not to be removed. 00018 * If this package is used in a product, Eric Young should be given attribution 00019 * as the author of the parts of the library used. 00020 * This can be in the form of a textual message at program startup or 00021 * in documentation (online or textual) provided with the package. 00022 * 00023 * Redistribution and use in source and binary forms, with or without 00024 * modification, are permitted provided that the following conditions 00025 * are met: 00026 * 1. Redistributions of source code must retain the copyright 00027 * notice, this list of conditions and the following disclaimer. 00028 * 2. Redistributions in binary form must reproduce the above copyright 00029 * notice, this list of conditions and the following disclaimer in the 00030 * documentation and/or other materials provided with the distribution. 00031 * 3. All advertising materials mentioning features or use of this software 00032 * must display the following acknowledgement: 00033 * "This product includes cryptographic software written by 00034 * Eric Young (eay@cryptsoft.com)" 00035 * The word 'cryptographic' can be left out if the rouines from the library 00036 * being used are not cryptographic related :-). 00037 * 4. If you include any Windows specific code (or a derivative thereof) from 00038 * the apps directory (application code) you must include an acknowledgement: 00039 * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" 00040 * 00041 * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND 00042 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00043 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00044 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 00045 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00046 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00047 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00048 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00049 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00050 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00051 * SUCH DAMAGE. 00052 * 00053 * The licence and distribution terms for any publically available version or 00054 * derivative of this code cannot be changed. i.e. this code cannot simply be 00055 * copied and put under another distribution licence 00056 * [including the GNU Public Licence.] 00057 */ 00058 00059 /* THIS FILE WAS AUTOMAGICALLY GENERATED! 00060 Please modify and use keysets.pl to regenerate it. */ 00061 00062 #define CONF_NUMBER 1 00063 #define CONF_UPPER 2 00064 #define CONF_LOWER 4 00065 #define CONF_UNDER 256 00066 #define CONF_PUNCTUATION 512 00067 #define CONF_WS 16 00068 #define CONF_ESC 32 00069 #define CONF_QUOTE 64 00070 #define CONF_DQUOTE 1024 00071 #define CONF_COMMENT 128 00072 #define CONF_FCOMMENT 2048 00073 #define CONF_EOF 8 00074 #define CONF_HIGHBIT 4096 00075 #define CONF_ALPHA (CONF_UPPER|CONF_LOWER) 00076 #define CONF_ALPHA_NUMERIC (CONF_ALPHA|CONF_NUMBER|CONF_UNDER) 00077 #define CONF_ALPHA_NUMERIC_PUNCT (CONF_ALPHA|CONF_NUMBER|CONF_UNDER| \ 00078 CONF_PUNCTUATION) 00079 00080 #define KEYTYPES(c) ((unsigned short *)((c)->meth_data)) 00081 #ifndef CHARSET_EBCDIC 00082 #define IS_COMMENT(c,a) (KEYTYPES(c)[(a)&0xff]&CONF_COMMENT) 00083 #define IS_FCOMMENT(c,a) (KEYTYPES(c)[(a)&0xff]&CONF_FCOMMENT) 00084 #define IS_EOF(c,a) (KEYTYPES(c)[(a)&0xff]&CONF_EOF) 00085 #define IS_ESC(c,a) (KEYTYPES(c)[(a)&0xff]&CONF_ESC) 00086 #define IS_NUMBER(c,a) (KEYTYPES(c)[(a)&0xff]&CONF_NUMBER) 00087 #define IS_WS(c,a) (KEYTYPES(c)[(a)&0xff]&CONF_WS) 00088 #define IS_ALPHA_NUMERIC(c,a) (KEYTYPES(c)[(a)&0xff]&CONF_ALPHA_NUMERIC) 00089 #define IS_ALPHA_NUMERIC_PUNCT(c,a) \ 00090 (KEYTYPES(c)[(a)&0xff]&CONF_ALPHA_NUMERIC_PUNCT) 00091 #define IS_QUOTE(c,a) (KEYTYPES(c)[(a)&0xff]&CONF_QUOTE) 00092 #define IS_DQUOTE(c,a) (KEYTYPES(c)[(a)&0xff]&CONF_DQUOTE) 00093 #define IS_HIGHBIT(c,a) (KEYTYPES(c)[(a)&0xff]&CONF_HIGHBIT) 00094 00095 #else /*CHARSET_EBCDIC*/ 00096 00097 #define IS_COMMENT(c,a) (KEYTYPES(c)[os_toascii[a]&0xff]&CONF_COMMENT) 00098 #define IS_FCOMMENT(c,a) (KEYTYPES(c)[os_toascii[a]&0xff]&CONF_FCOMMENT) 00099 #define IS_EOF(c,a) (KEYTYPES(c)[os_toascii[a]&0xff]&CONF_EOF) 00100 #define IS_ESC(c,a) (KEYTYPES(c)[os_toascii[a]&0xff]&CONF_ESC) 00101 #define IS_NUMBER(c,a) (KEYTYPES(c)[os_toascii[a]&0xff]&CONF_NUMBER) 00102 #define IS_WS(c,a) (KEYTYPES(c)[os_toascii[a]&0xff]&CONF_WS) 00103 #define IS_ALPHA_NUMERIC(c,a) (KEYTYPES(c)[os_toascii[a]&0xff]&CONF_ALPHA_NUMERIC) 00104 #define IS_ALPHA_NUMERIC_PUNCT(c,a) \ 00105 (KEYTYPES(c)[os_toascii[a]&0xff]&CONF_ALPHA_NUMERIC_PUNCT) 00106 #define IS_QUOTE(c,a) (KEYTYPES(c)[os_toascii[a]&0xff]&CONF_QUOTE) 00107 #define IS_DQUOTE(c,a) (KEYTYPES(c)[os_toascii[a]&0xff]&CONF_DQUOTE) 00108 #define IS_HIGHBIT(c,a) (KEYTYPES(c)[os_toascii[a]&0xff]&CONF_HIGHBIT) 00109 #endif /*CHARSET_EBCDIC*/ 00110 00111 static unsigned short CONF_type_default[256]={ 00112 0x0008,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 00113 0x0000,0x0010,0x0010,0x0000,0x0000,0x0010,0x0000,0x0000, 00114 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 00115 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 00116 0x0010,0x0200,0x0040,0x0080,0x0000,0x0200,0x0200,0x0040, 00117 0x0000,0x0000,0x0200,0x0200,0x0200,0x0200,0x0200,0x0200, 00118 0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001, 00119 0x0001,0x0001,0x0000,0x0200,0x0000,0x0000,0x0000,0x0200, 00120 0x0200,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002, 00121 0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002, 00122 0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002, 00123 0x0002,0x0002,0x0002,0x0000,0x0020,0x0000,0x0200,0x0100, 00124 0x0040,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004, 00125 0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004, 00126 0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004, 00127 0x0004,0x0004,0x0004,0x0000,0x0200,0x0000,0x0200,0x0000, 00128 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00129 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00130 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00131 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00132 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00133 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00134 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00135 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00136 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00137 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00138 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00139 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00140 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00141 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00142 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00143 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00144 }; 00145 00146 static unsigned short CONF_type_win32[256]={ 00147 0x0008,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 00148 0x0000,0x0010,0x0010,0x0000,0x0000,0x0010,0x0000,0x0000, 00149 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 00150 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 00151 0x0010,0x0200,0x0400,0x0000,0x0000,0x0200,0x0200,0x0000, 00152 0x0000,0x0000,0x0200,0x0200,0x0200,0x0200,0x0200,0x0200, 00153 0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001, 00154 0x0001,0x0001,0x0000,0x0A00,0x0000,0x0000,0x0000,0x0200, 00155 0x0200,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002, 00156 0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002, 00157 0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002, 00158 0x0002,0x0002,0x0002,0x0000,0x0000,0x0000,0x0200,0x0100, 00159 0x0000,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004, 00160 0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004, 00161 0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004, 00162 0x0004,0x0004,0x0004,0x0000,0x0200,0x0000,0x0200,0x0000, 00163 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00164 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00165 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00166 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00167 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00168 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00169 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00170 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00171 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00172 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00173 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00174 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00175 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00176 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00177 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00178 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000, 00179 }; 00180