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.c312
1 files changed, 157 insertions, 155 deletions
diff --git a/src/starter/keywords.c b/src/starter/keywords.c
index 3692c2cdd..20ec1501d 100644
--- a/src/starter/keywords.c
+++ b/src/starter/keywords.c
@@ -54,12 +54,12 @@ struct kw_entry {
kw_token_t token;
};
-#define TOTAL_KEYWORDS 136
+#define TOTAL_KEYWORDS 138
#define MIN_WORD_LENGTH 3
#define MAX_WORD_LENGTH 17
-#define MIN_HASH_VALUE 10
-#define MAX_HASH_VALUE 259
-/* maximum key range = 250, duplicates = 0 */
+#define MIN_HASH_VALUE 9
+#define MAX_HASH_VALUE 257
+/* maximum key range = 249, duplicates = 0 */
#ifdef __GNUC__
__inline
@@ -75,32 +75,32 @@ hash (str, len)
{
static const unsigned short asso_values[] =
{
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 8,
- 99, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 4, 260, 11, 4, 80,
- 55, 6, 3, 2, 114, 2, 260, 114, 70, 33,
- 22, 81, 51, 7, 14, 2, 7, 122, 8, 260,
- 260, 43, 4, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
- 260, 260, 260, 260, 260, 260
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 14,
+ 129, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 3, 258, 31, 1, 83,
+ 50, 5, 4, 1, 60, 1, 258, 121, 62, 5,
+ 33, 51, 41, 2, 22, 1, 25, 103, 1, 258,
+ 258, 8, 2, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258
};
register int hval = len;
@@ -124,171 +124,173 @@ hash (str, len)
static const struct kw_entry wordlist[] =
{
{"pfs", KW_PFS_DEPRECATED},
- {"right", KW_RIGHT},
{"rightgroups", KW_RIGHTGROUPS},
- {"left", KW_LEFT},
- {"lifetime", KW_KEYLIFE},
{"aggressive", KW_AGGRESSIVE},
+ {"lifetime", KW_KEYLIFE},
+ {"rightsigkey", KW_RIGHTSIGKEY},
+ {"lifebytes", KW_LIFEBYTES},
+ {"keyingtries", KW_KEYINGTRIES},
+ {"leftsigkey", KW_LEFTSIGKEY},
+ {"keylife", KW_KEYLIFE},
+ {"leftrsasigkey", KW_LEFTSIGKEY},
+ {"right", KW_RIGHT},
+ {"leftcertpolicy", KW_LEFTCERTPOLICY},
+ {"left", KW_LEFT},
{"rightsubnet", KW_RIGHTSUBNET},
{"rightikeport", KW_RIGHTIKEPORT},
{"rightsendcert", KW_RIGHTSENDCERT},
- {"lifepackets", KW_LIFEPACKETS},
- {"leftcert", KW_LEFTCERT},
- {"leftsendcert", KW_LEFTSENDCERT},
{"leftgroups", KW_LEFTGROUPS},
- {"leftca", KW_LEFTCA},
- {"keep_alive", KW_SETUP_DEPRECATED},
- {"leftdns", KW_LEFTDNS},
+ {"rightrsasigkey", KW_RIGHTSIGKEY},
+ {"leftcert", KW_LEFTCERT},
+ {"lifepackets", KW_LIFEPACKETS},
{"uniqueids", KW_UNIQUEIDS},
- {"leftprotoport", KW_LEFTPROTOPORT},
- {"interfaces", KW_SETUP_DEPRECATED},
+ {"leftdns", KW_LEFTDNS},
+ {"leftsendcert", KW_LEFTSENDCERT},
{"rightsubnetwithin", KW_RIGHTSUBNET},
- {"virtual_private", KW_SETUP_DEPRECATED},
- {"certuribase", KW_CERTURIBASE},
- {"mark_in", KW_MARK_IN},
- {"lifebytes", KW_LIFEBYTES},
- {"marginbytes", KW_MARGINBYTES},
- {"marginpackets", KW_MARGINPACKETS},
- {"margintime", KW_REKEYMARGIN},
- {"keyingtries", KW_KEYINGTRIES},
- {"keylife", KW_KEYLIFE},
- {"fragmentation", KW_FRAGMENTATION},
- {"leftrsasigkey", KW_LEFTRSASIGKEY},
+ {"rightallowany", KW_RIGHTALLOWANY},
+ {"keep_alive", KW_SETUP_DEPRECATED},
+ {"rightsourceip", KW_RIGHTSOURCEIP},
+ {"type", KW_TYPE},
{"rightid", KW_RIGHTID},
{"rightdns", KW_RIGHTDNS},
- {"rightsourceip", KW_RIGHTSOURCEIP},
- {"rightallowany", KW_RIGHTALLOWANY},
- {"leftcertpolicy", KW_LEFTCERTPOLICY},
{"reqid", KW_REQID},
- {"rightrsasigkey", KW_RIGHTRSASIGKEY},
- {"rightprotoport", KW_RIGHTPROTOPORT},
+ {"certuribase", KW_CERTURIBASE},
{"leftnexthop", KW_LEFT_DEPRECATED},
+ {"mobike", KW_MOBIKE},
+ {"leftprotoport", KW_LEFTPROTOPORT},
+ {"compress", KW_COMPRESS},
{"me_peerid", KW_ME_PEERID},
- {"strictcrlpolicy", KW_STRICTCRLPOLICY},
- {"inactivity", KW_INACTIVITY},
- {"rightnexthop", KW_RIGHT_DEPRECATED},
+ {"interfaces", KW_SETUP_DEPRECATED},
+ {"virtual_private", KW_SETUP_DEPRECATED},
+ {"lefthostaccess", KW_LEFTHOSTACCESS},
+ {"leftca", KW_LEFTCA},
+ {"righthostaccess", KW_RIGHTHOSTACCESS},
{"rightfirewall", KW_RIGHTFIREWALL},
- {"ldapbase", KW_CA_DEPRECATED},
- {"leftupdown", KW_LEFTUPDOWN},
+ {"rightprotoport", KW_RIGHTPROTOPORT},
+ {"inactivity", KW_INACTIVITY},
{"leftfirewall", KW_LEFTFIREWALL},
- {"crluri", KW_CRLURI},
- {"mediation", KW_MEDIATION},
- {"rightcert", KW_RIGHTCERT},
- {"crluri1", KW_CRLURI},
- {"rightca", KW_RIGHTCA},
- {"mobike", KW_MOBIKE},
- {"type", KW_TYPE},
- {"ocspuri", KW_OCSPURI},
- {"lefthostaccess", KW_LEFTHOSTACCESS},
{"esp", KW_ESP},
- {"cacert", KW_CACERT},
- {"ocspuri1", KW_OCSPURI},
- {"rightid2", KW_RIGHTID2},
+ {"rightnexthop", KW_RIGHT_DEPRECATED},
{"forceencaps", KW_FORCEENCAPS},
- {"nat_traversal", KW_SETUP_DEPRECATED},
- {"eap", KW_CONN_DEPRECATED},
- {"rightgroups2", KW_RIGHTGROUPS2},
- {"packetdefault", KW_SETUP_DEPRECATED},
+ {"leftallowany", KW_LEFTALLOWANY},
+ {"crluri", KW_CRLURI},
+ {"leftupdown", KW_LEFTUPDOWN},
+ {"mark_in", KW_MARK_IN},
+ {"strictcrlpolicy", KW_STRICTCRLPOLICY},
{"force_keepalive", KW_SETUP_DEPRECATED},
- {"mark_out", KW_MARK_OUT},
+ {"marginbytes", KW_MARGINBYTES},
{"mediated_by", KW_MEDIATED_BY},
- {"leftcert2", KW_LEFTCERT2},
- {"rightauth2", KW_RIGHTAUTH2},
- {"leftid", KW_LEFTID},
- {"leftca2", KW_LEFTCA2},
- {"ike", KW_IKE},
- {"compress", KW_COMPRESS},
- {"aaa_identity", KW_AAA_IDENTITY},
- {"leftgroups2", KW_LEFTGROUPS2},
- {"leftallowany", KW_LEFTALLOWANY},
- {"righthostaccess", KW_RIGHTHOSTACCESS},
- {"rekeyfuzz", KW_REKEYFUZZ},
+ {"marginpackets", KW_MARGINPACKETS},
+ {"margintime", KW_REKEYMARGIN},
{"rightauth", KW_RIGHTAUTH},
- {"klipsdebug", KW_SETUP_DEPRECATED},
- {"ikelifetime", KW_IKELIFETIME},
- {"leftikeport", KW_LEFTIKEPORT},
- {"rightcertpolicy", KW_RIGHTCERTPOLICY},
- {"mark", KW_MARK},
- {"dpdaction", KW_DPDACTION},
+ {"fragmentation", KW_FRAGMENTATION},
{"pfsgroup", KW_PFS_DEPRECATED},
- {"keyexchange", KW_KEYEXCHANGE},
+ {"crluri1", KW_CRLURI},
+ {"rightcertpolicy", KW_RIGHTCERTPOLICY},
{"hidetos", KW_SETUP_DEPRECATED},
- {"leftsubnet", KW_LEFTSUBNET},
- {"overridemtu", KW_SETUP_DEPRECATED},
- {"installpolicy", KW_INSTALLPOLICY},
+ {"keyexchange", KW_KEYEXCHANGE},
{"leftsourceip", KW_LEFTSOURCEIP},
- {"dpdtimeout", KW_DPDTIMEOUT},
+ {"ocspuri", KW_OCSPURI},
+ {"leftid", KW_LEFTID},
+ {"eap", KW_CONN_DEPRECATED},
+ {"installpolicy", KW_INSTALLPOLICY},
{"also", KW_ALSO},
- {"rightupdown", KW_RIGHTUPDOWN},
+ {"rightcert", KW_RIGHTCERT},
+ {"overridemtu", KW_SETUP_DEPRECATED},
+ {"mediation", KW_MEDIATION},
+ {"rightca", KW_RIGHTCA},
+ {"klipsdebug", KW_SETUP_DEPRECATED},
+ {"ldapbase", KW_CA_DEPRECATED},
+ {"ocspuri1", KW_OCSPURI},
+ {"dpdtimeout", KW_DPDTIMEOUT},
+ {"aaa_identity", KW_AAA_IDENTITY},
+ {"ike", KW_IKE},
{"charondebug", KW_CHARONDEBUG},
- {"ldaphost", KW_CA_DEPRECATED},
- {"fragicmp", KW_SETUP_DEPRECATED},
- {"charonstart", KW_SETUP_DEPRECATED},
- {"tfc", KW_TFC},
+ {"mark_out", KW_MARK_OUT},
+ {"dumpdir", KW_SETUP_DEPRECATED},
{"rekey", KW_REKEY},
- {"leftsubnetwithin", KW_LEFTSUBNET},
- {"leftid2", KW_LEFTID2},
+ {"rightid2", KW_RIGHTID2},
+ {"rekeyfuzz", KW_REKEYFUZZ},
{"eap_identity", KW_EAP_IDENTITY},
+ {"rightgroups2", KW_RIGHTGROUPS2},
+ {"ikelifetime", KW_IKELIFETIME},
+ {"leftsubnet", KW_LEFTSUBNET},
+ {"rightupdown", KW_RIGHTUPDOWN},
+ {"authby", KW_AUTHBY},
+ {"leftcert2", KW_LEFTCERT2},
+ {"nat_traversal", KW_SETUP_DEPRECATED},
+ {"dpdaction", KW_DPDACTION},
+ {"xauth_identity", KW_XAUTH_IDENTITY},
+ {"charonstart", KW_SETUP_DEPRECATED},
+ {"leftsubnetwithin", KW_LEFTSUBNET},
+ {"reauth", KW_REAUTH},
+ {"modeconfig", KW_MODECONFIG},
+ {"ldaphost", KW_CA_DEPRECATED},
+ {"leftikeport", KW_LEFTIKEPORT},
{"crlcheckinterval", KW_SETUP_DEPRECATED},
- {"dumpdir", KW_SETUP_DEPRECATED},
- {"cachecrls", KW_CACHECRLS},
+ {"dpddelay", KW_DPDDELAY},
+ {"cacert", KW_CACERT},
+ {"leftgroups2", KW_LEFTGROUPS2},
+ {"rightauth2", KW_RIGHTAUTH2},
+ {"tfc", KW_TFC},
+ {"postpluto", KW_SETUP_DEPRECATED},
{"rekeymargin", KW_REKEYMARGIN},
- {"rightca2", KW_RIGHTCA2},
- {"crluri2", KW_CRLURI2},
- {"rightcert2", KW_RIGHTCERT2},
- {"xauth_identity", KW_XAUTH_IDENTITY},
- {"closeaction", KW_CLOSEACTION},
- {"ocspuri2", KW_OCSPURI2},
+ {"leftca2", KW_LEFTCA2},
+ {"packetdefault", KW_SETUP_DEPRECATED},
+ {"mark", KW_MARK},
+ {"leftauth", KW_LEFTAUTH},
{"plutostderrlog", KW_SETUP_DEPRECATED},
- {"plutostart", KW_SETUP_DEPRECATED},
{"auto", KW_AUTO},
- {"pkcs11initargs", KW_PKCS11_DEPRECATED},
- {"pkcs11module", KW_PKCS11_DEPRECATED},
- {"authby", KW_AUTHBY},
- {"pkcs11keepstate", KW_PKCS11_DEPRECATED},
- {"dpddelay", KW_DPDDELAY},
- {"modeconfig", KW_MODECONFIG},
- {"nocrsend", KW_SETUP_DEPRECATED},
+ {"fragicmp", KW_SETUP_DEPRECATED},
+ {"closeaction", KW_CLOSEACTION},
{"prepluto", KW_SETUP_DEPRECATED},
- {"leftauth2", KW_LEFTAUTH2},
- {"postpluto", KW_SETUP_DEPRECATED},
{"auth", KW_AUTH},
- {"reauth", KW_REAUTH},
+ {"leftid2", KW_LEFTID2},
+ {"nocrsend", KW_SETUP_DEPRECATED},
{"xauth", KW_XAUTH},
- {"leftauth", KW_LEFTAUTH},
+ {"plutostart", KW_SETUP_DEPRECATED},
+ {"cachecrls", KW_CACHECRLS},
+ {"crluri2", KW_CRLURI2},
+ {"rightca2", KW_RIGHTCA2},
+ {"rightcert2", KW_RIGHTCERT2},
+ {"plutodebug", KW_SETUP_DEPRECATED},
+ {"pkcs11initargs", KW_PKCS11_DEPRECATED},
+ {"pkcs11module", KW_PKCS11_DEPRECATED},
{"pkcs11proxy", KW_PKCS11_DEPRECATED},
- {"ikedscp", KW_IKEDSCP,},
- {"plutodebug", KW_SETUP_DEPRECATED}
+ {"pkcs11keepstate", KW_PKCS11_DEPRECATED},
+ {"ocspuri2", KW_OCSPURI2},
+ {"leftauth2", KW_LEFTAUTH2},
+ {"ikedscp", KW_IKEDSCP,}
};
static const short lookup[] =
{
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 0,
+ -1, -1, -1, -1, -1, 1, -1, -1, 2, 3,
+ -1, -1, 4, 5, -1, -1, 6, -1, 7, 8,
+ -1, 9, 10, -1, -1, -1, 11, -1, 12, 13,
+ 14, 15, 16, -1, -1, -1, 17, 18, 19, 20,
+ 21, 22, -1, 23, 24, -1, 25, 26, 27, -1,
+ 28, 29, 30, -1, -1, 31, 32, -1, 33, 34,
+ 35, -1, 36, 37, 38, 39, -1, 40, 41, -1,
+ -1, 42, 43, 44, 45, -1, 46, -1, 47, -1,
+ 48, 49, 50, 51, 52, 53, 54, -1, 55, 56,
+ 57, 58, 59, -1, 60, 61, 62, -1, 63, -1,
+ 64, -1, 65, 66, 67, 68, 69, 70, 71, 72,
+ -1, 73, 74, 75, 76, 77, -1, -1, 78, -1,
+ -1, 79, 80, -1, 81, -1, 82, 83, 84, 85,
+ 86, 87, 88, -1, 89, -1, 90, 91, -1, 92,
+ 93, -1, 94, 95, -1, -1, -1, -1, 96, 97,
+ 98, 99, 100, 101, -1, 102, 103, 104, -1, 105,
+ 106, 107, 108, 109, 110, 111, 112, 113, 114, -1,
+ 115, 116, -1, 117, -1, 118, -1, -1, 119, 120,
+ -1, -1, 121, -1, -1, 122, -1, 123, -1, 124,
+ -1, 125, -1, -1, -1, -1, -1, 126, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 0, -1, -1, -1, -1, -1, 1, -1, -1, 2,
- 3, 4, 5, -1, 6, 7, 8, -1, -1, 9,
- 10, -1, -1, -1, 11, 12, -1, 13, -1, 14,
- 15, 16, -1, 17, 18, 19, -1, -1, 20, -1,
- -1, 21, -1, -1, -1, -1, 22, -1, -1, 23,
- 24, -1, 25, 26, 27, 28, 29, 30, 31, 32,
- 33, 34, 35, 36, -1, 37, 38, 39, -1, -1,
- 40, -1, -1, -1, -1, -1, 41, -1, 42, 43,
- 44, 45, 46, 47, 48, -1, -1, -1, -1, 49,
- 50, 51, 52, 53, 54, 55, 56, 57, -1, -1,
- -1, 58, 59, 60, 61, 62, 63, 64, 65, -1,
- 66, 67, 68, 69, 70, 71, 72, -1, -1, 73,
- 74, -1, 75, 76, 77, 78, 79, -1, 80, 81,
- 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
- 92, -1, -1, 93, -1, -1, 94, 95, -1, 96,
- 97, -1, 98, -1, 99, 100, 101, -1, 102, 103,
- 104, -1, 105, -1, -1, -1, 106, -1, 107, -1,
- -1, -1, 108, -1, -1, -1, 109, -1, -1, -1,
- -1, 110, 111, 112, 113, 114, -1, -1, -1, -1,
- -1, -1, -1, 115, -1, -1, -1, -1, -1, -1,
- 116, 117, -1, -1, 118, -1, -1, -1, 119, -1,
- 120, 121, -1, 122, -1, -1, -1, 123, -1, 124,
- 125, 126, -1, -1, -1, -1, -1, -1, -1, 127,
- -1, -1, -1, 128, -1, -1, -1, 129, -1, -1,
- -1, 130, 131, 132, -1, -1, 133, -1, 134, 135
+ -1, 127, 128, -1, 129, -1, 130, -1, -1, -1,
+ -1, -1, -1, 131, -1, 132, -1, 133, 134, -1,
+ -1, -1, -1, 135, -1, -1, -1, -1, -1, -1,
+ 136, -1, -1, -1, -1, -1, -1, 137
};
#ifdef __GNUC__