mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Adds ModSecurity version information to the audit logs
This commit is contained in:
parent
8dab5ac30c
commit
e42e7545d7
10
src/assay.cc
10
src/assay.cc
@ -776,6 +776,16 @@ std::string Assay::to_json(int parts) {
|
||||
/* end: response */
|
||||
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 */
|
||||
yajl_gen_map_close(g);
|
||||
|
Loading…
x
Reference in New Issue
Block a user