]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
files: remove legacy option force-md5
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 20 May 2025 13:04:58 +0000 (15:04 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 21 May 2025 07:37:23 +0000 (09:37 +0200)
The modern option is force-hash: md5

Ticket: 7353

src/util-file.c

index 8fc8998bc7d3e17a699d77d60cf7df5cf9f0d631..e7b71e7070daf620cb8fcb1bbd71a67336167275 100644 (file)
@@ -173,23 +173,6 @@ void FileForceHashParseCfg(SCConfNode *conf)
 
     SCConfNode *forcehash_node = NULL;
 
-    /* legacy option */
-    const char *force_md5 = SCConfNodeLookupChildValue(conf, "force-md5");
-    if (force_md5 != NULL) {
-        SCLogWarning("deprecated 'force-md5' option "
-                     "found. Please use 'force-hash: [md5]' instead");
-
-        if (SCConfValIsTrue(force_md5)) {
-            if (g_disable_hashing) {
-                SCLogInfo(
-                        "not forcing md5 calculation for logged files: hashing globally disabled");
-            } else {
-                FileForceMd5Enable();
-                SCLogInfo("forcing md5 calculation for logged files");
-            }
-        }
-    }
-
     if (conf != NULL)
         forcehash_node = SCConfNodeLookupChild(conf, "force-hash");