"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/http_inspect/http_module.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_module.cc  (snort3-3.1.28.0):http_module.cc  (snort3-3.1.29.0)
skipping to change at line 251 skipping to change at line 251
{ {
params->maximum_host_length = val.get_int64(); params->maximum_host_length = val.get_int64();
} }
else if (val.is("maximum_chunk_length")) else if (val.is("maximum_chunk_length"))
{ {
params->maximum_chunk_length = val.get_int64(); params->maximum_chunk_length = val.get_int64();
} }
else if (val.is("decompress_pdf")) else if (val.is("decompress_pdf"))
{ {
params->decompress_pdf = val.get_bool(); params->decompress_pdf = val.get_bool();
params->mime_decode_conf.set_decompress_pdf(val.get_bool());
} }
else if (val.is("decompress_swf")) else if (val.is("decompress_swf"))
{ {
params->decompress_swf = val.get_bool(); params->decompress_swf = val.get_bool();
params->mime_decode_conf.set_decompress_swf(val.get_bool());
} }
else if (val.is("decompress_zip")) else if (val.is("decompress_zip"))
{ {
params->decompress_zip = val.get_bool(); params->decompress_zip = val.get_bool();
params->mime_decode_conf.set_decompress_zip(val.get_bool());
} }
else if (val.is("decompress_vba")) else if (val.is("decompress_vba"))
{ {
params->decompress_vba = val.get_bool(); params->decompress_vba = val.get_bool();
params->mime_decode_conf.set_decompress_vba(val.get_bool());
} }
else if (val.is("script_detection")) else if (val.is("script_detection"))
{ {
params->script_detection = val.get_bool(); params->script_detection = val.get_bool();
} }
else if (val.is("normalize_javascript")) else if (val.is("normalize_javascript"))
{ {
params->js_norm_param.normalize_javascript = val.get_bool(); params->js_norm_param.normalize_javascript = val.get_bool();
} }
else if (val.is("js_norm_identifier_depth")) else if (val.is("js_norm_identifier_depth"))
skipping to change at line 489 skipping to change at line 485
} }
params->js_norm_param.js_norm = new HttpJsNorm(params->uri_param, params->js_norm_param.js_norm = new HttpJsNorm(params->uri_param,
params->js_norm_param.js_norm_bytes_depth, params->js_norm_param.js_iden tifier_depth, params->js_norm_param.js_norm_bytes_depth, params->js_norm_param.js_iden tifier_depth,
params->js_norm_param.max_template_nesting, params->js_norm_param.max_br acket_depth, params->js_norm_param.max_template_nesting, params->js_norm_param.max_br acket_depth,
params->js_norm_param.max_scope_depth, params->js_norm_param.ignored_ids ); params->js_norm_param.max_scope_depth, params->js_norm_param.ignored_ids );
params->script_detection_handle = script_detection_handle; params->script_detection_handle = script_detection_handle;
prepare_http_header_list(params); prepare_http_header_list(params);
params->mime_decode_conf = new DecodeConfig();
params->mime_decode_conf->set_decompress_pdf(params->decompress_pdf);
params->mime_decode_conf->set_decompress_swf(params->decompress_swf);
params->mime_decode_conf->set_decompress_zip(params->decompress_zip);
params->mime_decode_conf->set_decompress_vba(params->decompress_vba);
return true; return true;
} }
HttpParaList::~HttpParaList() HttpParaList::~HttpParaList()
{ {
for (int idx = 0; xff_headers[idx].code; idx++) for (int idx = 0; xff_headers[idx].code; idx++)
{ {
delete[] xff_headers[idx].name; delete[] xff_headers[idx].name;
} }
} }
 End of changes. 5 change blocks. 
4 lines changed or deleted 7 lines changed or added

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