"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/http_inspect/http_js_norm.h" between
snort3-3.1.29.0.tar.gz and snort3-3.1.30.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_js_norm.h  (snort3-3.1.29.0):http_js_norm.h  (snort3-3.1.30.0)
skipping to change at line 39 skipping to change at line 39
#include "http_event.h" #include "http_event.h"
#include "http_module.h" #include "http_module.h"
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// HttpJsNorm class // HttpJsNorm class
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
class HttpJsNorm class HttpJsNorm
{ {
public: public:
HttpJsNorm(const HttpParaList::UriParam&, int64_t normalization_depth, HttpJsNorm(const HttpParaList::UriParam& uri_param_,
int32_t identifier_depth, uint8_t max_template_nesting, uint32_t max_bra const HttpParaList::JsNormParam& js_norm_param_);
cket_depth,
uint32_t max_scope_depth, const std::unordered_set<std::string>& ignored
_ids);
~HttpJsNorm(); ~HttpJsNorm();
void set_detection_depth(size_t depth) void set_detection_depth(size_t depth)
{ detection_depth = depth; } { detection_depth = depth; }
void do_legacy(const Field& input, Field& output, HttpInfractions*, HttpEven tGen*, void do_legacy(const Field& input, Field& output, HttpInfractions*, HttpEven tGen*,
int max_javascript_whitespaces) const; int max_javascript_whitespaces) const;
void do_inline(const Field& input, Field& output, HttpInfractions*, HttpFlow Data*, bool) const; void do_inline(const Field& input, Field& output, HttpInfractions*, HttpFlow Data*, bool) const;
void do_external(const Field& input, Field& output, HttpInfractions*, HttpFl owData*, bool) const; void do_external(const Field& input, Field& output, HttpInfractions*, HttpFl owData*, bool) const;
skipping to change at line 66 skipping to change at line 65
struct MatchContext struct MatchContext
{ {
const char* next; const char* next;
bool is_javascript; bool is_javascript;
bool is_external; bool is_external;
bool is_shortened; bool is_shortened;
}; };
const HttpParaList::UriParam& uri_param; const HttpParaList::UriParam& uri_param;
const HttpParaList::JsNormParam& js_norm_param;
size_t detection_depth; size_t detection_depth;
int64_t normalization_depth;
int32_t identifier_depth;
uint8_t max_template_nesting;
uint32_t max_bracket_depth;
uint32_t max_scope_depth;
const std::unordered_set<std::string>& ignored_ids;
bool configure_once = false; bool configure_once = false;
snort::SearchTool* mpse_otag; snort::SearchTool* mpse_otag;
snort::SearchTool* mpse_attr; snort::SearchTool* mpse_attr;
snort::SearchTool* mpse_type; // legacy only snort::SearchTool* mpse_type; // legacy only
static int search_js_found(void*, void*, int index, void*, void*); // legac y only static int search_js_found(void*, void*, int index, void*, void*); // legac y only
static int search_html_found(void* id, void*, int, void*, void*); // legacy only static int search_html_found(void* id, void*, int, void*, void*); // legacy only
static int match_otag(void*, void*, int, void*, void*); static int match_otag(void*, void*, int, void*, void*);
static int match_attr(void*, void*, int, void*, void*); static int match_attr(void*, void*, int, void*, void*);
 End of changes. 3 change blocks. 
11 lines changed or deleted 3 lines changed or added

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