We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc654ce commit 6777ff3Copy full SHA for 6777ff3
src/ngx_http_modsecurity_common.h
@@ -24,7 +24,21 @@
24
25
#include <modsecurity/modsecurity.h>
26
#include <modsecurity/transaction.h>
27
+
28
29
+/* #define MSC_USE_RULES_SET 1 */
30
31
+#if defined(MODSECURITY_CHECK_VERSION)
32
+#if MODSECURITY_VERSION_NUM >= 304010
33
+#define MSC_USE_RULES_SET 1
34
+#endif
35
36
37
+#if defined(MSC_USE_RULES_SET)
38
#include <modsecurity/rules_set.h>
39
+#else
40
+#include <modsecurity/rules.h>
41
42
43
44
/**
@@ -97,7 +111,8 @@ typedef struct {
97
111
98
112
typedef struct {
99
113
void *pool;
100
- RulesSet *rules_set;
114
+ /* RulesSet or Rules */
115
+ void *rules_set;
101
116
102
117
ngx_flag_t enable;
103
118
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
0 commit comments