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.c321
1 files changed, 161 insertions, 160 deletions
diff --git a/src/starter/keywords.c b/src/starter/keywords.c
index 1d7cae00b..0c24c7dcf 100644
--- a/src/starter/keywords.c
+++ b/src/starter/keywords.c
@@ -1,6 +1,6 @@
/* C code produced by gperf version 3.0.3 */
/* Command-line: /usr/bin/gperf -m 10 -C -G -D -t */
-/* Computed positions: -k'1-2,6,$' */
+/* Computed positions: -k'2-3,6,$' */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
@@ -54,12 +54,12 @@ struct kw_entry {
kw_token_t token;
};
-#define TOTAL_KEYWORDS 126
+#define TOTAL_KEYWORDS 127
#define MIN_WORD_LENGTH 3
#define MAX_WORD_LENGTH 17
-#define MIN_HASH_VALUE 20
-#define MAX_HASH_VALUE 220
-/* maximum key range = 201, duplicates = 0 */
+#define MIN_HASH_VALUE 12
+#define MAX_HASH_VALUE 238
+/* maximum key range = 227, duplicates = 0 */
#ifdef __GNUC__
__inline
@@ -75,32 +75,32 @@ hash (str, len)
{
static const unsigned char asso_values[] =
{
- 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, 35,
- 77, 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, 8, 221, 31, 221, 20,
- 28, 5, 75, 26, 88, 5, 221, 97, 5, 50,
- 39, 67, 29, 221, 7, 13, 6, 89, 15, 221,
- 5, 24, 7, 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
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 2,
+ 104, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 15, 239, 20, 14, 58,
+ 51, 1, 7, 1, 81, 1, 239, 132, 47, 4,
+ 1, 49, 10, 9, 23, 1, 20, 48, 4, 239,
+ 239, 35, 1, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ 239, 239, 239, 239, 239, 239
};
register int hval = len;
@@ -112,11 +112,10 @@ hash (str, len)
case 5:
case 4:
case 3:
+ hval += asso_values[(unsigned char)str[2]];
+ /*FALLTHROUGH*/
case 2:
hval += asso_values[(unsigned char)str[1]];
- /*FALLTHROUGH*/
- case 1:
- hval += asso_values[(unsigned char)str[0]];
break;
}
return hval + asso_values[(unsigned char)str[len - 1]];
@@ -124,159 +123,161 @@ hash (str, len)
static const struct kw_entry wordlist[] =
{
- {"left", KW_LEFT},
- {"right", KW_RIGHT},
+ {"pfs", KW_PFS},
+ {"uniqueids", KW_UNIQUEIDS},
+ {"rightgroups", KW_RIGHTGROUPS},
{"lifetime", KW_KEYLIFE},
+ {"rightsubnetwithin", KW_RIGHTSUBNETWITHIN},
+ {"rightnatip", KW_RIGHTNATIP},
+ {"esp", KW_ESP},
+ {"rightnexthop", KW_RIGHTNEXTHOP},
+ {"rightsourceip", KW_RIGHTSOURCEIP},
+ {"right", KW_RIGHT},
+ {"leftupdown", KW_LEFTUPDOWN},
+ {"leftnexthop", KW_LEFTNEXTHOP},
+ {"left", KW_LEFT},
+ {"keep_alive", KW_KEEP_ALIVE},
+ {"rightsubnet", KW_RIGHTSUBNET},
+ {"rightikeport", KW_RIGHTIKEPORT},
+ {"rightsendcert", KW_RIGHTSENDCERT},
{"leftcert", KW_LEFTCERT,},
- {"leftfirewall", KW_LEFTFIREWALL},
+ {"interfaces", KW_INTERFACES},
+ {"lifepackets", KW_LIFEPACKETS},
{"leftsendcert", KW_LEFTSENDCERT},
- {"rightikeport", KW_RIGHTIKEPORT},
- {"leftprotoport", KW_LEFTPROTOPORT},
- {"type", KW_TYPE},
{"leftgroups", KW_LEFTGROUPS},
- {"rekey", KW_REKEY},
- {"rightsubnet", KW_RIGHTSUBNET},
- {"crluri", KW_CRLURI},
- {"rightsendcert", KW_RIGHTSENDCERT},
- {"reqid", KW_REQID},
- {"rightcert", KW_RIGHTCERT},
- {"certuribase", KW_CERTURIBASE},
- {"esp", KW_ESP},
- {"leftallowany", KW_LEFTALLOWANY},
- {"rightid", KW_RIGHTID},
- {"crlcheckinterval", KW_CRLCHECKINTERVAL},
- {"leftnexthop", KW_LEFTNEXTHOP},
+ {"eap", KW_EAP},
+ {"rightprotoport", KW_RIGHTPROTOPORT},
+ {"leftnatip", KW_LEFTNATIP},
+ {"keyingtries", KW_KEYINGTRIES},
+ {"type", KW_TYPE},
+ {"keylife", KW_KEYLIFE},
+ {"mark_in", KW_MARK_IN},
{"lifebytes", KW_LIFEBYTES},
- {"rightrsasigkey", KW_RIGHTRSASIGKEY},
+ {"leftca", KW_LEFTCA},
+ {"margintime", KW_REKEYMARGIN},
+ {"marginbytes", KW_MARGINBYTES},
{"leftrsasigkey", KW_LEFTRSASIGKEY},
- {"rightprotoport", KW_RIGHTPROTOPORT},
- {"rightgroups", KW_RIGHTGROUPS},
- {"plutostart", KW_PLUTOSTART},
- {"strictcrlpolicy", KW_STRICTCRLPOLICY},
- {"lifepackets", KW_LIFEPACKETS},
- {"rightsourceip", KW_RIGHTSOURCEIP},
- {"eap", KW_EAP},
- {"cacert", KW_CACERT},
- {"rightca", KW_RIGHTCA},
+ {"marginpackets", KW_MARGINPACKETS},
+ {"certuribase", KW_CERTURIBASE},
{"virtual_private", KW_VIRTUAL_PRIVATE},
- {"leftid", KW_LEFTID},
- {"crluri1", KW_CRLURI},
- {"ldapbase", KW_LDAPBASE},
- {"leftca", KW_LEFTCA},
- {"leftnatip", KW_LEFTNATIP},
- {"rightallowany", KW_RIGHTALLOWANY},
- {"rightsubnetwithin", KW_RIGHTSUBNETWITHIN},
- {"xauth_identity", KW_XAUTH_IDENTITY},
+ {"rightid", KW_RIGHTID},
+ {"rightupdown", KW_RIGHTUPDOWN},
+ {"compress", KW_COMPRESS},
+ {"leftprotoport", KW_LEFTPROTOPORT},
+ {"overridemtu", KW_OVERRIDEMTU},
+ {"reqid", KW_REQID},
{"inactivity", KW_INACTIVITY},
- {"packetdefault", KW_PACKETDEFAULT},
- {"installpolicy", KW_INSTALLPOLICY},
- {"plutostderrlog", KW_PLUTOSTDERRLOG},
- {"leftupdown", KW_LEFTUPDOWN},
- {"rightnatip", KW_RIGHTNATIP},
- {"rightnexthop", KW_RIGHTNEXTHOP},
- {"cachecrls", KW_CACHECRLS},
- {"dpddelay", KW_DPDDELAY},
- {"nat_traversal", KW_NAT_TRAVERSAL},
- {"mediated_by", KW_MEDIATED_BY},
- {"me_peerid", KW_ME_PEERID},
- {"plutodebug", KW_PLUTODEBUG},
- {"eap_identity", KW_EAP_IDENTITY},
- {"leftcert2", KW_LEFTCERT2,},
- {"rightid2", KW_RIGHTID2},
- {"rekeyfuzz", KW_REKEYFUZZ},
- {"lefthostaccess", KW_LEFTHOSTACCESS},
+ {"leftfirewall", KW_LEFTFIREWALL},
{"rightfirewall", KW_RIGHTFIREWALL},
- {"ocspuri", KW_OCSPURI},
- {"also", KW_ALSO},
+ {"rightallowany", KW_RIGHTALLOWANY},
+ {"mobike", KW_MOBIKE},
+ {"lefthostaccess", KW_LEFTHOSTACCESS},
+ {"leftsubnetwithin", KW_LEFTSUBNETWITHIN},
+ {"rightrsasigkey", KW_RIGHTRSASIGKEY},
+ {"pfsgroup", KW_PFSGROUP},
+ {"me_peerid", KW_ME_PEERID},
+ {"crluri", KW_CRLURI},
+ {"leftsourceip", KW_LEFTSOURCEIP},
+ {"crluri1", KW_CRLURI},
{"mediation", KW_MEDIATION},
- {"ike", KW_IKE},
- {"dpdaction", KW_DPDACTION},
- {"rekeymargin", KW_REKEYMARGIN},
- {"compress", KW_COMPRESS},
- {"ldaphost", KW_LDAPHOST},
+ {"dumpdir", KW_DUMPDIR},
+ {"forceencaps", KW_FORCEENCAPS},
{"leftsubnet", KW_LEFTSUBNET},
- {"crluri2", KW_CRLURI2},
- {"rightca2", KW_RIGHTCA2},
- {"leftsourceip", KW_LEFTSOURCEIP},
- {"rightcert2", KW_RIGHTCERT2},
- {"pfs", KW_PFS},
- {"leftid2", KW_LEFTID2},
+ {"rightca", KW_RIGHTCA},
+ {"rightcert", KW_RIGHTCERT},
+ {"ocspuri", KW_OCSPURI},
+ {"dpdaction", KW_DPDACTION},
+ {"ocspuri1", KW_OCSPURI},
{"dpdtimeout", KW_DPDTIMEOUT},
- {"leftikeport", KW_LEFTIKEPORT},
- {"leftca2", KW_LEFTCA2},
+ {"installpolicy", KW_INSTALLPOLICY},
{"righthostaccess", KW_RIGHTHOSTACCESS},
- {"xauth", KW_XAUTH},
- {"rightauth2", KW_RIGHTAUTH2},
- {"mark_in", KW_MARK_IN},
- {"mobike", KW_MOBIKE},
- {"margintime", KW_REKEYMARGIN},
- {"dumpdir", KW_DUMPDIR},
- {"ocspuri1", KW_OCSPURI},
+ {"ldapbase", KW_LDAPBASE},
+ {"also", KW_ALSO},
+ {"leftallowany", KW_LEFTALLOWANY},
+ {"force_keepalive", KW_FORCE_KEEPALIVE},
{"keyexchange", KW_KEYEXCHANGE},
- {"fragicmp", KW_FRAGICMP},
+ {"hidetos", KW_HIDETOS},
+ {"klipsdebug", KW_KLIPSDEBUG},
+ {"plutostderrlog", KW_PLUTOSTDERRLOG},
{"rightauth", KW_RIGHTAUTH},
- {"interfaces", KW_INTERFACES},
- {"marginbytes", KW_MARGINBYTES},
- {"marginpackets", KW_MARGINPACKETS},
- {"nocrsend", KW_NOCRSEND},
- {"keep_alive", KW_KEEP_ALIVE},
- {"rightupdown", KW_RIGHTUPDOWN},
- {"keyingtries", KW_KEYINGTRIES},
- {"leftsubnetwithin", KW_LEFTSUBNETWITHIN},
- {"uniqueids", KW_UNIQUEIDS},
+ {"strictcrlpolicy", KW_STRICTCRLPOLICY},
+ {"charondebug", KW_CHARONDEBUG},
+ {"rightid2", KW_RIGHTID2},
+ {"leftid", KW_LEFTID},
+ {"mediated_by", KW_MEDIATED_BY},
+ {"fragicmp", KW_FRAGICMP},
{"mark_out", KW_MARK_OUT},
+ {"auto", KW_AUTO},
+ {"leftcert2", KW_LEFTCERT2,},
+ {"nat_traversal", KW_NAT_TRAVERSAL},
+ {"cacert", KW_CACERT},
+ {"plutostart", KW_PLUTOSTART},
+ {"eap_identity", KW_EAP_IDENTITY},
+ {"prepluto", KW_PREPLUTO},
+ {"packetdefault", KW_PACKETDEFAULT},
+ {"xauth_identity", KW_XAUTH_IDENTITY},
{"charonstart", KW_CHARONSTART},
- {"klipsdebug", KW_KLIPSDEBUG},
- {"force_keepalive", KW_FORCE_KEEPALIVE},
- {"forceencaps", KW_FORCEENCAPS},
+ {"crlcheckinterval", KW_CRLCHECKINTERVAL},
+ {"rightauth2", KW_RIGHTAUTH2},
+ {"ike", KW_IKE},
+ {"aaa_identity", KW_AAA_IDENTITY},
+ {"leftca2", KW_LEFTCA2},
{"authby", KW_AUTHBY},
+ {"leftauth", KW_LEFTAUTH},
+ {"cachecrls", KW_CACHECRLS},
+ {"ldaphost", KW_LDAPHOST},
+ {"rekeymargin", KW_REKEYMARGIN},
+ {"rekeyfuzz", KW_REKEYFUZZ},
+ {"dpddelay", KW_DPDDELAY},
+ {"ikelifetime", KW_IKELIFETIME},
+ {"auth", KW_AUTH},
+ {"xauth", KW_XAUTH},
{"postpluto", KW_POSTPLUTO},
- {"pkcs11module", KW_PKCS11MODULE},
- {"ocspuri2", KW_OCSPURI2},
- {"hidetos", KW_HIDETOS},
- {"pkcs11keepstate", KW_PKCS11KEEPSTATE},
- {"mark", KW_MARK},
- {"charondebug", KW_CHARONDEBUG},
+ {"plutodebug", KW_PLUTODEBUG},
+ {"modeconfig", KW_MODECONFIG},
+ {"nocrsend", KW_NOCRSEND},
{"leftauth2", KW_LEFTAUTH2},
- {"overridemtu", KW_OVERRIDEMTU},
- {"pkcs11initargs", KW_PKCS11INITARGS},
- {"keylife", KW_KEYLIFE},
- {"auto", KW_AUTO},
- {"ikelifetime", KW_IKELIFETIME},
+ {"leftid2", KW_LEFTID2},
+ {"leftikeport", KW_LEFTIKEPORT},
+ {"rightca2", KW_RIGHTCA2},
+ {"rekey", KW_REKEY},
+ {"rightcert2", KW_RIGHTCERT2},
+ {"mark", KW_MARK},
+ {"crluri2", KW_CRLURI2},
{"reauth", KW_REAUTH},
- {"leftauth", KW_LEFTAUTH},
- {"pkcs11proxy", KW_PKCS11PROXY},
- {"prepluto", KW_PREPLUTO},
- {"pfsgroup", KW_PFSGROUP},
- {"auth", KW_AUTH},
- {"modeconfig", KW_MODECONFIG}
+ {"ocspuri2", KW_OCSPURI2},
+ {"pkcs11module", KW_PKCS11MODULE},
+ {"pkcs11initargs", KW_PKCS11INITARGS},
+ {"pkcs11keepstate", KW_PKCS11KEEPSTATE},
+ {"pkcs11proxy", KW_PKCS11PROXY}
};
static const short lookup[] =
{
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 0, 1, -1, 2, -1, -1, 3, -1,
+ -1, 4, -1, 5, 6, 7, 8, 9, -1, 10,
+ 11, -1, 12, 13, 14, 15, 16, 17, -1, 18,
+ 19, 20, 21, 22, -1, -1, 23, 24, -1, 25,
+ 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
+ 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
+ 46, 47, 48, 49, 50, 51, -1, 52, 53, 54,
+ 55, -1, 56, 57, -1, 58, 59, 60, -1, 61,
+ 62, 63, 64, -1, -1, 65, -1, 66, -1, 67,
+ 68, 69, 70, 71, -1, -1, 72, -1, -1, 73,
+ 74, 75, 76, 77, 78, 79, 80, -1, 81, 82,
+ 83, 84, 85, 86, 87, -1, 88, -1, 89, 90,
+ -1, 91, 92, 93, 94, -1, 95, 96, 97, 98,
+ -1, -1, -1, -1, 99, 100, 101, -1, 102, 103,
+ 104, 105, 106, 107, 108, 109, -1, 110, -1, -1,
+ 111, -1, -1, -1, -1, -1, -1, 112, -1, 113,
+ 114, 115, 116, 117, 118, -1, -1, -1, -1, 119,
+ -1, -1, 120, -1, -1, -1, -1, -1, -1, 121,
+ -1, -1, -1, -1, 122, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 123, -1, 124, 125, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 0, -1, -1, 1, -1, -1, -1, -1, 2, 3,
- -1, -1, 4, 5, -1, 6, 7, -1, -1, 8,
- 9, 10, 11, 12, 13, 14, -1, 15, 16, -1,
- 17, 18, 19, 20, -1, 21, 22, 23, -1, -1,
- 24, 25, 26, 27, 28, 29, -1, 30, 31, 32,
- 33, 34, 35, -1, 36, -1, -1, 37, 38, 39,
- 40, 41, 42, 43, -1, 44, 45, 46, 47, -1,
- 48, -1, 49, 50, 51, 52, 53, 54, 55, -1,
- 56, 57, 58, 59, 60, 61, 62, 63, -1, 64,
- 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
- 75, -1, 76, 77, 78, 79, -1, -1, 80, 81,
- 82, -1, 83, 84, -1, 85, 86, 87, 88, 89,
- 90, -1, 91, -1, 92, -1, 93, 94, 95, -1,
- -1, 96, 97, -1, 98, 99, -1, -1, -1, -1,
- -1, -1, 100, -1, 101, -1, 102, -1, -1, -1,
- 103, 104, -1, -1, 105, -1, -1, 106, 107, 108,
- 109, 110, 111, -1, 112, 113, -1, 114, 115, 116,
- -1, 117, -1, 118, 119, 120, 121, -1, -1, -1,
- 122, -1, -1, -1, -1, -1, -1, -1, 123, -1,
- -1, -1, 124, -1, -1, -1, -1, -1, -1, -1,
- 125
+ -1, -1, -1, -1, -1, -1, -1, -1, 126
};
#ifdef __GNUC__