|
Packit Service |
384592 |
/*
|
|
Packit Service |
384592 |
* ModSecurity for Apache 2.x, http://www.modsecurity.org/
|
|
Packit Service |
384592 |
* Copyright (c) 2004-2013 Trustwave Holdings, Inc. (http://www.trustwave.com/)
|
|
Packit Service |
384592 |
*
|
|
Packit Service |
384592 |
* You may not use this file except in compliance with
|
|
Packit Service |
384592 |
* the License. You may obtain a copy of the License at
|
|
Packit Service |
384592 |
*
|
|
Packit Service |
384592 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit Service |
384592 |
*
|
|
Packit Service |
384592 |
* If any of the files related to licensing are missing or if you have any
|
|
Packit Service |
384592 |
* other questions related to licensing please contact Trustwave Holdings, Inc.
|
|
Packit Service |
384592 |
* directly using the email address security@modsecurity.org.
|
|
Packit Service |
384592 |
*/
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#include <limits.h>
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#include "http_core.h"
|
|
Packit Service |
384592 |
#include "http_request.h"
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#include "modsecurity.h"
|
|
Packit Service |
384592 |
#include "apache2.h"
|
|
Packit Service |
384592 |
#include "http_main.h"
|
|
Packit Service |
384592 |
#include "http_connection.h"
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#include "apr_optional.h"
|
|
Packit Service |
384592 |
#include "mod_log_config.h"
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#include "msc_logging.h"
|
|
Packit Service |
384592 |
#include "msc_util.h"
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#include "ap_mpm.h"
|
|
Packit Service |
384592 |
#include "scoreboard.h"
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#include "apr_version.h"
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#include "apr_lib.h"
|
|
Packit Service |
384592 |
#include "ap_config.h"
|
|
Packit Service |
384592 |
#include "http_config.h"
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#define DECLARE_EXTERNAL_HOOK(ns,link,ret,name,args) \
|
|
Packit Service |
384592 |
ns##_HOOK_##name##_t *hookfn_##name = NULL; \
|
|
Packit Service |
384592 |
link##_DECLARE(void) ns##_hook_##name(ns##_HOOK_##name##_t *pf, \
|
|
Packit Service |
384592 |
const char * const *aszPre, \
|
|
Packit Service |
384592 |
const char * const *aszSucc, int nOrder) \
|
|
Packit Service |
384592 |
{ \
|
|
Packit Service |
384592 |
hookfn_##name = pf; \
|
|
Packit Service |
384592 |
}
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#define DECLARE_HOOK(ret,name,args) \
|
|
Packit Service |
384592 |
DECLARE_EXTERNAL_HOOK(ap,AP,ret,name,args)
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
DECLARE_HOOK(int,pre_config,(apr_pool_t *pconf,apr_pool_t *plog, apr_pool_t *ptemp))
|
|
Packit Service |
384592 |
DECLARE_HOOK(int,post_config,(apr_pool_t *pconf,apr_pool_t *plog, apr_pool_t *ptemp,server_rec *s))
|
|
Packit Service |
384592 |
DECLARE_HOOK(void,child_init,(apr_pool_t *pchild, server_rec *s))
|
|
Packit Service |
384592 |
DECLARE_HOOK(int,process_connection,(conn_rec *c))
|
|
Packit Service |
384592 |
DECLARE_HOOK(int,post_read_request,(request_rec *r))
|
|
Packit Service |
384592 |
DECLARE_HOOK(int,fixups,(request_rec *r))
|
|
Packit Service |
384592 |
DECLARE_HOOK(void, error_log, (const char *file, int line, int level,
|
|
Packit Service |
384592 |
apr_status_t status, const server_rec *s,
|
|
Packit Service |
384592 |
const request_rec *r, apr_pool_t *pool,
|
|
Packit Service |
384592 |
const char *errstr))
|
|
Packit Service |
384592 |
DECLARE_HOOK(int,log_transaction,(request_rec *r))
|
|
Packit Service |
384592 |
DECLARE_HOOK(void,insert_filter,(request_rec *r))
|
|
Packit Service |
384592 |
DECLARE_HOOK(void,insert_error_filter,(request_rec *r))
|