summaryrefslogtreecommitdiff
path: root/src/starter/keywords.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/starter/keywords.c')
-rw-r--r--src/starter/keywords.c283
1 files changed, 142 insertions, 141 deletions
diff --git a/src/starter/keywords.c b/src/starter/keywords.c
index edb55ae7f..7615a81d2 100644
--- a/src/starter/keywords.c
+++ b/src/starter/keywords.c
@@ -30,7 +30,7 @@ error "gperf generated tables don't work with this execution character set. Plea
#endif
-/* strongSwan keywords
+/*
* Copyright (C) 2005 Andreas Steffen
* Hochschule fuer Technik Rapperswil, Switzerland
*
@@ -54,12 +54,12 @@ struct kw_entry {
kw_token_t token;
};
-#define TOTAL_KEYWORDS 131
+#define TOTAL_KEYWORDS 134
#define MIN_WORD_LENGTH 3
#define MAX_WORD_LENGTH 17
#define MIN_HASH_VALUE 9
-#define MAX_HASH_VALUE 246
-/* maximum key range = 238, duplicates = 0 */
+#define MAX_HASH_VALUE 220
+/* maximum key range = 212, duplicates = 0 */
#ifdef __GNUC__
__inline
@@ -75,32 +75,32 @@ hash (str, len)
{
static const unsigned char asso_values[] =
{
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 12,
- 126, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 51, 247, 11, 1, 92,
- 43, 0, 6, 0, 110, 0, 247, 120, 56, 37,
- 27, 72, 43, 1, 16, 0, 5, 75, 1, 247,
- 247, 11, 5, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
- 247, 247, 247, 247, 247, 247
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 62,
+ 117, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 0, 221, 27, 0, 79,
+ 26, 0, 6, 0, 92, 0, 221, 44, 58, 36,
+ 36, 73, 33, 5, 16, 0, 7, 87, 0, 221,
+ 221, 11, 3, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221
};
register int hval = len;
@@ -123,166 +123,167 @@ hash (str, len)
static const struct kw_entry wordlist[] =
{
- {"pfs", KW_PFS},
- {"right", KW_RIGHT},
+ {"pfs", KW_PFS_DEPRECATED},
+ {"aggressive", KW_AGGRESSIVE},
{"rightgroups", KW_RIGHTGROUPS},
+ {"right", KW_RIGHT},
{"lifetime", KW_KEYLIFE},
{"left", KW_LEFT},
{"rightsubnet", KW_RIGHTSUBNET},
{"rightikeport", KW_RIGHTIKEPORT},
{"rightsendcert", KW_RIGHTSENDCERT},
{"leftcert", KW_LEFTCERT},
- {"keep_alive", KW_KEEP_ALIVE},
{"keyingtries", KW_KEYINGTRIES},
- {"leftsendcert", KW_LEFTSENDCERT},
{"keylife", KW_KEYLIFE},
+ {"leftsendcert", KW_LEFTSENDCERT},
{"lifebytes", KW_LIFEBYTES},
- {"lifepackets", KW_LIFEPACKETS},
{"leftrsasigkey", KW_LEFTRSASIGKEY},
{"leftcertpolicy", KW_LEFTCERTPOLICY},
{"leftgroups", KW_LEFTGROUPS},
- {"leftca", KW_LEFTCA},
- {"rightallowany", KW_RIGHTALLOWANY},
- {"uniqueids", KW_UNIQUEIDS},
- {"leftprotoport", KW_LEFTPROTOPORT},
+ {"rightid", KW_RIGHTID},
+ {"rightdns", KW_RIGHTDNS},
+ {"me_peerid", KW_ME_PEERID},
+ {"reqid", KW_REQID},
+ {"keep_alive", KW_SETUP_DEPRECATED},
{"rightrsasigkey", KW_RIGHTRSASIGKEY},
- {"virtual_private", KW_VIRTUAL_PRIVATE},
+ {"leftprotoport", KW_LEFTPROTOPORT},
{"certuribase", KW_CERTURIBASE},
- {"rightsubnetwithin", KW_RIGHTSUBNETWITHIN},
- {"interfaces", KW_INTERFACES},
- {"reqid", KW_REQID},
- {"rightid", KW_RIGHTID},
- {"strictcrlpolicy", KW_STRICTCRLPOLICY},
+ {"lifepackets", KW_LIFEPACKETS},
+ {"uniqueids", KW_UNIQUEIDS},
{"rightsourceip", KW_RIGHTSOURCEIP},
+ {"ike", KW_IKE},
{"type", KW_TYPE},
- {"inactivity", KW_INACTIVITY},
- {"leftnexthop", KW_LEFTNEXTHOP},
- {"mark_in", KW_MARK_IN},
+ {"leftdns", KW_LEFTDNS},
+ {"leftnexthop", KW_LEFT_DEPRECATED},
+ {"rightallowany", KW_RIGHTALLOWANY},
+ {"rightsubnetwithin", KW_RIGHTSUBNET},
{"rightprotoport", KW_RIGHTPROTOPORT},
- {"margintime", KW_REKEYMARGIN},
- {"marginbytes", KW_MARGINBYTES},
- {"marginpackets", KW_MARGINPACKETS},
- {"leftnatip", KW_LEFTNATIP},
{"mediated_by", KW_MEDIATED_BY},
- {"ldapbase", KW_LDAPBASE},
+ {"strictcrlpolicy", KW_STRICTCRLPOLICY},
+ {"virtual_private", KW_SETUP_DEPRECATED},
+ {"interfaces", KW_SETUP_DEPRECATED},
+ {"rekey", KW_REKEY},
+ {"ikelifetime", KW_IKELIFETIME},
+ {"rekeyfuzz", KW_REKEYFUZZ},
+ {"leftid", KW_LEFTID},
+ {"leftca", KW_LEFTCA},
+ {"leftikeport", KW_LEFTIKEPORT},
+ {"esp", KW_ESP},
{"leftfirewall", KW_LEFTFIREWALL},
{"rightfirewall", KW_RIGHTFIREWALL},
- {"crluri", KW_CRLURI},
- {"mobike", KW_MOBIKE},
- {"rightnatip", KW_RIGHTNATIP},
- {"rightnexthop", KW_RIGHTNEXTHOP},
{"mediation", KW_MEDIATION},
- {"leftallowany", KW_LEFTALLOWANY},
+ {"mobike", KW_MOBIKE},
+ {"crluri", KW_CRLURI},
+ {"rightnexthop", KW_RIGHT_DEPRECATED},
+ {"inactivity", KW_INACTIVITY},
{"leftupdown", KW_LEFTUPDOWN},
- {"overridemtu", KW_OVERRIDEMTU},
- {"aaa_identity", KW_AAA_IDENTITY},
- {"esp", KW_ESP},
- {"crluri1", KW_CRLURI},
+ {"mark_in", KW_MARK_IN},
+ {"leftallowany", KW_LEFTALLOWANY},
+ {"ldapbase", KW_CA_DEPRECATED},
+ {"margintime", KW_REKEYMARGIN},
+ {"marginbytes", KW_MARGINBYTES},
+ {"mark", KW_MARK},
+ {"marginpackets", KW_MARGINPACKETS},
{"lefthostaccess", KW_LEFTHOSTACCESS},
- {"leftsubnet", KW_LEFTSUBNET},
- {"leftid", KW_LEFTID},
- {"forceencaps", KW_FORCEENCAPS},
- {"eap", KW_EAP},
- {"nat_traversal", KW_NAT_TRAVERSAL},
- {"me_peerid", KW_ME_PEERID},
+ {"klipsdebug", KW_SETUP_DEPRECATED},
{"rightcert", KW_RIGHTCERT},
- {"installpolicy", KW_INSTALLPOLICY},
- {"authby", KW_AUTHBY},
- {"klipsdebug", KW_KLIPSDEBUG},
- {"rightca", KW_RIGHTCA},
- {"mark_out", KW_MARK_OUT},
- {"rightupdown", KW_RIGHTUPDOWN},
+ {"eap", KW_CONN_DEPRECATED},
+ {"overridemtu", KW_SETUP_DEPRECATED},
+ {"forceencaps", KW_FORCEENCAPS},
{"keyexchange", KW_KEYEXCHANGE},
{"ocspuri", KW_OCSPURI},
- {"compress", KW_COMPRESS},
+ {"aaa_identity", KW_AAA_IDENTITY},
+ {"force_keepalive", KW_SETUP_DEPRECATED},
{"rightcertpolicy", KW_RIGHTCERTPOLICY},
- {"cacert", KW_CACERT},
- {"eap_identity", KW_EAP_IDENTITY},
- {"hidetos", KW_HIDETOS},
- {"ike", KW_IKE},
- {"leftsubnetwithin", KW_LEFTSUBNETWITHIN},
+ {"hidetos", KW_SETUP_DEPRECATED},
{"righthostaccess", KW_RIGHTHOSTACCESS},
- {"packetdefault", KW_PACKETDEFAULT},
+ {"eap_identity", KW_EAP_IDENTITY},
+ {"leftsubnet", KW_LEFTSUBNET},
{"dpdaction", KW_DPDACTION},
- {"ocspuri1", KW_OCSPURI},
- {"pfsgroup", KW_PFSGROUP},
- {"rightauth", KW_RIGHTAUTH},
- {"also", KW_ALSO},
+ {"dpdtimeout", KW_DPDTIMEOUT},
+ {"rightca", KW_RIGHTCA},
+ {"compress", KW_COMPRESS},
+ {"installpolicy", KW_INSTALLPOLICY},
+ {"pfsgroup", KW_PFS_DEPRECATED},
+ {"nat_traversal", KW_SETUP_DEPRECATED},
+ {"authby", KW_AUTHBY},
{"leftsourceip", KW_LEFTSOURCEIP},
{"rightid2", KW_RIGHTID2},
- {"dumpdir", KW_DUMPDIR},
- {"rekey", KW_REKEY},
- {"ikelifetime", KW_IKELIFETIME},
- {"dpdtimeout", KW_DPDTIMEOUT},
- {"ldaphost", KW_LDAPHOST},
- {"rekeyfuzz", KW_REKEYFUZZ},
+ {"cacert", KW_CACERT},
+ {"rekeymargin", KW_REKEYMARGIN},
+ {"rightauth", KW_RIGHTAUTH},
+ {"rightgroups2", KW_RIGHTGROUPS2},
+ {"mark_out", KW_MARK_OUT},
{"leftcert2", KW_LEFTCERT2},
- {"leftikeport", KW_LEFTIKEPORT},
- {"crlcheckinterval", KW_CRLCHECKINTERVAL},
- {"plutostderrlog", KW_PLUTOSTDERRLOG},
- {"plutostart", KW_PLUTOSTART},
- {"rightauth2", KW_RIGHTAUTH2},
- {"leftca2", KW_LEFTCA2},
- {"mark", KW_MARK},
- {"force_keepalive", KW_FORCE_KEEPALIVE},
- {"auto", KW_AUTO},
- {"charondebug", KW_CHARONDEBUG},
+ {"packetdefault", KW_SETUP_DEPRECATED},
+ {"rightupdown", KW_RIGHTUPDOWN},
+ {"also", KW_ALSO},
{"dpddelay", KW_DPDDELAY},
{"xauth_identity", KW_XAUTH_IDENTITY},
- {"charonstart", KW_CHARONSTART},
- {"fragicmp", KW_FRAGICMP},
- {"prepluto", KW_PREPLUTO},
- {"closeaction", KW_CLOSEACTION},
+ {"ldaphost", KW_CA_DEPRECATED},
+ {"crluri1", KW_CRLURI},
+ {"leftsubnetwithin", KW_LEFTSUBNET},
+ {"dumpdir", KW_SETUP_DEPRECATED},
+ {"crlcheckinterval", KW_SETUP_DEPRECATED},
+ {"leftgroups2", KW_LEFTGROUPS2},
+ {"rightauth2", KW_RIGHTAUTH2},
{"leftid2", KW_LEFTID2},
- {"plutodebug", KW_PLUTODEBUG},
+ {"leftca2", KW_LEFTCA2},
+ {"plutostderrlog", KW_SETUP_DEPRECATED},
+ {"plutostart", KW_SETUP_DEPRECATED},
+ {"fragicmp", KW_SETUP_DEPRECATED},
+ {"ocspuri1", KW_OCSPURI},
+ {"charondebug", KW_CHARONDEBUG},
{"tfc", KW_TFC},
- {"auth", KW_AUTH},
- {"rekeymargin", KW_REKEYMARGIN},
+ {"auto", KW_AUTO},
+ {"charonstart", KW_SETUP_DEPRECATED},
+ {"plutodebug", KW_SETUP_DEPRECATED},
{"modeconfig", KW_MODECONFIG},
+ {"prepluto", KW_SETUP_DEPRECATED},
+ {"nocrsend", KW_SETUP_DEPRECATED},
+ {"auth", KW_AUTH},
{"leftauth", KW_LEFTAUTH},
- {"xauth", KW_XAUTH},
{"cachecrls", KW_CACHECRLS},
+ {"pkcs11module", KW_PKCS11_DEPRECATED},
{"crluri2", KW_CRLURI2},
- {"postpluto", KW_POSTPLUTO},
- {"nocrsend", KW_NOCRSEND},
- {"leftauth2", KW_LEFTAUTH2},
+ {"pkcs11initargs", KW_PKCS11_DEPRECATED},
+ {"pkcs11keepstate", KW_PKCS11_DEPRECATED},
{"rightca2", KW_RIGHTCA2},
+ {"closeaction", KW_CLOSEACTION},
{"rightcert2", KW_RIGHTCERT2},
- {"pkcs11module", KW_PKCS11MODULE},
+ {"pkcs11proxy", KW_PKCS11_DEPRECATED},
+ {"xauth", KW_XAUTH},
+ {"postpluto", KW_SETUP_DEPRECATED},
{"reauth", KW_REAUTH},
- {"pkcs11initargs", KW_PKCS11INITARGS},
- {"pkcs11keepstate", KW_PKCS11KEEPSTATE},
- {"ocspuri2", KW_OCSPURI2},
- {"pkcs11proxy", KW_PKCS11PROXY}
+ {"leftauth2", KW_LEFTAUTH2},
+ {"ocspuri2", KW_OCSPURI2}
};
static const short lookup[] =
{
-1, -1, -1, -1, -1, -1, -1, -1, -1, 0,
- 1, 2, -1, -1, 3, 4, 5, 6, 7, 8,
- -1, 9, 10, 11, 12, -1, 13, -1, 14, -1,
- 15, 16, 17, -1, 18, 19, 20, -1, -1, -1,
- 21, 22, 23, 24, 25, -1, -1, -1, 26, 27,
- 28, -1, 29, -1, -1, -1, 30, -1, 31, 32,
- 33, 34, 35, -1, 36, 37, -1, 38, -1, 39,
- 40, -1, -1, 41, 42, 43, -1, -1, 44, 45,
- 46, -1, 47, -1, 48, 49, 50, 51, 52, 53,
- -1, 54, 55, -1, -1, -1, 56, -1, 57, 58,
- 59, 60, -1, 61, -1, -1, 62, 63, 64, 65,
- 66, -1, 67, 68, 69, 70, -1, 71, 72, 73,
- 74, -1, 75, 76, 77, 78, 79, 80, 81, 82,
- 83, -1, 84, 85, 86, 87, 88, 89, 90, 91,
- 92, 93, 94, -1, 95, 96, 97, 98, -1, -1,
- 99, 100, -1, -1, 101, -1, 102, -1, -1, 103,
- -1, 104, 105, -1, 106, -1, -1, -1, -1, -1,
- 107, 108, -1, -1, -1, -1, -1, 109, -1, -1,
- -1, -1, 110, -1, 111, -1, -1, -1, -1, -1,
- -1, -1, -1, 112, 113, 114, -1, 115, -1, 116,
- -1, 117, -1, -1, 118, 119, -1, -1, -1, 120,
- -1, -1, -1, -1, -1, 121, 122, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, 123, -1, 124, -1,
- -1, -1, -1, -1, -1, -1, 125, 126, 127, 128,
- -1, -1, 129, -1, -1, -1, 130
+ 1, 2, 3, -1, 4, -1, -1, 5, 6, 7,
+ 8, 9, 10, -1, 11, 12, 13, -1, -1, -1,
+ 14, 15, 16, 17, 18, 19, 20, 21, -1, -1,
+ -1, 22, 23, 24, 25, 26, 27, 28, 29, 30,
+ 31, 32, -1, 33, 34, 35, 36, -1, 37, 38,
+ 39, 40, 41, -1, 42, -1, 43, -1, 44, 45,
+ -1, -1, -1, -1, -1, -1, 46, 47, 48, 49,
+ 50, 51, -1, -1, 52, 53, 54, 55, 56, 57,
+ 58, 59, 60, 61, 62, 63, 64, -1, 65, -1,
+ 66, 67, 68, 69, 70, 71, 72, 73, -1, 74,
+ 75, 76, 77, 78, -1, -1, -1, 79, 80, -1,
+ 81, 82, 83, -1, 84, 85, 86, 87, 88, 89,
+ -1, 90, 91, 92, 93, 94, 95, -1, -1, 96,
+ -1, 97, -1, 98, -1, 99, 100, -1, 101, -1,
+ 102, -1, -1, -1, 103, -1, 104, 105, -1, 106,
+ -1, -1, 107, 108, -1, 109, 110, 111, -1, -1,
+ -1, 112, -1, 113, -1, -1, -1, -1, -1, -1,
+ -1, 114, 115, -1, 116, -1, 117, -1, -1, -1,
+ 118, -1, -1, 119, 120, -1, -1, 121, 122, 123,
+ 124, -1, -1, -1, 125, 126, 127, 128, -1, -1,
+ -1, 129, -1, 130, -1, -1, -1, 131, -1, 132,
+ 133
};
#ifdef __GNUC__