]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
datajson: rename enrichment_key to context_key
authorEric Leblond <el@stamus-networks.com>
Sun, 8 Jun 2025 07:03:04 +0000 (09:03 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 11 Jun 2025 18:49:18 +0000 (20:49 +0200)
src/detect-dataset.c

index 2c8ff2bf9bef1651a91aeb8b85154cbae9d6ccaa..3f61c01c343040aecc52a2309204140e99eb17b6 100644 (file)
@@ -287,7 +287,7 @@ static int DetectDatasetParse(const char *str, char *cmd, int cmd_len, char *nam
                     return -1;
                 }
                 strlcpy(array_key, val, array_key_size);
-            } else if (strcmp(key, "enrichment_key") == 0) {
+            } else if (strcmp(key, "context_key") == 0) {
                 if (strlen(val) > enrichment_key_size) {
                     SCLogWarning("'key' value too long (limit is %zu)", enrichment_key_size);
                     return -1;
@@ -503,7 +503,7 @@ int DetectDatasetSetup (DetectEngineCtx *de_ctx, Signature *s, const char *rawst
             return -1;
         }
         if (strlen(enrichment_key) == 0) {
-            SCLogError("json format needs an 'enrichment_key' parameter");
+            SCLogError("json format needs a 'context_key' parameter");
             return -1;
         }
     }