"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/http_inspect/http_inspect.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.

http_inspect.cc  (snort3-3.1.28.0):http_inspect.cc  (snort3-3.1.29.0)
skipping to change at line 134 skipping to change at line 134
HttpTestManager::set_show_scan(params->show_scan); HttpTestManager::set_show_scan(params->show_scan);
} }
#endif #endif
if (params->script_detection) if (params->script_detection)
{ {
script_finder = new ScriptFinder(params->script_detection_handle); script_finder = new ScriptFinder(params->script_detection_handle);
} }
} }
HttpInspect::~HttpInspect()
{
delete params->mime_decode_conf;
delete params;
delete script_finder;
}
bool HttpInspect::configure(SnortConfig* ) bool HttpInspect::configure(SnortConfig* )
{ {
params->js_norm_param.js_norm->configure(); params->js_norm_param.js_norm->configure();
params->mime_decode_conf->sync_all_depths();
return true; return true;
} }
void HttpInspect::show(const SnortConfig*) const void HttpInspect::show(const SnortConfig*) const
{ {
assert(params); assert(params);
auto unreserved_chars = GetUnreservedChars(params->uri_param.unreserved_char ); auto unreserved_chars = GetUnreservedChars(params->uri_param.unreserved_char );
auto bad_chars = GetBadChars(params->uri_param.bad_characters); auto bad_chars = GetBadChars(params->uri_param.bad_characters);
skipping to change at line 319 skipping to change at line 327
const HttpBufferInfo& buffer_info) const const HttpBufferInfo& buffer_info) const
{ {
const HttpMsgSection* const current_section = HttpContextData::get_snapshot( p); const HttpMsgSection* const current_section = HttpContextData::get_snapshot( p);
if (current_section == nullptr) if (current_section == nullptr)
return VERS__NOT_PRESENT; return VERS__NOT_PRESENT;
return current_section->get_version_id(buffer_info); return current_section->get_version_id(buffer_info);
} }
HttpCommon::SectionType HttpInspect::get_type_expected(snort::Flow* flow, HttpCo
mmon::SourceId source_id) const
{
HttpFlowData* session_data = http_get_flow_data(flow);
return session_data->get_type_expected(source_id);
}
void HttpInspect::finish_h2_body(snort::Flow* flow, HttpCommon::SourceId source_
id, HttpCommon::H2BodyState state,
bool clear_partial_buffer) const
{
HttpFlowData* session_data = http_get_flow_data(flow);
session_data->finish_h2_body(source_id, state, clear_partial_buffer);
}
void HttpInspect::set_h2_body_state(snort::Flow* flow, HttpCommon::SourceId sour
ce_id, HttpCommon::H2BodyState state) const
{
HttpFlowData* session_data = http_get_flow_data(flow);
session_data->set_h2_body_state(source_id, state);
}
bool HttpInspect::get_fp_buf(InspectionBuffer::Type ibt, Packet* p, InspectionBu ffer& b) bool HttpInspect::get_fp_buf(InspectionBuffer::Type ibt, Packet* p, InspectionBu ffer& b)
{ {
if (get_latest_is(p) == IS_NONE) if (get_latest_is(p) == IS_NONE)
return false; return false;
// Fast pattern buffers only supplied at specific times // Fast pattern buffers only supplied at specific times
switch (ibt) switch (ibt)
{ {
case InspectionBuffer::IBT_KEY: case InspectionBuffer::IBT_KEY:
case InspectionBuffer::IBT_RAW_KEY: case InspectionBuffer::IBT_RAW_KEY:
 End of changes. 3 change blocks. 
0 lines changed or deleted 30 lines changed or added

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