Apache HTTPD
Classes | Macros | Typedefs | Functions | Variables
apr_hooks.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "apr_pools.h"
#include "apr_tables.h"
#include "apr.h"
#include "apr_hooks.h"
#include "apr_hash.h"
#include "apr_optional_hooks.h"
#include "apr_optional.h"
#include "apr_want.h"

Go to the source code of this file.

Classes

struct  TSortData
 
struct  tsort_
 
struct  HookSortEntry
 

Macros

#define APR_WANT_MEMFUNC
 
#define APR_WANT_STRFUNC
 

Typedefs

typedef struct tsort_ TSort
 
typedef void apr_HOOK__optional_t(void)
 

Functions

static int crude_order (const void *a_, const void *b_)
 
static TSortprepare (apr_pool_t *p, TSortData *pItems, int nItems)
 
static TSorttsort (TSort *pData, int nItems)
 
static apr_array_header_tsort_hook (apr_array_header_t *pHooks, const char *szName)
 
 APU_DECLARE (void)
 Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC.
 
 APU_DECLARE (APU_DECLARE void)
 
 APU_DECLARE (apr_array_header_t *)
 
 APU_DECLARE (apr_opt_fn_t *)
 
 APU_DECLARE_NONSTD (void)
 

Variables

APU_DECLARE_DATA apr_pool_tapr_hook_global_pool = NULL
 
APU_DECLARE_DATA int apr_hook_debug_enabled = 0
 
APU_DECLARE_DATA const charapr_hook_debug_current = NULL
 
APU_DECLARE_DATA apr_pool_tapr_global_hook_pool = NULL
 
APU_DECLARE_DATA int apr_debug_module_hooks = 0
 
APU_DECLARE_DATA const charapr_current_hooking_module = NULL
 
static apr_array_header_ts_aHooksToSort
 
static apr_hash_ts_phOptionalHooks
 
static apr_hash_ts_phOptionalFunctions
 
 apr_LINK__optional_t
 

Macro Definition Documentation

◆ APR_WANT_MEMFUNC

#define APR_WANT_MEMFUNC

Definition at line 28 of file apr_hooks.c.

◆ APR_WANT_STRFUNC

#define APR_WANT_STRFUNC

Definition at line 29 of file apr_hooks.c.

Typedef Documentation

◆ apr_HOOK__optional_t

typedef void apr_HOOK__optional_t(void)

Definition at line 322 of file apr_hooks.c.

◆ TSort

Function Documentation

◆ APU_DECLARE() [1/4]

APU_DECLARE ( apr_array_header_t )

Definition at line 324 of file apr_hooks.c.

◆ APU_DECLARE() [2/4]

APU_DECLARE ( apr_opt_fn_t )

Definition at line 373 of file apr_hooks.c.

◆ APU_DECLARE() [3/4]

APU_DECLARE ( APU_DECLARE  void)

Definition at line 322 of file apr_hooks.c.

◆ APU_DECLARE() [4/4]

APU_DECLARE ( void  )

Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC.

Return APR-util's version information information in a numeric form.

Parameters
pvsnPointer to a version structure for returning the version information.

Computes SipHash-4-8, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC.

Initialize the SHA digest

Parameters
contextThe SHA context to initialize

Update the SHA digest

Parameters
contextThe SHA1 context to update
inputThe buffer to add to the SHA digest
inputLenThe length of the input buffer

Update the SHA digest with binary data

Parameters
contextThe SHA1 context to update
inputThe buffer to add to the SHA digest
inputLenThe length of the input buffer

Finish computing the SHA digest

Parameters
digestthe output buffer in which to store the digest
contextThe context to finalize
outThe output buffer (or MAC)
srcThe message
lenThe length of the message
keyThe secret key
Returns
The hash value as a 64bit unsigned integer

< use pool pre cleanup

Definition at line 229 of file apr_hooks.c.

◆ crude_order()

static int crude_order ( const void *  a_,
const void *  b_ 
)
static

Definition at line 75 of file apr_hooks.c.

◆ prepare()

static TSort * prepare ( apr_pool_t p,
TSortData pItems,
int  nItems 
)
static

Definition at line 83 of file apr_hooks.c.

◆ sort_hook()

static apr_array_header_t * sort_hook ( apr_array_header_t pHooks,
const char szName 
)
static

Definition at line 188 of file apr_hooks.c.

◆ tsort()

static TSort * tsort ( TSort pData,
int  nItems 
)
static

Definition at line 139 of file apr_hooks.c.

Variable Documentation

◆ apr_current_hooking_module

APU_DECLARE_DATA const char* apr_current_hooking_module = NULL
Deprecated:
See also
apr_hook_debug_current

Definition at line 47 of file apr_hooks.c.

◆ apr_debug_module_hooks

APU_DECLARE_DATA int apr_debug_module_hooks = 0
Deprecated:
See also
apr_hook_debug_enabled

Definition at line 44 of file apr_hooks.c.

◆ apr_global_hook_pool

APU_DECLARE_DATA apr_pool_t* apr_global_hook_pool = NULL
Deprecated:
See also
apr_hook_global_pool

Definition at line 41 of file apr_hooks.c.

◆ apr_LINK__optional_t

apr_LINK__optional_t

Definition at line 322 of file apr_hooks.c.

◆ s_aHooksToSort

apr_array_header_t* s_aHooksToSort
static

Definition at line 220 of file apr_hooks.c.

◆ s_phOptionalFunctions

apr_hash_t* s_phOptionalFunctions
static

Definition at line 263 of file apr_hooks.c.

◆ s_phOptionalHooks

apr_hash_t* s_phOptionalHooks
static

Definition at line 262 of file apr_hooks.c.