Skip to content

Commit b5130ac

Browse files
committed
Move APLOG_USE_MODULE out of modsecurity.h
1 parent 3bd5836 commit b5130ac

8 files changed

+27
-4
lines changed

apache2/apache2_config.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
#include "msc_lua.h"
2727
#endif
2828

29+
#ifdef APLOG_USE_MODULE
30+
APLOG_USE_MODULE(security2);
31+
#endif
2932

3033
/* -- Directory context creation and initialisation -- */
3134

apache2/apache2_io.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
#include "apache2.h"
1919
#include "msc_crypt.h"
2020

21+
#ifdef APLOG_USE_MODULE
22+
APLOG_USE_MODULE(security2);
23+
#endif
24+
2125
/* -- Input filter -- */
2226

2327
#if 0

apache2/apache2_util.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
#include "http_core.h"
1818
#include "util_script.h"
1919

20+
#ifdef APLOG_USE_MODULE
21+
APLOG_USE_MODULE(security2);
22+
#endif
23+
2024
/**
2125
* Sends a brigade with an error bucket down the filter chain.
2226
*/

apache2/mod_security2.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
#include <yajl/yajl_version.h>
4747
#endif /* WITH_YAJL */
4848

49+
#ifdef APLOG_USE_MODULE
50+
APLOG_USE_MODULE(security2);
51+
#endif
52+
4953
/* ModSecurity structure */
5054

5155
msc_engine DSOLOCAL *modsecurity = NULL;

apache2/modsecurity.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
#include <curl/curl.h>
2828
#endif
2929

30+
#ifdef APLOG_USE_MODULE
31+
APLOG_USE_MODULE(security2);
32+
#endif
33+
3034
unsigned long int DSOLOCAL unicode_codepage = 0;
3135

3236
int DSOLOCAL *unicode_map_table = NULL;

apache2/modsecurity.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@ extern DSOLOCAL char *real_server_signature;
145145
extern DSOLOCAL char *chroot_dir;
146146

147147
extern module AP_MODULE_DECLARE_DATA security2_module;
148-
#ifdef APLOG_USE_MODULE
149-
APLOG_USE_MODULE(security2);
150-
#endif
151148

152149
extern DSOLOCAL const command_rec module_directives[];
153150

apache2/msc_status_engine.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545
#include <sys/utsname.h>
4646
#endif
4747

48+
#ifdef APLOG_USE_MODULE
49+
APLOG_USE_MODULE(security2);
50+
#endif
51+
4852
// Bese32 encode, based on:
4953
// https://code.google.com/p/google-authenticator/source/browse/libpam/base32.c
5054
int DSOLOCAL msc_status_engine_base32_encode(char *encoded,
@@ -504,4 +508,3 @@ int msc_status_engine_call (void) {
504508

505509
return ret;
506510
}
507-

apache2/re.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#include "msc_lua.h"
2121
#endif
2222

23+
#ifdef APLOG_USE_MODULE
24+
APLOG_USE_MODULE(security2);
25+
#endif
26+
2327
static const char *const severities[] = {
2428
"EMERGENCY",
2529
"ALERT",

0 commit comments

Comments
 (0)