From 31127940257f777d855ae4a53731068c877cfd06 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Wed, 8 Jul 2015 18:42:23 -0300 Subject: [PATCH] Adds a time stamp to assay class --- headers/modsecurity/assay.h | 1 + src/assay.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/headers/modsecurity/assay.h b/headers/modsecurity/assay.h index 0e8c54a0..7bfdb073 100644 --- a/headers/modsecurity/assay.h +++ b/headers/modsecurity/assay.h @@ -144,6 +144,7 @@ class Assay { const char *m_uri; const char *m_protocol; const char *m_httpVersion; + time_t m_timeStamp; std::ostringstream m_requestBody; std::ostringstream m_responseBody; diff --git a/src/assay.cc b/src/assay.cc index f22a94d6..6e88d839 100644 --- a/src/assay.cc +++ b/src/assay.cc @@ -83,6 +83,7 @@ Assay::Assay(ModSecurity *ms, Rules *rules) m_rules(rules), save_in_auditlog(false), do_not_save_in_auditlog(false), + m_timeStamp(std::time(NULL)), http_code_returned(200) { m_rules->incrementReferenceCount(); this->debug(4, "Initialising transaction");