mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Optimization on the status engine call
The status string was too long. By removing meaningless stuff, such as: runtime version of Lua, we have reduced the length of the status string. Limitations were also placed regarding the size of the ModSecurity version. Big queries may lead to failure, due to restrictions of "gethostbyname". There is also a bit of code cosmetics in this patch: big functions were broken into smaller.
This commit is contained in:
@@ -29,6 +29,10 @@
|
||||
|
||||
#define STATUS_ENGINE_DNS_SUFFIX "status.modsecurity.org"
|
||||
|
||||
#define MAX_MACHINE_NAME_SIZE 100
|
||||
|
||||
#define MAC_ADDRESS_SIZE 20
|
||||
|
||||
static const char msc_status_engine_basis_32[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
||||
|
||||
int msc_status_engine_call(void);
|
||||
|
Reference in New Issue
Block a user