Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

Configuration Block and Directive Handlers


Functions

void * macs_apxs_svrcfg_init (pool *, server_rec *)
 Server config block init.

void * macs_apxs_dircfg_init (pool *, char *)
 Directory config block init.

int macs_apxs_dirmerge_cb (void *tablev, const char *header, const char *value)
 An ap_table_do (Apache API) callback function.

void * macs_apxs_dircfg_merge (pool *, void *, void *)
 Propagates configuration down URL hierarchy.

const char * macs_apxs_cfdirective (cmd_parms *, void *, const char *)
 Configuration file directive handler.

const char * macs_apxs_secure_dir (cmd_parms *, void *, int)
 Secure directory directive handler.

const char * macs_apxs_map_element (cmd_parms *, void *, const char *, const char *, const char *)
 Configure profile elements to expose.

const char * macs_apxs_map_resource (cmd_parms *, void *, const char *)
 (un)map this location to a MACS resource

const char * macs_apxs_authorize_dir (cmd_parms *, void *, int)
 Set authorization enforcement at this location (or not).

char * macs_apxs_itoa (long int)
 Converts a number to a string.


Detailed Description

The routines handle directives from the Apache configuration files, and the creation of blank server and per-directory configuration blocks for the whole module.

Function Documentation

void* macs_apxs_svrcfg_init pool *    p,
server_rec *    s
 

Server config block init.

Initialize the server configuration data (macs_apxs_cfg) to blanks at server startup.

void* macs_apxs_dircfg_init pool *    p,
char *    dir
 

Directory config block init.

Initializes the per-directory configuration data (macs_apxs_dir_cfg) to blanks at request startup.

int macs_apxs_dirmerge_cb void *    tablev,
const char *    header,
const char *    value
 

An ap_table_do (Apache API) callback function.

As used in macs_apxs_dircfg_merge, adds exposures in the parent to the child, or clears all exposures of an element if it's been explicitly cleared in the child.

void* macs_apxs_dircfg_merge pool *    p,
void *    base,
void *    new
 

Propagates configuration down URL hierarchy.

Merges the per-directory configuration of a parent into the child, which has been initialized and handled as per configuration directives in it.

const char* macs_apxs_cfdirective cmd_parms *    parms,
void *    mconfig,
const char *    cfname
 

Configuration file directive handler.

This handler is called by Apache when the MACSConfig directive is encountered. The MACS Client C API will be initialized from the named configuration file.

const char* macs_apxs_secure_dir cmd_parms *    parms,
void *    mconfig,
int    s
 

Secure directory directive handler.

This handler is called by Apache when the MACSAuthenticate directive is encountered in the Apache configuration file. The directory's configuration block (macs_apxs_dir_cfg) will be set based on the directive's boolean parameter.

const char* macs_apxs_map_element cmd_parms *    parms,
void *    mconfig,
const char *    header,
const char *    ns,
const char *    res
 

Configure profile elements to expose.

Expose this element as this request-header, or clear its exposure.

const char* macs_apxs_map_resource cmd_parms *    parms,
void *    mconfig,
const char *    resource
 

(un)map this location to a MACS resource

This function is called to handle MacsResource directives in the Apache configuration files.

const char* macs_apxs_authorize_dir cmd_parms *    parms,
void *    mconfig,
int    s
 

Set authorization enforcement at this location (or not).

This function is called to handle MacsAuthorize directives in the Apache configuration files.

char* macs_apxs_itoa long int    num
 

Converts a number to a string.

Parameters:
num  the number to convert
Returns:
The converted string. free() it.
This routine is a utility function that doesn't really belong anywhere. It's been put in this part of the module for no good reason.


Generated on Tue Oct 8 22:15:54 2002 for MACS Apache Client Module by doxygen1.2.16