"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/network_inspectors/appid/test/service_state_test.cc" between
snort3-3.1.28.0.tar.gz and snort3-3.1.29.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.

service_state_test.cc  (snort3-3.1.28.0):service_state_test.cc  (snort3-3.1.29.0)
skipping to change at line 90 skipping to change at line 90
void ApplicationDescriptor::set_id(AppId){} void ApplicationDescriptor::set_id(AppId){}
void ServiceAppDescriptor::set_id(AppId, OdpContext&){} void ServiceAppDescriptor::set_id(AppId, OdpContext&){}
void ServiceAppDescriptor::set_port_service_id(AppId){} void ServiceAppDescriptor::set_port_service_id(AppId){}
void ClientAppDescriptor::update_user(AppId, const char*, AppidChangeBits&){} void ClientAppDescriptor::update_user(AppId, const char*, AppidChangeBits&){}
AppIdConfig::~AppIdConfig() = default; AppIdConfig::~AppIdConfig() = default;
OdpContext::OdpContext(const AppIdConfig&, snort::SnortConfig*) { } OdpContext::OdpContext(const AppIdConfig&, snort::SnortConfig*) { }
AppIdConfig stub_config; AppIdConfig stub_config;
AppIdContext stub_ctxt(stub_config); AppIdContext stub_ctxt(stub_config);
OdpContext stub_odp_ctxt(stub_config, nullptr); OdpContext stub_odp_ctxt(stub_config, nullptr);
AppIdSession::AppIdSession(IpProtocol, const SfIp* ip, uint16_t, AppIdInspector& , AppIdSession::AppIdSession(IpProtocol, const SfIp* ip, uint16_t, AppIdInspector& ,
OdpContext&, uint16_t) : FlowData(0), config(stub_config), OdpContext&, uint32_t) : FlowData(0), config(stub_config),
api(*(new AppIdSessionApi(this, *ip))), odp_ctxt(stub_odp_ctxt) { } api(*(new AppIdSessionApi(this, *ip))), odp_ctxt(stub_odp_ctxt) { }
AppIdSession::~AppIdSession() = default; AppIdSession::~AppIdSession() = default;
AppIdDiscovery::~AppIdDiscovery() = default; AppIdDiscovery::~AppIdDiscovery() = default;
void ClientDiscovery::initialize(AppIdInspector&) { } void ClientDiscovery::initialize(AppIdInspector&) { }
void ClientDiscovery::reload() { } void ClientDiscovery::reload() { }
void AppIdDiscovery::register_detector(const std::string&, AppIdDetector*, IpPr otocol) {} void AppIdDiscovery::register_detector(const std::string&, AppIdDetector*, IpPr otocol) {}
void AppIdDiscovery::add_pattern_data(AppIdDetector*, SearchTool&, int, const ui nt8_t* const, void AppIdDiscovery::add_pattern_data(AppIdDetector*, SearchTool&, int, const ui nt8_t* const,
unsigned, unsigned) {} unsigned, unsigned) {}
void AppIdDiscovery::register_tcp_pattern(AppIdDetector*, const uint8_t* const, unsigned, void AppIdDiscovery::register_tcp_pattern(AppIdDetector*, const uint8_t* const, unsigned,
int, unsigned) {} int, unsigned) {}
skipping to change at line 127 skipping to change at line 127
ServiceDetector*) { return 0; } ServiceDetector*) { return 0; }
int ServiceDiscovery::fail_service(AppIdSession&, const Packet*, AppidSessionDir ection, int ServiceDiscovery::fail_service(AppIdSession&, const Packet*, AppidSessionDir ection,
ServiceDetector*, ServiceDiscoveryState*) { return 0; } ServiceDetector*, ServiceDiscoveryState*) { return 0; }
int ServiceDiscovery::add_service_port(AppIdDetector*, int ServiceDiscovery::add_service_port(AppIdDetector*,
const ServiceDetectorPort&) { return APPID_EINVALID; } const ServiceDetectorPort&) { return APPID_EINVALID; }
DnsPatternMatchers::~DnsPatternMatchers() = default; DnsPatternMatchers::~DnsPatternMatchers() = default;
EveCaPatternMatchers::~EveCaPatternMatchers() = default; EveCaPatternMatchers::~EveCaPatternMatchers() = default;
HttpPatternMatchers::~HttpPatternMatchers() = default; HttpPatternMatchers::~HttpPatternMatchers() = default;
SipPatternMatchers::~SipPatternMatchers() = default; SipPatternMatchers::~SipPatternMatchers() = default;
SslPatternMatchers::~SslPatternMatchers() = default; SslPatternMatchers::~SslPatternMatchers() = default;
AlpnPatternMatchers::~AlpnPatternMatchers() = default;
snort::SearchTool::SearchTool(bool) { } snort::SearchTool::SearchTool(bool) { }
snort::SearchTool::~SearchTool() = default; snort::SearchTool::~SearchTool() = default;
TEST_GROUP(service_state_tests) TEST_GROUP(service_state_tests)
{ {
void setup() override void setup() override
{ {
appidDebug = new AppIdDebug(); appidDebug = new AppIdDebug();
appidDebug->activate(nullptr, nullptr, false); appidDebug->activate(nullptr, nullptr, false);
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

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