mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-12-31 13:49:11 +03:00
Adds ModSecurity version information to the audit logs
This commit is contained in:
10
src/assay.cc
10
src/assay.cc
@@ -776,6 +776,16 @@ std::string Assay::to_json(int parts) {
|
|||||||
/* end: response */
|
/* end: response */
|
||||||
yajl_gen_map_close(g);
|
yajl_gen_map_close(g);
|
||||||
|
|
||||||
|
/* producer */
|
||||||
|
yajl_gen_string(g, reinterpret_cast<const unsigned char*>("producer"),
|
||||||
|
strlen("producer"));
|
||||||
|
yajl_gen_map_open(g);
|
||||||
|
|
||||||
|
/* producer > libmodsecurity */
|
||||||
|
LOGFY_ADD("modsecurity", ModSecurity::whoAmI().c_str());
|
||||||
|
|
||||||
|
/* end: producer */
|
||||||
|
yajl_gen_map_close(g);
|
||||||
|
|
||||||
/* end: transaction */
|
/* end: transaction */
|
||||||
yajl_gen_map_close(g);
|
yajl_gen_map_close(g);
|
||||||
|
|||||||
Reference in New Issue
Block a user