Back to index

opendkim  2.6.2
Classes | Defines | Typedefs | Functions | Variables
opendkim-db.h File Reference
#include <sys/types.h>
#include <pthread.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dkimf_db_data

Defines

#define DKIMF_DB_FLAG_READONLY   0x0001
#define DKIMF_DB_FLAG_ICASE   0x0002
#define DKIMF_DB_FLAG_MATCHBOTH   0x0004
#define DKIMF_DB_FLAG_VALLIST   0x0008
#define DKIMF_DB_FLAG_USETLS   0x0010
#define DKIMF_DB_FLAG_MAKELOCK   0x0020
#define DKIMF_DB_FLAG_ASCIIONLY   0x0040
#define DKIMF_DB_FLAG_NOFDLOCK   0x0080
#define DKIMF_DB_FLAG_SOFTSTART   0x0100
#define DKIMF_DB_TYPE_UNKNOWN   (-1)
#define DKIMF_DB_TYPE_FILE   0
#define DKIMF_DB_TYPE_REFILE   1
#define DKIMF_DB_TYPE_CSL   2
#define DKIMF_DB_TYPE_BDB   3
#define DKIMF_DB_TYPE_DSN   4
#define DKIMF_DB_TYPE_LDAP   5
#define DKIMF_DB_TYPE_LUA   6
#define DKIMF_DB_TYPE_MEMCACHE   7
#define DKIMF_DB_TYPE_REPUTE   8
#define DKIMF_DB_TYPE_SOCKET   9
#define DKIMF_DB_TYPE_MDB   10
#define DKIMF_DB_TYPE_ERLANG   11
#define DKIMF_LDAP_PARAM_BINDUSER   0
#define DKIMF_LDAP_PARAM_BINDPW   1
#define DKIMF_LDAP_PARAM_AUTHMECH   2
#define DKIMF_LDAP_PARAM_USETLS   3
#define DKIMF_LDAP_PARAM_AUTHREALM   4
#define DKIMF_LDAP_PARAM_AUTHUSER   5
#define DKIMF_LDAP_PARAM_AUTHNAME   6
#define DKIMF_LDAP_PARAM_TIMEOUT   7
#define DKIMF_LDAP_PARAM_KA_IDLE   8
#define DKIMF_LDAP_PARAM_KA_PROBES   9
#define DKIMF_LDAP_PARAM_KA_INTERVAL   10
#define DKIMF_LDAP_PARAM_MAX   10
#define __P(x)   ()
#define DKIMF_DB_DATA_BINARY   0x01 /* data is binary */
#define DKIMF_DB_DATA_OPTIONAL   0x02 /* data is optional */

Typedefs

typedef struct dkimf_dbDKIMF_DB
typedef struct dkimf_db_dataDKIMF_DBDATA

Functions

int dkimf_db_chown __P ((DKIMF_DB, uid_t uid))
int dkimf_db_close __P ((DKIMF_DB))
int dkimf_db_delete __P ((DKIMF_DB, void *, size_t))
int dkimf_db_get __P ((DKIMF_DB, void *, size_t, DKIMF_DBDATA, unsigned int, _Bool *))
int dkimf_db_mkarray __P ((DKIMF_DB, char ***, const char **))
int dkimf_db_open __P ((DKIMF_DB *, char *, u_int flags, pthread_mutex_t *, char **))
int dkimf_db_put __P ((DKIMF_DB, void *, size_t, void *, size_t))
int dkimf_db_rewalk __P ((DKIMF_DB, char *, DKIMF_DBDATA, unsigned int, void **))
void dkimf_db_set_ldap_param __P ((int, char *))
int dkimf_db_strerror __P ((DKIMF_DB, char *, size_t))
int dkimf_db_walk __P ((DKIMF_DB, _Bool, void *, size_t *, DKIMF_DBDATA, unsigned int))

Variables

static char opendkim_db_h_id [] = "@(#)$Id: opendkim-db.h,v 1.15 2010/09/16 04:47:39 cm-msk Exp $"

Class Documentation

struct dkimf_db_data

Definition at line 74 of file opendkim-db.h.

Class Members
char * dbdata_buffer
size_t dbdata_buflen
unsigned int dbdata_flags

Define Documentation

#define __P (   x)    ()

Definition at line 66 of file opendkim-db.h.

#define DKIMF_DB_DATA_BINARY   0x01 /* data is binary */

Definition at line 82 of file opendkim-db.h.

#define DKIMF_DB_DATA_OPTIONAL   0x02 /* data is optional */

Definition at line 83 of file opendkim-db.h.

#define DKIMF_DB_FLAG_ASCIIONLY   0x0040

Definition at line 28 of file opendkim-db.h.

#define DKIMF_DB_FLAG_ICASE   0x0002

Definition at line 23 of file opendkim-db.h.

#define DKIMF_DB_FLAG_MAKELOCK   0x0020

Definition at line 27 of file opendkim-db.h.

