static void geoip_register_hooks(apr_pool_t * p) { /* make sure we run before mod_rewrite's handler */ static const char *const aszSucc[] = { "mod_setenvif.c", "mod_rewrite.c", NULL }; /* we have two entry points, the header_parser hook, right before * the authentication hook used for Dirctory specific enabled geoiplookups * or right before directory rewrite rules. */ ap_hook_header_parser(geoip_per_dir, NULL, aszSucc, APR_HOOK_FIRST); /* and the servectly wide hook, after reading the request. Perfecly * suitable to serve serverwide mod_rewrite actions */ ap_hook_post_read_request(geoip_post_read_request, NULL, aszSucc, APR_HOOK_MIDDLE); /* setup our childs GeoIP database once for every child */ ap_hook_child_init(geoip_child_init, NULL, NULL, APR_HOOK_MIDDLE); /* static const char * const list[]={ "mod_geoip.c", NULL }; */ /* mmap the database(s) into the master process */ ap_hook_post_config(geoip_post_config, NULL, NULL, APR_HOOK_MIDDLE); }
static void register_hooks(apr_pool_t *pool) { int x; x = open_uk_db(); ap_log_perror(APLOG_MARK, APLOG_INFO, 0, 0, "[mod-xenophobic] Processed %d lines from the database\n",x); ap_hook_header_parser(xenophobic_handler, NULL, NULL, APR_HOOK_FIRST); }
static void register_hooks (apr_pool_t *p) { UNUSED(p); ap_hook_post_config (ruid_init, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_child_init (ruid_child_init, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_post_read_request(ruid_setup, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_header_parser(ruid_uiiii, NULL, NULL, APR_HOOK_FIRST); }
static void privileges_hooks(apr_pool_t *pool) { ap_hook_post_read_request(privileges_req, NULL, NULL, APR_HOOK_REALLY_FIRST); ap_hook_header_parser(privileges_req, NULL, NULL, APR_HOOK_REALLY_FIRST); ap_hook_drop_privileges(privileges_drop_first, NULL, NULL, APR_HOOK_FIRST); ap_hook_drop_privileges(privileges_drop_last, NULL, NULL, APR_HOOK_LAST); ap_hook_post_config(privileges_postconf, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_pre_config(privileges_init, NULL, NULL, APR_HOOK_FIRST); }
static void authn_yubikey_register_hooks(apr_pool_t *p) { //static const char *const aszSucc[] = { "mod_authz_user.c", NULL }; //ap_hook_auth_checker(authz_check_yubi_user, NULL, aszSucc, APR_HOOK_MIDDLE); /* No content handler for this one */ //ap_hook_handler(authn_yubikey_handler, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_header_parser(checkInitial, NULL, NULL, APR_HOOK_MIDDLE); ap_register_provider(p, AUTHN_PROVIDER_GROUP, "yubikey", "0", &authn_yubikey_provider); ap_hook_post_config(init_mod_yk, NULL, NULL, APR_HOOK_MIDDLE); }
/* Apace Register Hooks */ static void mod_track_register_hooks (apr_pool_t *p){ //Worth trying this - //ap_hook_quick_handler - called before any request processing, used by cache modules. //After accepting connection ap_hook_pre_connection(log_pre_conn,NULL,NULL,APR_HOOK_FIRST); //Post request read ap_hook_post_read_request(log_post_conn,NULL,NULL,APR_HOOK_LAST); //header parser ap_hook_header_parser(log_header_parser, NULL, NULL, APR_HOOK_MIDDLE); //Hook before output is sent log_output_start_handle = ap_register_output_filter("MOD_TRACK", log_output_start, NULL, AP_FTYPE_CONTENT_SET+1); //cleanup handler ap_hook_access_checker(cleanup_handler, NULL, NULL, APR_HOOK_LAST); }
static void register_hooks(apr_pool_t *p) { ap_hook_header_parser(wurfl_match_headers, NULL, NULL, APR_HOOK_MIDDLE); }
/* Apache callback to register our hooks. */ static void defender_register_hooks(apr_pool_t *) { ap_hook_post_config(post_config, NULL, NULL, APR_HOOK_REALLY_FIRST); static const char *const aszSucc[] = {"mod_security2.c", NULL}; ap_hook_header_parser(header_parser, NULL, aszSucc, APR_HOOK_REALLY_FIRST - 20); ap_hook_fixups(fixups, NULL, aszSucc, APR_HOOK_REALLY_FIRST - 20); }
static void register_hooks(apr_pool_t *p) { static const char * const aszPost[] = { "mod_setenvif.c", NULL }; ap_hook_header_parser(range_handler, NULL, aszPost, APR_HOOK_MIDDLE); }