Apache HTTPD
Classes | Macros | Functions | Variables
mod_authn_file.c File Reference
#include "apr_strings.h"
#include "apr_md5.h"
#include "ap_config.h"
#include "ap_provider.h"
#include "httpd.h"
#include "http_config.h"
#include "http_core.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  authn_file_config_rec
 

Macros

#define AUTHN_CACHE_STORE(r, user, realm, data)
 

Functions

static void * create_authn_file_dir_config (apr_pool_t *p, char *d)
 
static authn_status check_password (request_rec *r, const char *user, const char *password)
 
static authn_status get_realm_hash (request_rec *r, const char *user, const char *realm, char **rethash)
 
static void opt_retr (void)
 
static void register_hooks (apr_pool_t *p)
 

Variables

static apr_OFN_ap_authn_cache_store_tauthn_cache_store = NULL
 
static const command_rec authn_file_cmds []
 
static const authn_provider authn_file_provider
 
static int *const aplog_module_index = &( authn_file_module.module_index)
 

Macro Definition Documentation

◆ AUTHN_CACHE_STORE

#define AUTHN_CACHE_STORE (   r,
  user,
  realm,
  data 
)
Value:
authn_cache_store((r), "file", (user), (realm), (data))
request_rec * r
apr_size_t size
void * data
static apr_OFN_ap_authn_cache_store_t * authn_cache_store
return NULL
Definition mod_so.c:359

Definition at line 36 of file mod_authn_file.c.

Function Documentation

◆ check_password()

static authn_status check_password ( request_rec r,
const char user,
const char password 
)
static

Definition at line 58 of file mod_authn_file.c.

◆ create_authn_file_dir_config()

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

Definition at line 40 of file mod_authn_file.c.

◆ get_realm_hash()

static authn_status get_realm_hash ( request_rec r,
const char user,
const char realm,
char **  rethash 
)
static

Definition at line 113 of file mod_authn_file.c.

◆ opt_retr()

static void opt_retr ( void  )
static

Definition at line 173 of file mod_authn_file.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 177 of file mod_authn_file.c.

Variable Documentation

◆ aplog_module_index

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

Definition at line 185 of file mod_authn_file.c.

◆ authn_cache_store

apr_OFN_ap_authn_cache_store_t* authn_cache_store = NULL
static

Definition at line 35 of file mod_authn_file.c.

◆ authn_file_cmds

const command_rec authn_file_cmds[]
static
Initial value:
=
{
{ "AuthUserFile" , ap_set_file_slot , (void *)((long) (((char *) (&((( authn_file_config_rec * )NULL)-> pwfile ))) - ((char *) NULL))) , 8 , TAKE1, "text file containing user IDs and passwords" },
{NULL}
}
const char * ap_set_file_slot(cmd_parms *cmd, void *struct_ptr, const char *arg)
Definition config.c:1535
@ TAKE1
Definition http_config.h:51

Definition at line 48 of file mod_authn_file.c.

◆ authn_file_provider

const authn_provider authn_file_provider
static
Initial value:
=
{
}
static authn_status get_realm_hash(request_rec *r, const char *user, const char *realm, char **rethash)
static authn_status check_password(request_rec *r, const char *user, const char *password)

Definition at line 167 of file mod_authn_file.c.