Adds initial serial audit logging support

Serial logging following the format used on ModSecurity 2.9.
This commit is contained in:
Felipe Zimmerle
2015-07-13 14:11:09 -03:00
parent 001d5ebf7f
commit 96a777a5cf
7 changed files with 639 additions and 2 deletions

View File

@@ -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