mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-03 13:04:37 +03:00
Adds AuditLog class
The properties related to the Audit Log were saved into the classes Rules and Dirver, now all those properties will be saved into the AuditLog class.
This commit is contained in:
@@ -18,7 +18,9 @@
|
||||
#include "parser/seclang-parser.hh"
|
||||
|
||||
Driver::Driver()
|
||||
: trace_scanning(false), trace_parsing(false) {
|
||||
: trace_scanning(false),
|
||||
trace_parsing(false),
|
||||
audit_log(new ModSecurity::AuditLog()) {
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +48,11 @@ int Driver::parse(const std::string &f) {
|
||||
|
||||
int res = parser.parse();
|
||||
|
||||
if (this->audit_log->init() == false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
scan_end();
|
||||
return res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user