Apache HTTPD
Classes | Macros | Typedefs | Functions | Variables
mod_authn_anon.c File Reference
#include "apr_strings.h"
#include "apr_want.h"
#include "ap_provider.h"
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_log.h"
#include "http_request.h"
#include "http_protocol.h"
#include "mod_auth.h"

Go to the source code of this file.

Classes

struct  anon_auth_user
 
struct  authn_anon_config_rec
 

Macros

#define APR_WANT_STRFUNC
 

Typedefs

typedef struct anon_auth_user anon_auth_user
 

Functions

static void * create_authn_anon_dir_config (apr_pool_t *p, char *d)
 
static const charanon_set_string_slots (cmd_parms *cmd, void *my_config, const char *arg)
 
static authn_status check_anonymous (request_rec *r, const char *user, const char *sent_pw)
 
static void register_hooks (apr_pool_t *p)
 

Variables

static const command_rec authn_anon_cmds []
 
static const authn_provider authn_anon_provider
 
static int *const aplog_module_index = &( authn_anon_module.module_index)
 

Macro Definition Documentation

◆ APR_WANT_STRFUNC

#define APR_WANT_STRFUNC

Definition at line 46 of file mod_authn_anon.c.

Typedef Documentation

◆ anon_auth_user

Function Documentation

◆ anon_set_string_slots()

static const char * anon_set_string_slots ( cmd_parms cmd,
void *  my_config,
const char arg 
)
static

Definition at line 88 of file mod_authn_anon.c.

◆ check_anonymous()

static authn_status check_anonymous ( request_rec r,
const char user,
const char sent_pw 
)
static

Definition at line 135 of file mod_authn_anon.c.

◆ create_authn_anon_dir_config()

static void * create_authn_anon_dir_config ( apr_pool_t p,
char d 
)
static

Definition at line 73 of file mod_authn_anon.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 199 of file mod_authn_anon.c.

Variable Documentation

◆ aplog_module_index

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

Definition at line 206 of file mod_authn_anon.c.

◆ authn_anon_cmds

const command_rec authn_anon_cmds[]
static
Initial value:
=
{
{ "Anonymous" , anon_set_string_slots , NULL , 8 , ITERATE, "a space-separated list of user IDs" },
{ "Anonymous_MustGiveEmail" , ap_set_flag_slot , (void *)((long) (((char *) (&((( authn_anon_config_rec * )NULL)-> mustemail ))) - ((char *) NULL))) , 8 , FLAG, "Limited to 'on' or 'off'" },
{ "Anonymous_NoUserId" , ap_set_flag_slot , (void *)((long) (((char *) (&((( authn_anon_config_rec * )NULL)-> nouserid ))) - ((char *) NULL))) , 8 , FLAG, "Limited to 'on' or 'off'" },
{ "Anonymous_VerifyEmail" , ap_set_flag_slot , (void *)((long) (((char *) (&((( authn_anon_config_rec * )NULL)-> verifyemail ))) - ((char *) NULL))) , 8 , FLAG, "Limited to 'on' or 'off'" },
{ "Anonymous_LogEmail" , ap_set_flag_slot , (void *)((long) (((char *) (&((( authn_anon_config_rec * )NULL)-> logemail ))) - ((char *) NULL))) , 8 , FLAG, "Limited to 'on' or 'off'" },
{NULL}
}
const char * ap_set_flag_slot(cmd_parms *cmd, void *struct_ptr, int arg)
Definition config.c:1512
@ FLAG
Definition http_config.h:59
@ ITERATE
Definition http_config.h:53
static const char * anon_set_string_slots(cmd_parms *cmd, void *my_config, const char *arg)
return NULL
Definition mod_so.c:359

Definition at line 114 of file mod_authn_anon.c.

◆ authn_anon_provider

const authn_provider authn_anon_provider
static
Initial value:
=
{
}
static authn_status check_anonymous(request_rec *r, const char *user, const char *sent_pw)

Definition at line 193 of file mod_authn_anon.c.