39
39
40
40
#include "msc_status_engine.h"
41
41
42
+
43
+ #ifdef WITH_YAJL
44
+ #include <yajl/yajl_version.h>
45
+ #endif /* WITH_YAJL */
46
+
42
47
/* ModSecurity structure */
43
48
44
49
msc_engine DSOLOCAL * modsecurity = NULL ;
@@ -97,7 +102,7 @@ static void version(apr_pool_t *mp) {
97
102
"ModSecurity: APR compiled version=\"%s\"; "
98
103
"loaded version=\"%s\"" , APR_VERSION_STRING , apr_version_string ());
99
104
100
- if (strstr (apr_version_string (),APR_VERSION_STRING ) == NULL ) {
105
+ if (strstr (apr_version_string (), APR_VERSION_STRING ) == NULL ) {
101
106
ap_log_error (APLOG_MARK , APLOG_WARNING , 0 , NULL , "ModSecurity: Loaded APR do not match with compiled!" );
102
107
}
103
108
@@ -114,11 +119,16 @@ static void version(apr_pool_t *mp) {
114
119
/* Lua version function was removed in current 5.1. Need to check in future versions if it's back */
115
120
#if defined(WITH_LUA )
116
121
ap_log_error (APLOG_MARK , APLOG_NOTICE , 0 , NULL ,
117
- "ModSecurity: LUA compiled version=\"%s\"" ,LUA_VERSION );
122
+ "ModSecurity: LUA compiled version=\"%s\"" , LUA_VERSION );
118
123
#endif /* WITH_LUA */
119
124
125
+ #ifdef WITH_YAJL
126
+ ap_log_error (APLOG_MARK , APLOG_NOTICE , 0 , NULL ,
127
+ "ModSecurity: YAJL compiled version=\"%d.%d.%d\"" , YAJL_MAJOR , YAJL_MINOR , YAJL_MICRO );
128
+ #endif /* WITH_YAJL */
129
+
120
130
ap_log_error (APLOG_MARK , APLOG_NOTICE , 0 , NULL ,
121
- "ModSecurity: LIBXML compiled version=\"%s\"" ,LIBXML_DOTTED_VERSION );
131
+ "ModSecurity: LIBXML compiled version=\"%s\"" , LIBXML_DOTTED_VERSION );
122
132
}
123
133
124
134
0 commit comments