Warming up to the remote collections support

Huge refactoring to have the code in shape to later support the
remote collections with different backends.
This commit is contained in:
Felipe Zimmerle
2016-05-03 13:49:16 -03:00
parent ff165a4035
commit 5643d2fa28
50 changed files with 125 additions and 688 deletions

View File

@@ -34,7 +34,7 @@ namespace modsecurity {
namespace Variables {
void TimeSec::evaluateInternal(Transaction *transaction,
std::vector<const transaction::Variable *> *l) {
std::vector<const collection::Variable *> *l) {
char tstr[200];
struct tm timeinfo;
time_t timer;
@@ -45,7 +45,7 @@ void TimeSec::evaluateInternal(Transaction *transaction,
localtime_r(&timer, &timeinfo);
strftime(tstr, 200, "%S", &timeinfo);
l->push_back(new transaction::Variable("TIME_SEC", std::string(tstr)));
l->push_back(new collection::Variable("TIME_SEC", std::string(tstr)));
}