Refactors {flow,host}callbacks into {flow,host}checks (C++)

This commit is contained in:
Simone Mainardi 2021-06-16 15:27:38 +02:00
parent cf50f4e0e7
commit 40f5c4e821
216 changed files with 895 additions and 898 deletions

View file

@ -30,7 +30,7 @@ class FlowRiskURLPossibleSQLInjectionAlert : public FlowRiskAlert {
static FlowAlertType getClassType() { return { flow_alert_ndpi_url_possible_sql_injection, alert_category_security }; }
static u_int8_t getDefaultScore() { return Utils::getFlowRiskScore(getClassRisk()); }
FlowRiskURLPossibleSQLInjectionAlert(FlowCallback *c, Flow *f) : FlowRiskAlert(c, f) { };
FlowRiskURLPossibleSQLInjectionAlert(FlowCheck *c, Flow *f) : FlowRiskAlert(c, f) { };
~FlowRiskURLPossibleSQLInjectionAlert() { };
FlowAlertType getAlertType() const { return getClassType(); }