MCPcopy Create free account
hub / github.com/apache/httpd / ap_proxy_ftp_register_hook

Function ap_proxy_ftp_register_hook

modules/proxy/mod_proxy_ftp.c:2087–2098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2085}
2086
2087static void ap_proxy_ftp_register_hook(apr_pool_t *p)
2088{
2089 /* hooks */
2090 proxy_hook_scheme_handler(proxy_ftp_handler, NULL, NULL, APR_HOOK_MIDDLE);
2091 proxy_hook_canon_handler(proxy_ftp_canon, NULL, NULL, APR_HOOK_MIDDLE);
2092 /* filters */
2093 ap_register_output_filter("PROXY_SEND_DIR", proxy_send_dir_filter,
2094 NULL, AP_FTYPE_RESOURCE);
2095 /* Compile the output format of "ls -s1" as a fallback for non-unix ftp listings */
2096 ls_regex = ap_pregcomp(p, LS_REG_PATTERN, AP_REG_EXTENDED);
2097 ap_assert(ls_regex != NULL);
2098}
2099
2100static const command_rec proxy_ftp_cmds[] =
2101{

Callers

nothing calls this directly

Calls 2

ap_pregcompFunction · 0.85

Tested by

no test coverage detected