mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Adds first version of Assay's materialization in a JSON format
That format will be used by the audit logs.
This commit is contained in:
@@ -15,8 +15,6 @@
|
||||
|
||||
#include "src/audit_log.h"
|
||||
|
||||
#include <yajl/yajl_tree.h>
|
||||
#include <yajl/yajl_gen.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
@@ -150,7 +148,7 @@ bool AuditLog::saveIfRelevant(Assay *assay) {
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string log = logfy(assay);
|
||||
std::string log = assay->to_json(0);
|
||||
|
||||
m_writer->write(log);
|
||||
|
||||
@@ -158,12 +156,6 @@ bool AuditLog::saveIfRelevant(Assay *assay) {
|
||||
}
|
||||
|
||||
|
||||
std::string AuditLog::logfy(Assay *assay) {
|
||||
std::string log("ops");
|
||||
return log;
|
||||
}
|
||||
|
||||
|
||||
bool AuditLog::close() {
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user