Apache HTTPD
Classes | Macros | Enumerations | Functions | Variables
mod_access_compat.c File Reference
#include "apr_strings.h"
#include "apr_network_io.h"
#include "apr_md5.h"
#include "apr_want.h"
#include "ap_config.h"
#include "httpd.h"
#include "http_core.h"
#include "http_config.h"
#include "http_log.h"
#include "http_protocol.h"
#include "http_request.h"
#include "mod_auth.h"

Go to the source code of this file.

Classes

struct  allowdeny
 
struct  access_compat_dir_conf
 

Macros

#define APR_WANT_STRFUNC
 
#define APR_WANT_BYTEFUNC
 
#define DENY_THEN_ALLOW   0
 
#define ALLOW_THEN_DENY   1
 
#define MUTUAL_FAILURE   2
 

Enumerations

enum  allowdeny_type {
  T_ENV , T_NENV , T_ALL , T_IP ,
  T_HOST , T_FAIL
}
 

Functions

static void * create_access_compat_dir_config (apr_pool_t *p, char *dummy)
 
static const charorder (cmd_parms *cmd, void *dv, const char *arg)
 
static const charsatisfy (cmd_parms *cmd, void *dv, const char *arg)
 
static const charallow_cmd (cmd_parms *cmd, void *dv, const char *from, const char *where_c)
 
static int in_domain (const char *domain, const char *what)
 
static int find_allowdeny (request_rec *r, apr_array_header_t *a, int method)
 
static int access_compat_ap_satisfies (request_rec *r)
 
static int check_dir_access (request_rec *r)
 
static void register_hooks (apr_pool_t *p)
 

Variables

static char its_an_allow
 
static const command_rec access_compat_cmds []
 
static int *const aplog_module_index = &( access_compat_module.module_index)
 

Macro Definition Documentation

◆ ALLOW_THEN_DENY

#define ALLOW_THEN_DENY   1

Definition at line 66 of file mod_access_compat.c.

◆ APR_WANT_BYTEFUNC

#define APR_WANT_BYTEFUNC

Definition at line 29 of file mod_access_compat.c.

◆ APR_WANT_STRFUNC

#define APR_WANT_STRFUNC

Definition at line 28 of file mod_access_compat.c.

◆ DENY_THEN_ALLOW

#define DENY_THEN_ALLOW   0

Definition at line 65 of file mod_access_compat.c.

◆ MUTUAL_FAILURE

#define MUTUAL_FAILURE   2

Definition at line 67 of file mod_access_compat.c.

Enumeration Type Documentation

◆ allowdeny_type

Enumerator
T_ENV 
T_NENV 
T_ALL 
T_IP 
T_HOST 
T_FAIL 

Definition at line 46 of file mod_access_compat.c.

Function Documentation

◆ access_compat_ap_satisfies()

static int access_compat_ap_satisfies ( request_rec r)
static

Definition at line 307 of file mod_access_compat.c.

◆ allow_cmd()

static const char * allow_cmd ( cmd_parms cmd,
void *  dv,
const char from,
const char where_c 
)
static

Definition at line 143 of file mod_access_compat.c.

◆ check_dir_access()

static int check_dir_access ( request_rec r)
static

< Module has handled this stage.

< Module has handled this stage.

< Module has handled this stage.

< Module has handled this stage.

Definition at line 315 of file mod_access_compat.c.

◆ create_access_compat_dir_config()

static void * create_access_compat_dir_config ( apr_pool_t p,
char dummy 
)
static

Definition at line 78 of file mod_access_compat.c.

◆ find_allowdeny()

static int find_allowdeny ( request_rec r,
apr_array_header_t a,
int  method 
)
static

Definition at line 242 of file mod_access_compat.c.

◆ in_domain()

static int in_domain ( const char domain,
const char what 
)
static

Definition at line 215 of file mod_access_compat.c.

◆ order()

static const char * order ( cmd_parms cmd,
void *  dv,
const char arg 
)
static

Definition at line 97 of file mod_access_compat.c.

◆ register_hooks()

static void register_hooks ( apr_pool_t p)
static

< Run access control hooks only on internal requests with configurations distinct from that of initial request

Definition at line 359 of file mod_access_compat.c.

◆ satisfy()

static const char * satisfy ( cmd_parms cmd,
void *  dv,
const char arg 
)
static

Definition at line 118 of file mod_access_compat.c.

Variable Documentation

◆ access_compat_cmds

const command_rec access_compat_cmds[]
static
Initial value:
=
{
{ "order" , order , NULL , 1 , TAKE1, "'allow,deny', 'deny,allow', or 'mutual-failure'" },
{ "allow" , allow_cmd , &its_an_allow , 1 , ITERATE2, "'from' followed by hostnames or IP-address wildcards" },
{ "deny" , allow_cmd , NULL , 1 , ITERATE2, "'from' followed by hostnames or IP-address wildcards" },
{ "Satisfy" , satisfy , NULL , 8 , TAKE1, "access policy if both allow and require used ('all' or 'any')" },
{NULL}
}
@ TAKE1
Definition http_config.h:51
@ ITERATE2
Definition http_config.h:56
static const char * satisfy(cmd_parms *cmd, void *dv, const char *arg)
static const char * allow_cmd(cmd_parms *cmd, void *dv, const char *from, const char *where_c)
static char its_an_allow
static const char * order(cmd_parms *cmd, void *dv, const char *arg)
return NULL
Definition mod_so.c:359

Definition at line 202 of file mod_access_compat.c.

◆ aplog_module_index

int* const aplog_module_index = &( access_compat_module.module_index)
static

Definition at line 368 of file mod_access_compat.c.

◆ its_an_allow

char its_an_allow
static

Definition at line 200 of file mod_access_compat.c.