Fix a few things to provide an easy interface for script bindings

This commit is contained in:
Felipe Zimmerle
2015-12-22 11:50:18 -03:00
parent ac10d8863c
commit fb3696ac04
18 changed files with 49 additions and 19 deletions

View File

@@ -92,6 +92,14 @@ class RulesProperties {
}
std::vector<Rule *> rules[7];
std::vector<Rule *> * getRulesForPhase(int phase) {
if (phase > 7)
{
return NULL;
}
return &rules[phase];
};
// ModSecurity::Phases::NUMBER_OF_PHASES
std::vector<actions::Action *> defaultActions[7];
// ModSecurity::Phases::NUMBER_OF_PHASES