summaryrefslogtreecommitdiff
path: root/src/stroke/stroke_keywords.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stroke/stroke_keywords.c')
-rw-r--r--src/stroke/stroke_keywords.c82
1 files changed, 82 insertions, 0 deletions
diff --git a/src/stroke/stroke_keywords.c b/src/stroke/stroke_keywords.c
index c2d79176e..3b2426a42 100644
--- a/src/stroke/stroke_keywords.c
+++ b/src/stroke/stroke_keywords.c
@@ -54,12 +54,21 @@ struct stroke_token {
stroke_keyword_t kw;
};
+<<<<<<< HEAD
#define TOTAL_KEYWORDS 34
#define MIN_WORD_LENGTH 2
#define MAX_WORD_LENGTH 15
#define MIN_HASH_VALUE 3
#define MAX_HASH_VALUE 39
/* maximum key range = 37, duplicates = 0 */
+=======
+#define TOTAL_KEYWORDS 37
+#define MIN_WORD_LENGTH 2
+#define MAX_WORD_LENGTH 15
+#define MIN_HASH_VALUE 2
+#define MAX_HASH_VALUE 42
+/* maximum key range = 41, duplicates = 0 */
+>>>>>>> upstream/4.5.1
#ifdef __GNUC__
__inline
@@ -75,6 +84,7 @@ hash (str, len)
{
static const unsigned char asso_values[] =
{
+<<<<<<< HEAD
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
@@ -101,6 +111,34 @@ hash (str, len)
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40
+=======
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 20, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 0, 23, 1,
+ 1, 15, 43, 21, 43, 23, 43, 9, 0, 43,
+ 43, 10, 2, 43, 6, 5, 1, 0, 43, 43,
+ 2, 19, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
+ 43, 43, 43, 43, 43, 43
+>>>>>>> upstream/4.5.1
};
register int hval = len;
@@ -125,6 +163,7 @@ hash (str, len)
static const struct stroke_token wordlist[] =
{
+<<<<<<< HEAD
{"add", STROKE_ADD},
{"del", STROKE_DEL},
{"down", STROKE_DOWN},
@@ -137,12 +176,26 @@ static const struct stroke_token wordlist[] =
{"listaacerts", STROKE_LIST_AACERTS},
{"listcacerts", STROKE_LIST_CACERTS},
{"up", STROKE_UP},
+=======
+ {"up", STROKE_UP},
+ {"add", STROKE_ADD},
+ {"del", STROKE_DEL},
+ {"down", STROKE_DOWN},
+ {"listall", STROKE_LIST_ALL},
+ {"delete", STROKE_DELETE},
+ {"listcrls", STROKE_LIST_CRLS},
+ {"status", STROKE_STATUS},
+ {"listaacerts", STROKE_LIST_AACERTS},
+ {"listcacerts", STROKE_LIST_CACERTS},
+ {"statusall", STROKE_STATUSALL},
+>>>>>>> upstream/4.5.1
{"rereadall", STROKE_REREAD_ALL},
{"listcerts", STROKE_LIST_CERTS},
{"rereadcrls", STROKE_REREAD_CRLS},
{"rereadacerts", STROKE_REREAD_ACERTS},
{"rereadaacerts", STROKE_REREAD_AACERTS},
{"rereadcacerts", STROKE_REREAD_CACERTS},
+<<<<<<< HEAD
{"status", STROKE_STATUS},
{"rereadsecrets", STROKE_REREAD_SECRETS},
{"listocsp", STROKE_LIST_OCSP},
@@ -159,13 +212,42 @@ static const struct stroke_token wordlist[] =
{"listpubkeys", STROKE_LIST_PUBKEYS},
{"down-srcip", STROKE_DOWN_SRCIP},
{"listgroups", STROKE_LIST_GROUPS}
+=======
+ {"leases", STROKE_LEASES},
+ {"unroute", STROKE_UNROUTE},
+ {"listocsp", STROKE_LIST_OCSP},
+ {"rereadsecrets", STROKE_REREAD_SECRETS},
+ {"listacerts", STROKE_LIST_ACERTS},
+ {"route", STROKE_ROUTE},
+ {"purgeocsp", STROKE_PURGE_OCSP},
+ {"listocspcerts", STROKE_LIST_OCSPCERTS},
+ {"listalgs", STROKE_LIST_ALGS},
+ {"rekey", STROKE_REKEY},
+ {"rereadocspcerts", STROKE_REREAD_OCSPCERTS},
+ {"purgecrls", STROKE_PURGE_CRLS},
+ {"exportx509", STROKE_EXPORT_X509},
+ {"purgeike", STROKE_PURGE_IKE},
+ {"listcainfos", STROKE_LIST_CAINFOS},
+ {"listpubkeys", STROKE_LIST_PUBKEYS},
+ {"down-srcip", STROKE_DOWN_SRCIP},
+ {"loglevel", STROKE_LOGLEVEL},
+ {"listgroups", STROKE_LIST_GROUPS},
+ {"purgecerts", STROKE_PURGE_CERTS}
+>>>>>>> upstream/4.5.1
};
static const short lookup[] =
{
+<<<<<<< HEAD
-1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, -1, -1, -1, 33
+=======
+ -1, -1, 0, 1, 2, 3, -1, 4, 5, 6, -1, 7, 8, 9,
+ 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, 35,
+ 36
+>>>>>>> upstream/4.5.1
};
#ifdef __GNUC__