From: Jeff Lucovsky Date: Wed, 8 May 2024 14:08:13 +0000 (-0400) Subject: tests/ja4: config message when ja4 auto enabled X-Git-Tag: suricata-7.0.6~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=247fc2bfb63f346b2c5edac107fe3ba0b6da7851;p=thirdparty%2Fsuricata.git tests/ja4: config message when ja4 auto enabled Issue: 7010 This commit displays a config message when JA4 is enabled due to rule usage. --- diff --git a/src/detect-ja4-hash.c b/src/detect-ja4-hash.c index c029b6dab4..2d3f908bf6 100644 --- a/src/detect-ja4-hash.c +++ b/src/detect-ja4-hash.c @@ -122,6 +122,12 @@ static int DetectJa4HashSetup(DetectEngineCtx *de_ctx, Signature *s, const char SCLogError("JA4 support is not enabled"); } return -2; + } else { + static bool once = false; + if (!once) { + once = true; + SCLogConfig("enabling JA4 due to rule usage"); + } } s->init_data->init_flags |= SIG_FLAG_INIT_JA;