From: Eric Leblond Date: Sun, 8 Jun 2025 07:03:04 +0000 (+0200) Subject: datajson: rename enrichment_key to context_key X-Git-Tag: suricata-8.0.0-rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62e90206c6081f9063487baa126e3e2fb90a796f;p=thirdparty%2Fsuricata.git datajson: rename enrichment_key to context_key --- diff --git a/src/detect-dataset.c b/src/detect-dataset.c index 2c8ff2bf9b..3f61c01c34 100644 --- a/src/detect-dataset.c +++ b/src/detect-dataset.c @@ -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; } }