Apache HTTPD
Classes | Typedefs | Functions | Variables
mod_log_forensic.c File Reference
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
#include "apr_strings.h"
#include "apr_atomic.h"
#include "http_protocol.h"
#include "test_char.h"

Go to the source code of this file.

Classes

struct  fcfg
 
struct  hlog
 

Typedefs

typedef struct fcfg fcfg
 
typedef struct hlog hlog
 

Functions

static void * make_forensic_log_scfg (apr_pool_t *p, server_rec *s)
 
static void * merge_forensic_log_scfg (apr_pool_t *p, void *parent, void *new)
 
static int open_log (server_rec *s, apr_pool_t *p)
 
static int log_init (apr_pool_t *pc, apr_pool_t *p, apr_pool_t *pt, server_rec *s)
 
static charlog_escape (char *q, const char *e, const char *p)
 
static apr_size_t count_string (const char *p)
 
static int count_headers (void *h_, const char *key, const char *value)
 
static int log_headers (void *h_, const char *key, const char *value)
 
static int log_before (request_rec *r)
 
static int log_after (request_rec *r)
 
static const charset_forensic_log (cmd_parms *cmd, void *dummy, const char *fn)
 
static void register_hooks (apr_pool_t *p)
 

Variables

static apr_uint32_t next_id
 
static const command_rec forensic_log_cmds []
 
static int *const aplog_module_index = &( log_forensic_module.module_index)
 

Typedef Documentation

◆ fcfg

◆ hlog

Function Documentation

◆ count_headers()

static int count_headers ( void *  h_,
const char key,
const char value 
)
static

Definition at line 159 of file mod_log_forensic.c.

◆ count_string()

static apr_size_t count_string ( const char p)
static

Definition at line 149 of file mod_log_forensic.c.

◆ log_after()

static int log_after ( request_rec r)
static

< Module declines to handle

< Module has handled this stage.

Definition at line 233 of file mod_log_forensic.c.

◆ log_before()

static int log_before ( request_rec r)
static

< Module declines to handle

< Module has handled this stage.

Definition at line 182 of file mod_log_forensic.c.

◆ log_escape()

static char * log_escape ( char q,
const char e,
const char p 
)
static

Definition at line 122 of file mod_log_forensic.c.

◆ log_headers()

static int log_headers ( void *  h_,
const char key,
const char value 
)
static

Definition at line 168 of file mod_log_forensic.c.

◆ log_init()

static int log_init ( apr_pool_t pc,
apr_pool_t p,
apr_pool_t pt,
server_rec s 
)
static

< Module has handled this stage.

Definition at line 106 of file mod_log_forensic.c.

◆ make_forensic_log_scfg()

static void * make_forensic_log_scfg ( apr_pool_t p,
server_rec s 
)
static

Definition at line 49 of file mod_log_forensic.c.

◆ merge_forensic_log_scfg()

static void * merge_forensic_log_scfg ( apr_pool_t p,
void *  parent,
void *  new 
)
static

Definition at line 59 of file mod_log_forensic.c.

◆ open_log()

static int open_log ( server_rec s,
apr_pool_t p 
)
static

< Open the file for writing

<

Deprecated:
See also
APR_FOPEN_WRITE

< Append to the end of the file

<

Deprecated:
See also
APR_FOPEN_APPEND

< Create the file if not there

<

Deprecated:
See also
APR_FOPEN_CREATE

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

Definition at line 71 of file mod_log_forensic.c.

◆ register_hooks()

static void register_hooks ( apr_pool_t p)
static

Definition at line 271 of file mod_log_forensic.c.

◆ set_forensic_log()

static const char * set_forensic_log ( cmd_parms cmd,
void *  dummy,
const char fn 
)
static

Definition at line 255 of file mod_log_forensic.c.

Variable Documentation

◆ aplog_module_index

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

Definition at line 280 of file mod_log_forensic.c.

◆ forensic_log_cmds

const command_rec forensic_log_cmds[]
static
Initial value:
=
{
{ "ForensicLog" , set_forensic_log , NULL , 128 , TAKE1, "the filename of the forensic log" },
{ NULL }
}
@ TAKE1
Definition http_config.h:51
static const char * set_forensic_log(cmd_parms *cmd, void *dummy, const char *fn)
return NULL
Definition mod_so.c:359

Definition at line 264 of file mod_log_forensic.c.

◆ next_id

apr_uint32_t next_id
static

Definition at line 47 of file mod_log_forensic.c.