Apache HTTPD
Classes | Macros | Typedefs | Functions | Variables
request.c File Reference
#include "apr_strings.h"
#include "apr_file_io.h"
#include "apr_fnmatch.h"
#include "apr_want.h"
#include "ap_config.h"
#include "ap_provider.h"
#include "httpd.h"
#include "http_config.h"
#include "http_request.h"
#include "http_core.h"
#include "http_protocol.h"
#include "http_log.h"
#include "http_main.h"
#include "util_filter.h"
#include "util_charset.h"
#include "util_script.h"
#include "ap_expr.h"
#include "mod_request.h"
#include "mod_core.h"
#include "mod_auth.h"

Go to the source code of this file.

Classes

struct  walk_walked_t
 
struct  walk_cache_t
 
struct  core_opts_t
 

Macros

#define APR_WANT_STRFUNC
 
#define APLOG_MODULE_INDEX   AP_CORE_MODULE_INDEX
 

Typedefs

typedef struct walk_walked_t walk_walked_t
 
typedef struct walk_cache_t walk_cache_t
 
typedef struct core_opts_t core_opts_t
 

Functions

void ap_hook_pre_translate_name (ap_HOOK_pre_translate_name_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_pre_translate_name (void)
 
int ap_run_pre_translate_name (request_rec *r)
 
void ap_hook_translate_name (ap_HOOK_translate_name_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_translate_name (void)
 
int ap_run_translate_name (request_rec *r)
 
void ap_hook_map_to_storage (ap_HOOK_map_to_storage_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_map_to_storage (void)
 
int ap_run_map_to_storage (request_rec *r)
 
void ap_hook_check_user_id (ap_HOOK_check_user_id_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_check_user_id (void)
 
int ap_run_check_user_id (request_rec *r)
 
void ap_hook_fixups (ap_HOOK_fixups_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_fixups (void)
 
int ap_run_fixups (request_rec *r)
 
void ap_hook_type_checker (ap_HOOK_type_checker_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_type_checker (void)
 
int ap_run_type_checker (request_rec *r)
 
void ap_hook_access_checker (ap_HOOK_access_checker_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_access_checker (void)
 
int ap_run_access_checker (request_rec *r)
 
void ap_hook_access_checker_ex (ap_HOOK_access_checker_ex_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_access_checker_ex (void)
 
int ap_run_access_checker_ex (request_rec *r)
 
void ap_hook_auth_checker (ap_HOOK_auth_checker_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_auth_checker (void)
 
int ap_run_auth_checker (request_rec *r)
 
void ap_hook_insert_filter (ap_HOOK_insert_filter_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_insert_filter (void)
 
void ap_run_insert_filter (request_rec *r)
 
void ap_hook_create_request (ap_HOOK_create_request_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_create_request (void)
 
int ap_run_create_request (request_rec *r)
 
void ap_hook_post_perdir_config (ap_HOOK_post_perdir_config_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_post_perdir_config (void)
 
int ap_run_post_perdir_config (request_rec *r)
 
void ap_hook_dirwalk_stat (ap_HOOK_dirwalk_stat_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_dirwalk_stat (void)
 
apr_status_t ap_run_dirwalk_stat (apr_finfo_t *finfo, request_rec *r, apr_int32_t wanted)
 
void ap_hook_force_authn (ap_HOOK_force_authn_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
apr_array_header_tap_hook_get_force_authn (void)
 
int ap_run_force_authn (request_rec *r)
 
static int decl_die (int status, const char *phase, request_rec *r)
 
int ap_some_authn_required (request_rec *r)
 
static int walk_location_and_if (request_rec *r)
 
int ap_process_request_internal (request_rec *r)
 
static walk_cache_tprep_walk_cache (apr_size_t t, request_rec *r)
 
static int resolve_symlink (char *d, apr_finfo_t *lfi, int opts, apr_pool_t *p)
 
static void core_opts_merge (const ap_conf_vector_t *sec, core_opts_t *opts)
 
int ap_directory_walk (request_rec *r)
 
int ap_location_walk (request_rec *r)
 
int ap_file_walk (request_rec *r)
 
static int ap_if_walk_sub (request_rec *r, core_dir_config *dconf)
 
int ap_if_walk (request_rec *r)
 
static request_recmake_sub_request (const request_rec *r, ap_filter_t *next_filter)
 
apr_status_t ap_sub_req_output_filter (ap_filter_t *f, apr_bucket_brigade *bb)
 
int ap_some_auth_required (request_rec *r)
 
void ap_clear_auth_internal (void)
 
void ap_setup_auth_internal (apr_pool_t *ptemp)
 
apr_status_t ap_register_auth_provider (apr_pool_t *pool, const char *provider_group, const char *provider_name, const char *provider_version, const void *provider, int type)
 
void ap_hook_check_access (ap_HOOK_access_checker_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder, int type)
 
void ap_hook_check_access_ex (ap_HOOK_access_checker_ex_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder, int type)
 
void ap_hook_check_authn (ap_HOOK_check_user_id_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder, int type)
 
void ap_hook_check_authz (ap_HOOK_auth_checker_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder, int type)
 
request_recap_sub_req_method_uri (const char *method, const char *new_uri, const request_rec *r, ap_filter_t *next_filter)
 
request_recap_sub_req_lookup_uri (const char *new_uri, const request_rec *r, ap_filter_t *next_filter)
 
request_recap_sub_req_lookup_dirent (const apr_finfo_t *dirent, const request_rec *r, int subtype, ap_filter_t *next_filter)
 
request_recap_sub_req_lookup_file (const char *new_file, const request_rec *r, ap_filter_t *next_filter)
 
int ap_run_sub_req (request_rec *r)
 
void ap_destroy_sub_req (request_rec *r)
 
void ap_update_mtime (request_rec *r, apr_time_t dependency_mtime)
 
int ap_is_initial_req (request_rec *r)
 

Variables

struct { 
 
   apr_array_header_t *   link_pre_translate_name 
 
   apr_array_header_t *   link_translate_name 
 
   apr_array_header_t *   link_map_to_storage 
 
   apr_array_header_t *   link_check_user_id 
 
   apr_array_header_t *   link_fixups 
 
   apr_array_header_t *   link_type_checker 
 
   apr_array_header_t *   link_access_checker 
 
   apr_array_header_t *   link_access_checker_ex 
 
   apr_array_header_t *   link_auth_checker 
 
   apr_array_header_t *   link_insert_filter 
 
   apr_array_header_t *   link_create_request 
 
   apr_array_header_t *   link_post_perdir_config 
 
   apr_array_header_t *   link_dirwalk_stat 
 
   apr_array_header_t *   link_force_authn 
 
_hooks 
 
static int auth_internal_per_conf = 0
 
static int auth_internal_per_conf_hooks = 0
 
static int auth_internal_per_conf_providers = 0
 
apr_OFN_authz_some_auth_required_tap__authz_ap_some_auth_required
 

Macro Definition Documentation

◆ APLOG_MODULE_INDEX

#define APLOG_MODULE_INDEX   AP_CORE_MODULE_INDEX

Definition at line 59 of file request.c.

◆ APR_WANT_STRFUNC

#define APR_WANT_STRFUNC

Definition at line 32 of file request.c.

Typedef Documentation

◆ core_opts_t

◆ walk_cache_t

◆ walk_walked_t

Function Documentation

◆ ap_if_walk_sub()

static int ap_if_walk_sub ( request_rec r,
core_dir_config dconf 
)
static

< Module has handled this stage.

< Module has handled this stage.

< Module has handled this stage.

Definition at line 1852 of file request.c.

◆ core_opts_merge()

static void core_opts_merge ( const ap_conf_vector_t sec,
core_opts_t opts 
)
static

< bit to indicate that AllowOverride has not been set

Definition at line 614 of file request.c.

◆ decl_die()

static int decl_die ( int  status,
const char phase,
request_rec r 
)
static

< Module declines to handle

Definition at line 112 of file request.c.

◆ make_sub_request()

static request_rec * make_sub_request ( const request_rec r,
ap_filter_t next_filter 
)
static

Definition at line 2015 of file request.c.

◆ prep_walk_cache()

static walk_cache_t * prep_walk_cache ( apr_size_t  t,
request_rec r 
)
static

Definition at line 451 of file request.c.

◆ resolve_symlink()

static int resolve_symlink ( char d,
apr_finfo_t lfi,
int  opts,
apr_pool_t p 
)
static

< ->name in proper case

< ->name in proper case

< Stat the link not the file itself if it is a link

< ->name in proper case

< Module has handled this stage.

< user and group

< Stat the link not the file itself if it is a link

< user and group

< ->name in proper case

< ->name in proper case

< Module has handled this stage.

Definition at line 533 of file request.c.

◆ walk_location_and_if()

static int walk_location_and_if ( request_rec r)
static

< Module has handled this stage.

Definition at line 163 of file request.c.

Variable Documentation

◆ [struct]

struct { ... } _hooks

◆ ap__authz_ap_some_auth_required

apr_OFN_authz_some_auth_required_t* ap__authz_ap_some_auth_required
extern

Definition at line 5056 of file core.c.

◆ auth_internal_per_conf

int auth_internal_per_conf = 0
static

Definition at line 107 of file request.c.

◆ auth_internal_per_conf_hooks

int auth_internal_per_conf_hooks = 0
static

Definition at line 108 of file request.c.

◆ auth_internal_per_conf_providers

int auth_internal_per_conf_providers = 0
static

Definition at line 109 of file request.c.

◆ link_access_checker

apr_array_header_t* link_access_checker

Definition at line 76 of file request.c.

◆ link_access_checker_ex

apr_array_header_t* link_access_checker_ex

Definition at line 76 of file request.c.

◆ link_auth_checker

apr_array_header_t* link_auth_checker

Definition at line 76 of file request.c.

◆ link_check_user_id

apr_array_header_t* link_check_user_id

Definition at line 76 of file request.c.

◆ link_create_request

apr_array_header_t* link_create_request

Definition at line 76 of file request.c.

◆ link_dirwalk_stat

apr_array_header_t* link_dirwalk_stat

Definition at line 76 of file request.c.

◆ link_fixups

apr_array_header_t* link_fixups

Definition at line 76 of file request.c.

◆ link_force_authn

apr_array_header_t* link_force_authn

Definition at line 76 of file request.c.

◆ link_insert_filter

apr_array_header_t* link_insert_filter

Definition at line 76 of file request.c.

◆ link_map_to_storage

apr_array_header_t* link_map_to_storage

Definition at line 76 of file request.c.

◆ link_post_perdir_config

apr_array_header_t* link_post_perdir_config

Definition at line 76 of file request.c.

◆ link_pre_translate_name

apr_array_header_t* link_pre_translate_name

Definition at line 76 of file request.c.

◆ link_translate_name

apr_array_header_t* link_translate_name

Definition at line 76 of file request.c.

◆ link_type_checker

apr_array_header_t* link_type_checker

Definition at line 76 of file request.c.