"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/network_inspectors/appid/client_plugins/test/eve_ca_patterns_test.cc" between
snort3-3.1.31.0.tar.gz and snort3-3.1.32.0.tar.gz

About: Snort 3 is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

eve_ca_patterns_test.cc  (snort3-3.1.31.0):eve_ca_patterns_test.cc  (snort3-3.1.32.0)
skipping to change at line 26 skipping to change at line 26
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
// //
// eve_ca_patterns_test.cc author Sreeja Athirkandathil Narayanan <sathirka@cisc o.com> // eve_ca_patterns_test.cc author Sreeja Athirkandathil Narayanan <sathirka@cisc o.com>
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include "client_plugins/eve_ca_patterns.cc" #include "client_plugins/eve_ca_patterns.cc"
#include "appid_inspector.h"
#include "client_plugins_mock.h" #include "client_plugins_mock.h"
#include <CppUTest/CommandLineTestRunner.h> #include <CppUTest/CommandLineTestRunner.h>
#include <CppUTest/TestHarness.h> #include <CppUTest/TestHarness.h>
#include <CppUTestExt/MockSupport.h> #include <CppUTestExt/MockSupport.h>
static EveCaPatternMatchers* eve_matcher = nullptr; static EveCaPatternMatchers* eve_matcher = nullptr;
EveCaPattern eve_ca(APPID_UT_ID, "firefox", 90); EveCaPattern eve_ca(APPID_UT_ID, "firefox", 90);
namespace snort namespace snort
{ {
int SearchTool::find_all(const char* pattern, unsigned, MpseMatch, bool, void* d ata) int SearchTool::find_all(const char* pattern, unsigned, MpseMatch, bool, void* d ata)
{ {
if (strcmp(pattern, "firefox") == 0) if (strcmp(pattern, "firefox") == 0)
eve_ca_pattern_match(&eve_ca, nullptr, 0, data, nullptr); eve_ca_pattern_match(&eve_ca, nullptr, 0, data, nullptr);
return 0; return 0;
} }
} }
Inspector* InspectorManager::get_inspector(char const*, bool, const snort::Snort
Config*)
{
return nullptr;
}
AppIdContext* ctxt;
AppIdContext& AppIdInspector::get_ctxt() const { return *ctxt; }
TEST_GROUP(eve_ca_patterns_tests) TEST_GROUP(eve_ca_patterns_tests)
{ {
void setup() override void setup() override
{ {
eve_matcher = new EveCaPatternMatchers(); eve_matcher = new EveCaPatternMatchers();
} }
void teardown() override void teardown() override
{ {
delete eve_matcher; delete eve_matcher;
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)