From: Lukasz Czarnik -X (lczarnik - SOFTSERVE INC at Cisco) Date: Tue, 29 Aug 2023 12:53:06 +0000 (+0000) Subject: Pull request #3965: appid: makes regex error more of a warning X-Git-Tag: 3.1.70.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88ad2eef15dfb2fa3a5b3d718e6c15a45a433a32;p=thirdparty%2Fsnort3.git Pull request #3965: appid: makes regex error more of a warning Merge in SNORT/snort3 from ~LCZARNIK/snort3:regex_warning to master Squashed commit of the following: commit 42b77baa8c0f3d1b2380a40a8b1e64ece33874e5 Author: Lukasz Czarnik Date: Tue Aug 22 04:29:06 2023 -0400 appid: makes regex error more of a warning --- diff --git a/src/network_inspectors/appid/lua_detector_api.cc b/src/network_inspectors/appid/lua_detector_api.cc index 889b8b20e..318b3dfed 100644 --- a/src/network_inspectors/appid/lua_detector_api.cc +++ b/src/network_inspectors/appid/lua_detector_api.cc @@ -1273,7 +1273,7 @@ static int detector_add_ssl_cert_regex_pattern(lua_State* L) const FastPatternConfig* const fp = SnortConfig::get_conf()->fast_pattern_config; if (!MpseManager::is_regex_capable(fp->get_search_api())){ - ErrorMessage("appid: Regex patterns require usage of regex capable search engine like hyperscan in %s\n", + WarningMessage("WARNING: appid: Regex patterns require usage of regex capable search engine like hyperscan in %s\n", ud->get_detector()->get_name().c_str()); return 0; } @@ -1339,7 +1339,7 @@ static int detector_add_ssl_cname_regex_pattern(lua_State* L) const FastPatternConfig* const fp = SnortConfig::get_conf()->fast_pattern_config; if (!MpseManager::is_regex_capable(fp->get_search_api())){ - ErrorMessage("appid: Regex patterns require usage of regex capable search engine like hyperscan in %s\n", + WarningMessage("WARNING: appid: Regex patterns require usage of regex capable search engine like hyperscan in %s\n", ud->get_detector()->get_name().c_str()); return 0; }