]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #3965: appid: makes regex error more of a warning
authorLukasz Czarnik -X (lczarnik - SOFTSERVE INC at Cisco) <lczarnik@cisco.com>
Tue, 29 Aug 2023 12:53:06 +0000 (12:53 +0000)
committerChris Sherwin (chsherwi) <chsherwi@cisco.com>
Tue, 29 Aug 2023 12:53:06 +0000 (12:53 +0000)
Merge in SNORT/snort3 from ~LCZARNIK/snort3:regex_warning to master

Squashed commit of the following:

commit 42b77baa8c0f3d1b2380a40a8b1e64ece33874e5
Author: Lukasz Czarnik <lczarnik@cisco.com>
Date:   Tue Aug 22 04:29:06 2023 -0400

    appid: makes regex error more of a warning

src/network_inspectors/appid/lua_detector_api.cc

index 889b8b20e5c543de990d73ee09f8e02ccd45a0cb..318b3dfed9803d4710a92f17d493cdc1e99ca9e7 100644 (file)
@@ -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;
     }