mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Expands log_cb to share ruleMessage structure instead text
Text version still available and it is the default options
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user