Back to index

opendkim  2.6.6
Defines | Typedefs | Functions | Variables
rbl.h File Reference
#include <sys/types.h>
#include <sys/time.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define RBL_DEFTIMEOUT   5
#define RBL_MAXHOSTNAMELEN   256
#define RBL_MAXERRORSTRING   256
#define RBL_STAT_ERROR   (-1)
#define RBL_STAT_OK   0
#define RBL_STAT_INVALID   1
#define RBL_STAT_DNSERROR   2
#define RBL_STAT_NORESOURCE   3
#define RBL_STAT_NOTIMPLEMENT   4
#define RBL_STAT_NOTFOUND   5
#define RBL_STAT_FOUND   6 /* reply available */
#define RBL_STAT_NOREPLY   7 /* reply not available (yet) */
#define RBL_STAT_EXPIRED   8 /* no reply, query expired */
#define RBL_DNS_ERROR   (-1) /* error in transit */
#define RBL_DNS_SUCCESS   0 /* reply available */
#define RBL_DNS_NOREPLY   1 /* reply not available (yet) */
#define RBL_DNS_EXPIRED   2 /* no reply, query expired */

Typedefs

typedef int RBL_STAT
typedef struct rbl_handle

Functions

RBL *rbl_init __P ((void *(*caller_mallocf)(void *closure, size_t nbytes), void(*caller_freef)(void *closure, void *p), void *closure))
void rbl_close __P ((RBL *))
void rbl_setdomain __P ((RBL *, u_char *))
RBL_STAT rbl_query_start __P ((RBL *, u_char *, void **))
RBL_STAT rbl_query_check __P ((RBL *, void *, struct timeval *, uint32_t *))
RBL_STAT rbl_query_cancel __P ((RBL *, void *))
void rbl_settimeout __P ((RBL *, u_int))
void rbl_setdnscallback __P ((RBL *rbl, void(*func)(const void *context)))
void rbl_dns_set_query_start __P ((RBL *, int(*)(void *, int, unsigned char *, unsigned char *, size_t, void **)))
void rbl_dns_set_query_cancel __P ((RBL *, int(*)(void *, void *)))
void rbl_dns_set_query_waitreply __P ((RBL *, int(*)(void *, void *, struct timeval *, size_t *, int *, int *)))

Variables

static char rbl_h_id [] = "$Id$"

Define Documentation

#define RBL_DEFTIMEOUT   5

Definition at line 20 of file rbl.h.

#define RBL_DNS_ERROR   (-1) /* error in transit */

Definition at line 39 of file rbl.h.

#define RBL_DNS_EXPIRED   2 /* no reply, query expired */

Definition at line 42 of file rbl.h.

#define RBL_DNS_NOREPLY   1 /* reply not available (yet) */

Definition at line 41 of file rbl.h.

#define RBL_DNS_SUCCESS   0 /* reply available */

Definition at line 40 of file rbl.h.

#define RBL_MAXERRORSTRING   256

Definition at line 22 of file rbl.h.

#define RBL_MAXHOSTNAMELEN   256

Definition at line 21 of file rbl.h.

#define RBL_STAT_DNSERROR   2

Definition at line 30 of file rbl.h.

#define RBL_STAT_ERROR   (-1)

Definition at line 27 of file rbl.h.

#define RBL_STAT_EXPIRED   8 /* no reply, query expired */

Definition at line 36 of file rbl.h.

#define RBL_STAT_FOUND   6 /* reply available */

Definition at line 34 of file rbl.h.

#define RBL_STAT_INVALID   1

Definition at line 29 of file rbl.h.

#define RBL_STAT_NOREPLY   7 /* reply not available (yet) */

Definition at line 35 of file rbl.h.

#define RBL_STAT_NORESOURCE   3

Definition at line 31 of file rbl.h.

#define RBL_STAT_NOTFOUND   5

Definition at line 33 of file rbl.h.

#define RBL_STAT_NOTIMPLEMENT   4

Definition at line 32 of file rbl.h.

#define RBL_STAT_OK   0

Definition at line 28 of file rbl.h.


Typedef Documentation

typedef struct rbl_handle

Definition at line 46 of file rbl.h.

typedef int RBL_STAT

Definition at line 25 of file rbl.h.


Function Documentation

RBL* rbl_init __P ( (void *(*caller_mallocf)(void *closure, size_t nbytes), void(*caller_freef)(void *closure, void *p), void *closure)  )
const u_char *rbl_geterror __P ( (RBL *)  )
void rbl_setdomain __P ( (RBL *, u_char *)  )
RBL_STAT rbl_query_start __P ( (RBL *, u_char *, void **)  )
RBL_STAT rbl_query_check __P ( (RBL *, void *, struct timeval *, uint32_t *)  )
void *rbl_dns_set_query_service __P ( (RBL *, void *)  )
void rbl_setcallbackint __P ( (RBL *, u_int)  )
void rbl_setdnscallback __P ( (RBL *rbl, void(*func)(const void *context))  )
void rbl_dns_set_query_start __P ( (RBL *, int(*)(void *, int, unsigned char *, unsigned char *, size_t, void **))  )
void rbl_dns_set_query_cancel __P ( (RBL *, int(*)(void *, void *))  )
void rbl_dns_set_query_waitreply __P ( (RBL *, int(*)(void *, void *, struct timeval *, size_t *, int *, int *))  )

Variable Documentation

char rbl_h_id[] = "$Id$" [static]

Definition at line 9 of file rbl.h.