#define DKIMF_DB_FLAG_MATCHBOTH   0x0004

Definition at line 24 of file opendkim-db.h.

#define DKIMF_DB_FLAG_NOFDLOCK   0x0080

Definition at line 29 of file opendkim-db.h.

#define DKIMF_DB_FLAG_READONLY   0x0001

Definition at line 22 of file opendkim-db.h.

#define DKIMF_DB_FLAG_SOFTSTART   0x0100

Definition at line 30 of file opendkim-db.h.

#define DKIMF_DB_FLAG_USETLS   0x0010

Definition at line 26 of file opendkim-db.h.

#define DKIMF_DB_FLAG_VALLIST   0x0008

Definition at line 25 of file opendkim-db.h.

#define DKIMF_DB_TYPE_BDB   3

Definition at line 36 of file opendkim-db.h.

#define DKIMF_DB_TYPE_CSL   2

Definition at line 35 of file opendkim-db.h.

#define DKIMF_DB_TYPE_DSN   4

Definition at line 37 of file opendkim-db.h.

#define DKIMF_DB_TYPE_ERLANG   11

Definition at line 44 of file opendkim-db.h.

#define DKIMF_DB_TYPE_FILE   0

Definition at line 33 of file opendkim-db.h.

#define DKIMF_DB_TYPE_LDAP   5

Definition at line 38 of file opendkim-db.h.

#define DKIMF_DB_TYPE_LUA   6

Definition at line 39 of file opendkim-db.h.

#define DKIMF_DB_TYPE_MDB   10

Definition at line 43 of file opendkim-db.h.

#define DKIMF_DB_TYPE_MEMCACHE   7

Definition at line 40 of file opendkim-db.h.

#define DKIMF_DB_TYPE_REFILE   1

Definition at line 34 of file opendkim-db.h.

#define DKIMF_DB_TYPE_REPUTE   8

Definition at line 41 of file opendkim-db.h.

#define DKIMF_DB_TYPE_SOCKET   9

Definition at line 42 of file opendkim-db.h.

#define DKIMF_DB_TYPE_UNKNOWN   (-1)

Definition at line 32 of file opendkim-db.h.

#define DKIMF_LDAP_PARAM_AUTHMECH   2

Definition at line 48 of file opendkim-db.h.

#define DKIMF_LDAP_PARAM_AUTHNAME   6

Definition at line 52 of file opendkim-db.h.

Definition at line 50 of file opendkim-db.h.

#define DKIMF_LDAP_PARAM_AUTHUSER   5

Definition at line 51 of file opendkim-db.h.

#define DKIMF_LDAP_PARAM_BINDPW   1

Definition at line 47 of file opendkim-db.h.

#define DKIMF_LDAP_PARAM_BINDUSER   0

Definition at line 46 of file opendkim-db.h.

#define DKIMF_LDAP_PARAM_KA_IDLE   8

Definition at line 54 of file opendkim-db.h.

Definition at line 56 of file opendkim-db.h.

Definition at line 55 of file opendkim-db.h.

#define DKIMF_LDAP_PARAM_MAX   10

Definition at line 58 of file opendkim-db.h.

#define DKIMF_LDAP_PARAM_TIMEOUT   7

Definition at line 53 of file opendkim-db.h.

#define DKIMF_LDAP_PARAM_USETLS   3

Definition at line 49 of file opendkim-db.h.


Typedef Documentation

typedef struct dkimf_db* DKIMF_DB

Definition at line 72 of file opendkim-db.h.

typedef struct dkimf_db_data* DKIMF_DBDATA

Definition at line 80 of file opendkim-db.h.


Function Documentation

int dkimf_db_chown __P ( (DKIMF_DB, uid_t uid)  )
int dkimf_db_type __P ( (DKIMF_DB )
int dkimf_db_delete __P ( (DKIMF_DB, void *, size_t)  )
int dkimf_db_get __P ( (DKIMF_DB, void *, size_t, DKIMF_DBDATA, unsigned int, _Bool *)  )
int dkimf_db_mkarray __P ( (DKIMF_DB, char ***, const char **)  )
int dkimf_db_open __P ( (DKIMF_DB *, char *, u_int flags, pthread_mutex_t *, char **)  )
int dkimf_db_put __P ( (DKIMF_DB, void *, size_t, void *, size_t)  )
int dkimf_db_rewalk __P ( (DKIMF_DB, char *, DKIMF_DBDATA, unsigned int, void **)  )
void dkimf_db_set_ldap_param __P ( (int, char *)  )
int dkimf_db_strerror __P ( (DKIMF_DB, char *, size_t)  )
int dkimf_db_walk __P ( (DKIMF_DB, _Bool, void *, size_t *, DKIMF_DBDATA, unsigned int)  )

Variable Documentation

char opendkim_db_h_id[] = "@(#)$Id: opendkim-db.h,v 1.15 2010/09/16 04:47:39 cm-msk Exp $" [static]

Definition at line 14 of file opendkim-db.h.