Apache HTTPD
Macros | Functions
apr_dbm.c File Reference
#include "apr.h"
#include "apr_dso.h"
#include "apr_hash.h"
#include "apr_errno.h"
#include "apr_pools.h"
#include "apr_strings.h"
#include "apr_want.h"
#include "apr_general.h"
#include "apr_atomic.h"
#include "apu_config.h"
#include "apu.h"
#include "apu_internal.h"
#include "apu_version.h"
#include "apr_dbm_private.h"
#include "apu_select_dbm.h"
#include "apr_dbm.h"

Go to the source code of this file.

Macros

#define APR_WANT_MEMFUNC
 
#define APR_WANT_STRFUNC
 

Functions

static apr_status_t dbm_open_type (apr_dbm_type_t const **vtable, const char *type, apr_pool_t *pool)
 
 APU_DECLARE (apr_status_t)
 
 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 (char *)
 

Macro Definition Documentation

◆ APR_WANT_MEMFUNC

#define APR_WANT_MEMFUNC

Definition at line 23 of file apr_dbm.c.

◆ APR_WANT_STRFUNC

#define APR_WANT_STRFUNC

Definition at line 24 of file apr_dbm.c.

Function Documentation

◆ APU_DECLARE() [1/3]

APU_DECLARE ( int  )

Most DBM libraries take a POSIX mode for creating files. Don't trust the mode_t type, some platforms may not support it, int is safe.

< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.

Definition at line 193 of file apr_dbm.c.

◆ APU_DECLARE() [2/3]

APU_DECLARE ( char )

Definition at line 257 of file apr_dbm.c.

◆ APU_DECLARE() [3/3]

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 215 of file apr_dbm.c.

◆ dbm_open_type()

static apr_status_t dbm_open_type ( apr_dbm_type_t const **  vtable,
const char type,
apr_pool_t pool 
)
static

Definition at line 78 of file apr_dbm.c.