mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Initial support to load rules from a remote server
New directive `SecRemoteRules' was added. It allows the user to load a set of rules from a given HTTP server.
This commit is contained in:
@@ -33,6 +33,7 @@ typedef struct msc_arg msc_arg;
|
||||
typedef struct msc_string msc_string;
|
||||
typedef struct msc_parm msc_parm;
|
||||
|
||||
#include "msc_remote_rules.h"
|
||||
#include "msc_release.h"
|
||||
#include "msc_logging.h"
|
||||
#include "msc_multipart.h"
|
||||
@@ -144,6 +145,8 @@ extern DSOLOCAL unsigned long int msc_pcre_match_limit;
|
||||
|
||||
extern DSOLOCAL unsigned long int msc_pcre_match_limit_recursion;
|
||||
|
||||
extern DSOLOCAL msc_remote_rules_server *remote_rules_server;
|
||||
|
||||
extern DSOLOCAL int status_engine_state;
|
||||
|
||||
extern DSOLOCAL int conn_limits_filter_state;
|
||||
@@ -619,6 +622,14 @@ struct directory_config {
|
||||
|
||||
/* xml */
|
||||
int xml_external_entity;
|
||||
|
||||
/* This will be used whenever ModSecurity will be ready
|
||||
* to ask the server for newer rules.
|
||||
*/
|
||||
#if 0
|
||||
msc_remote_rules_server *remote_rules;
|
||||
int remote_timeout;
|
||||
#endif
|
||||
};
|
||||
|
||||
struct error_message_t {
|
||||
|
Reference in New Issue
Block a user