Expands log_cb to share ruleMessage structure instead text

Text version still available and it is the default options
This commit is contained in:
Felipe Zimmerle
2017-02-26 01:34:52 -03:00
parent 9ea5b475b2
commit e2af60e765
70 changed files with 634 additions and 181 deletions

View File

@@ -68,6 +68,7 @@ char rules_file[] = "basic_rules.conf";
#define NUM_REQUESTS 10000
int main(int argc, char *argv[]) {
int i = 0;
modsecurity::ModSecurity *modsec;

View File

@@ -80,7 +80,8 @@ void actions(ModSecurityTestResults<RegressionTest> *r,
}
}
void logCb(void *data, const char *msg) {
void logCb(void *data, const void *msgv) {
const char *msg = reinterpret_cast<const char*>(msgv);
std::stringstream *ss = (std::stringstream *) data;
*ss << msg << std::endl;
}