diff --git a/apache2/msc_logging.c b/apache2/msc_logging.c index efab5d8f..6ba4c822 100644 --- a/apache2/msc_logging.c +++ b/apache2/msc_logging.c @@ -25,42 +25,6 @@ #include "apr_version.h" #include -/* -* \brief Print informations from used libraries -* -* \param mp Pointer to memory pool -*/ -void version(apr_pool_t *mp) { - char *pcre_vrs = NULL; - - ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL, - "ModSecurity: APR compiled version=\"%s\"; " - "loaded version=\"%s\"", APR_VERSION_STRING, apr_version_string()); - - if (strstr(apr_version_string(),APR_VERSION_STRING) == NULL) { - ap_log_error(APLOG_MARK, APLOG_WARNING, 0, NULL, "ModSecurity: Loaded APR do not match with compiled!"); - } - - pcre_vrs = apr_psprintf(mp,"%d.%d", PCRE_MAJOR, PCRE_MINOR); - - ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL, - "ModSecurity: PCRE compiled version=\"%s\"; " - "loaded version=\"%s\"", pcre_vrs, pcre_version()); - - if (strstr(pcre_version(),pcre_vrs) == NULL) { - ap_log_error(APLOG_MARK, APLOG_WARNING, 0, NULL, "ModSecurity: Loaded PCRE do not match with compiled!"); - } - - /* Lua version function was removed in current 5.1. Need to check in future versions if it's back */ -#if defined(WITH_LUA) - ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL, - "ModSecurity: LUA compiled version=\"%s\"",LUA_VERSION); -#endif /* WITH_LUA */ - - ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL, - "ModSecurity: LIBXML compiled version=\"%s\"",LIBXML_DOTTED_VERSION); -} - /** * Write the supplied data to the audit log (if the FD is ready), update * the size counters, update the hash context. diff --git a/apache2/msc_logging.h b/apache2/msc_logging.h index 1ba417b1..fcd70b25 100644 --- a/apache2/msc_logging.h +++ b/apache2/msc_logging.h @@ -48,6 +48,4 @@ char DSOLOCAL *construct_log_vcombinedus_limited(modsec_rec *msr, int _limit, in void DSOLOCAL sec_audit_logger(modsec_rec *msr); -void DSOLOCAL version(apr_pool_t *mp); - #endif