mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Add ability to compile without API support (-DNO_MODSEC_API). See #198.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include <apr_optional.h>
|
||||
|
||||
|
||||
#ifdef NO_MODSEC_API
|
||||
/* Optional functions. */
|
||||
|
||||
APR_DECLARE_OPTIONAL_FN(void, modsec_register_tfn, (const char *name, void *fn));
|
||||
@@ -27,6 +28,7 @@ APR_DECLARE_OPTIONAL_FN(void, modsec_register_variable,
|
||||
unsigned int argc_min, unsigned int argc_max,
|
||||
void *fn_validate, void *fn_generate,
|
||||
unsigned int is_cacheable, unsigned int availability));
|
||||
#endif
|
||||
|
||||
|
||||
/* Configuration functions. */
|
||||
|
Reference in New Issue
Block a user