mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 19:47:47 +03:00
Adds initial serial audit logging support
Serial logging following the format used on ModSecurity 2.9.
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
|
||||
namespace ModSecurity {
|
||||
|
||||
#define SERIAL_AUDIT_LOG_BOUNDARY_LENGTH 8
|
||||
|
||||
/** @ingroup ModSecurity_CPP_API */
|
||||
class AuditLogWriterSerial : public AuditLogWriter {
|
||||
public:
|
||||
@@ -51,6 +53,10 @@ class AuditLogWriterSerial : public AuditLogWriter {
|
||||
|
||||
bool init() override;;
|
||||
bool write(Assay *assay, int parts) override;
|
||||
|
||||
private:
|
||||
std::ofstream log;
|
||||
void generateBoundary(std::string *boundary);
|
||||
};
|
||||
|
||||
} // namespace ModSecurity
|
||||
|
Reference in New Issue
Block a user