From b8e4ba6e3ee936e72cc605a931852a54e131ae1c Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Tue, 20 May 2025 15:04:58 +0200 Subject: [PATCH] files: remove legacy option force-md5 The modern option is force-hash: md5 Ticket: 7353 --- src/util-file.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/util-file.c b/src/util-file.c index 8fc8998bc7..e7b71e7070 100644 --- a/src/util-file.c +++ b/src/util-file.c @@ -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");