Changes the actions to affect the ruleMessage instead of transaction

This commit is contained in:
Felipe Zimmerle
2016-11-28 09:59:50 -03:00
parent 8fa0523fe0
commit 2930d40d57
10 changed files with 30 additions and 19 deletions

View File

@@ -16,6 +16,7 @@
#include <string>
#include "modsecurity/actions/action.h"
#include "modsecurity/rule_message.h"
#ifndef SRC_ACTIONS_MSG_H_
#define SRC_ACTIONS_MSG_H_
@@ -32,7 +33,8 @@ class Msg : public Action {
explicit Msg(std::string action)
: Action(action, RunTimeOnlyIfMatchKind) { }
bool evaluate(Rule *rule, Transaction *transaction) override;
bool evaluate(Rule *rule, Transaction *transaction, RuleMessage *rm)
override;
std::string data(Transaction *Transaction);
};