Annotation of embedaddon/strongswan/src/starter/keywords.h, revision 1.1.1.1

1.1       misho       1: /*
                      2:  * Copyright (C) 2005 Andreas Steffen
                      3:  * HSR Hochschule fuer Technik Rapperswil
                      4:  *
                      5:  * This program is free software; you can redistribute it and/or modify it
                      6:  * under the terms of the GNU General Public License as published by the
                      7:  * Free Software Foundation; either version 2 of the License, or (at your
                      8:  * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
                      9:  *
                     10:  * This program is distributed in the hope that it will be useful, but
                     11:  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
                     12:  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
                     13:  * for more details.
                     14:  */
                     15: 
                     16: #ifndef _KEYWORDS_H_
                     17: #define _KEYWORDS_H_
                     18: 
                     19: typedef enum kw_token_t kw_token_t;
                     20: typedef struct kw_entry_t kw_entry_t;
                     21: 
                     22: enum kw_token_t {
                     23:        /* config setup keywords */
                     24:        KW_CHARONDEBUG,
                     25:        KW_UNIQUEIDS,
                     26:        KW_CACHECRLS,
                     27:        KW_STRICTCRLPOLICY,
                     28:        KW_PKCS11_DEPRECATED,
                     29:        KW_SETUP_DEPRECATED,
                     30: 
                     31: #define KW_SETUP_FIRST  KW_CHARONDEBUG
                     32: #define KW_SETUP_LAST   KW_SETUP_DEPRECATED
                     33: 
                     34:        /* conn section keywords */
                     35:        KW_CONN_NAME,
                     36:        KW_CONN_SETUP,
                     37:        KW_KEYEXCHANGE,
                     38:        KW_TYPE,
                     39:        KW_COMPRESS,
                     40:        KW_INSTALLPOLICY,
                     41:        KW_AGGRESSIVE,
                     42:        KW_AUTHBY,
                     43:        KW_EAP_IDENTITY,
                     44:        KW_AAA_IDENTITY,
                     45:        KW_MOBIKE,
                     46:        KW_FORCEENCAPS,
                     47:        KW_FRAGMENTATION,
                     48:        KW_IKEDSCP,
                     49:        KW_IKELIFETIME,
                     50:        KW_KEYLIFE,
                     51:        KW_REKEYMARGIN,
                     52:        KW_LIFEBYTES,
                     53:        KW_MARGINBYTES,
                     54:        KW_LIFEPACKETS,
                     55:        KW_MARGINPACKETS,
                     56:        KW_KEYINGTRIES,
                     57:        KW_REKEYFUZZ,
                     58:        KW_REKEY,
                     59:        KW_REAUTH,
                     60:        KW_IKE,
                     61:        KW_ESP,
                     62:        KW_AH,
                     63:        KW_DPDDELAY,
                     64:        KW_DPDTIMEOUT,
                     65:        KW_DPDACTION,
                     66:        KW_CLOSEACTION,
                     67:        KW_SHA256_96,
                     68:        KW_INACTIVITY,
                     69:        KW_MODECONFIG,
                     70:        KW_XAUTH,
                     71:        KW_XAUTH_IDENTITY,
                     72:        KW_MEDIATION,
                     73:        KW_MEDIATED_BY,
                     74:        KW_ME_PEERID,
                     75:        KW_REQID,
                     76:        KW_REPLAY_WINDOW,
                     77:        KW_MARK,
                     78:        KW_MARK_IN,
                     79:        KW_MARK_OUT,
                     80:        KW_TFC,
                     81:        KW_PFS_DEPRECATED,
                     82:        KW_CONN_DEPRECATED,
                     83: 
                     84: #define KW_CONN_FIRST   KW_CONN_SETUP
                     85: #define KW_CONN_LAST    KW_CONN_DEPRECATED
                     86: 
                     87:        /* ca section keywords */
                     88:        KW_CA_NAME,
                     89:        KW_CA_SETUP,
                     90:        KW_CACERT,
                     91:        KW_CRLURI,
                     92:        KW_CRLURI2,
                     93:        KW_OCSPURI,
                     94:        KW_OCSPURI2,
                     95:        KW_CERTURIBASE,
                     96:        KW_CA_DEPRECATED,
                     97: 
                     98: #define KW_CA_FIRST     KW_CA_SETUP
                     99: #define KW_CA_LAST      KW_CA_DEPRECATED
                    100: 
                    101:        /* end keywords */
                    102:        KW_HOST,
                    103:        KW_IKEPORT,
                    104:        KW_SUBNET,
                    105:        KW_PROTOPORT,
                    106:        KW_SOURCEIP,
                    107:        KW_DNS,
                    108:        KW_FIREWALL,
                    109:        KW_HOSTACCESS,
                    110:        KW_ALLOWANY,
                    111:        KW_UPDOWN,
                    112:        KW_AUTH1,
                    113:        KW_AUTH2,
                    114:        KW_ID,
                    115:        KW_ID2,
                    116:        KW_SIGKEY,
                    117:        KW_CERT,
                    118:        KW_CERT2,
                    119:        KW_CERTPOLICY,
                    120:        KW_SENDCERT,
                    121:        KW_CA,
                    122:        KW_CA2,
                    123:        KW_GROUPS,
                    124:        KW_GROUPS2,
                    125:        KW_END_DEPRECATED,
                    126: 
                    127: #define KW_END_FIRST    KW_HOST
                    128: #define KW_END_LAST     KW_END_DEPRECATED
                    129: 
                    130:        /* left end keywords */
                    131:        KW_LEFT,
                    132:        KW_LEFTIKEPORT,
                    133:        KW_LEFTSUBNET,
                    134:        KW_LEFTPROTOPORT,
                    135:        KW_LEFTSOURCEIP,
                    136:        KW_LEFTDNS,
                    137:        KW_LEFTFIREWALL,
                    138:        KW_LEFTHOSTACCESS,
                    139:        KW_LEFTALLOWANY,
                    140:        KW_LEFTUPDOWN,
                    141:        KW_LEFTAUTH,
                    142:        KW_LEFTAUTH2,
                    143:        KW_LEFTID,
                    144:        KW_LEFTID2,
                    145:        KW_LEFTSIGKEY,
                    146:        KW_LEFTCERT,
                    147:        KW_LEFTCERT2,
                    148:        KW_LEFTCERTPOLICY,
                    149:        KW_LEFTSENDCERT,
                    150:        KW_LEFTCA,
                    151:        KW_LEFTCA2,
                    152:        KW_LEFTGROUPS,
                    153:        KW_LEFTGROUPS2,
                    154:        KW_LEFT_DEPRECATED,
                    155: 
                    156: #define KW_LEFT_FIRST   KW_LEFT
                    157: #define KW_LEFT_LAST    KW_LEFT_DEPRECATED
                    158: 
                    159:        /* right end keywords */
                    160:        KW_RIGHT,
                    161:        KW_RIGHTIKEPORT,
                    162:        KW_RIGHTSUBNET,
                    163:        KW_RIGHTPROTOPORT,
                    164:        KW_RIGHTSOURCEIP,
                    165:        KW_RIGHTDNS,
                    166:        KW_RIGHTFIREWALL,
                    167:        KW_RIGHTHOSTACCESS,
                    168:        KW_RIGHTALLOWANY,
                    169:        KW_RIGHTUPDOWN,
                    170:        KW_RIGHTAUTH,
                    171:        KW_RIGHTAUTH2,
                    172:        KW_RIGHTID,
                    173:        KW_RIGHTID2,
                    174:        KW_RIGHTSIGKEY,
                    175:        KW_RIGHTCERT,
                    176:        KW_RIGHTCERT2,
                    177:        KW_RIGHTCERTPOLICY,
                    178:        KW_RIGHTSENDCERT,
                    179:        KW_RIGHTCA,
                    180:        KW_RIGHTCA2,
                    181:        KW_RIGHTGROUPS,
                    182:        KW_RIGHTGROUPS2,
                    183:        KW_RIGHT_DEPRECATED,
                    184: 
                    185: #define KW_RIGHT_FIRST  KW_RIGHT
                    186: #define KW_RIGHT_LAST   KW_RIGHT_DEPRECATED
                    187: 
                    188:        /* general section keywords */
                    189:        KW_ALSO,
                    190:        KW_AUTO,
                    191: 
                    192: };
                    193: 
                    194: struct kw_entry_t {
                    195:        char *name;
                    196:        kw_token_t token;
                    197: };
                    198: 
                    199: #ifndef IN_GPERF_GENERATED_FILE
                    200: const kw_entry_t *in_word_set(register const char*, register size_t);
                    201: #endif
                    202: 
                    203: #endif /* _KEYWORDS_H_ */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>