Back to index

opendkim  2.6.6
Classes | Defines | Typedefs | Functions | Variables
dkim.h File Reference
#include <sys/types.h>
#include <sys/param.h>
#include <sys/time.h>
#include <inttypes.h>

Go to the source code of this file.

Classes

struct  dkim_hdrdiff

Defines

#define OPENDKIM_LIB_VERSION   0x02060600
#define __P(x)   ()
#define DKIM_ATPSTAG   "atps" /* ATPS tag name */
#define DKIM_ATPSHTAG   "atpsh" /* ATPS tag name */
#define DKIM_HDRMARGIN   75 /* "standard" header margin */
#define DKIM_MAXHEADER   4096 /* buffer for caching one header */
#define DKIM_MAXHOSTNAMELEN   256 /* max. FQDN we support */
#define DKIM_REPORTTAG   "r" /* DKIM reporting request tag */
#define DKIM_REPORTTAGVAL   "y" /* DKIM reporting request tag value */
#define DKIM_SIGNHEADER   "DKIM-Signature"
#define DKIM_DNSKEYNAME   "_domainkey"
#define DKIM_DNSPOLICYNAME   "_adsp" /* reserved DNS sub-zone */
#define DKIM_SIG_CHECK(x)   ((dkim_sig_getflags((x)) & DKIM_SIGFLAG_PASSED != 0) && (dkim_sig_getbh((x)) == DKIM_SIGBH_MATCH))
#define DKIM_STAT_OK   0 /* function completed successfully */
#define DKIM_STAT_BADSIG   1 /* signature available but failed */
#define DKIM_STAT_NOSIG   2 /* no signature available */
#define DKIM_STAT_NOKEY   3 /* public key not found */
#define DKIM_STAT_CANTVRFY   4 /* can't get domain key to verify */
#define DKIM_STAT_SYNTAX   5 /* message is not valid syntax */
#define DKIM_STAT_NORESOURCE   6 /* resource unavailable */
#define DKIM_STAT_INTERNAL   7 /* internal error */
#define DKIM_STAT_REVOKED   8 /* key found, but revoked */
#define DKIM_STAT_INVALID   9 /* invalid function parameter */
#define DKIM_STAT_NOTIMPLEMENT   10 /* function not implemented */
#define DKIM_STAT_KEYFAIL   11 /* key retrieval failed */
#define DKIM_STAT_CBREJECT   12 /* callback requested reject */
#define DKIM_STAT_CBINVALID   13 /* callback gave invalid result */
#define DKIM_STAT_CBTRYAGAIN   14 /* callback says try again later */
#define DKIM_STAT_CBERROR   15 /* callback error */
#define DKIM_STAT_MULTIDNSREPLY   16 /* multiple DNS replies */
#define DKIM_CBSTAT_CONTINUE   0 /* continue */
#define DKIM_CBSTAT_REJECT   1 /* reject */
#define DKIM_CBSTAT_TRYAGAIN   2 /* try again later */
#define DKIM_CBSTAT_NOTFOUND   3 /* requested record not found */
#define DKIM_CBSTAT_ERROR   4 /* error requesting record */
#define DKIM_SIGERROR_UNKNOWN   (-1) /* unknown error */
#define DKIM_SIGERROR_OK   0 /* no error */
#define DKIM_SIGERROR_VERSION   1 /* unsupported version */
#define DKIM_SIGERROR_DOMAIN   2 /* invalid domain (d=/i=) */
#define DKIM_SIGERROR_EXPIRED   3 /* signature expired */
#define DKIM_SIGERROR_FUTURE   4 /* signature in the future */
#define DKIM_SIGERROR_TIMESTAMPS   5 /* x= < t= */
#define DKIM_SIGERROR_UNUSED   6 /* OBSOLETE */
#define DKIM_SIGERROR_INVALID_HC   7 /* c= invalid (header) */
#define DKIM_SIGERROR_INVALID_BC   8 /* c= invalid (body) */
#define DKIM_SIGERROR_MISSING_A   9 /* a= missing */
#define DKIM_SIGERROR_INVALID_A   10 /* a= invalid */
#define DKIM_SIGERROR_MISSING_H   11 /* h= missing */
#define DKIM_SIGERROR_INVALID_L   12 /* l= invalid */
#define DKIM_SIGERROR_INVALID_Q   13 /* q= invalid */
#define DKIM_SIGERROR_INVALID_QO   14 /* q= option invalid */
#define DKIM_SIGERROR_MISSING_D   15 /* d= missing */
#define DKIM_SIGERROR_EMPTY_D   16 /* d= empty */
#define DKIM_SIGERROR_MISSING_S   17 /* s= missing */
#define DKIM_SIGERROR_EMPTY_S   18 /* s= empty */
#define DKIM_SIGERROR_MISSING_B   19 /* b= missing */
#define DKIM_SIGERROR_EMPTY_B   20 /* b= empty */
#define DKIM_SIGERROR_CORRUPT_B   21 /* b= corrupt */
#define DKIM_SIGERROR_NOKEY   22 /* no key found in DNS */
#define DKIM_SIGERROR_DNSSYNTAX   23 /* DNS reply corrupt */
#define DKIM_SIGERROR_KEYFAIL   24 /* DNS query failed */
#define DKIM_SIGERROR_MISSING_BH   25 /* bh= missing */
#define DKIM_SIGERROR_EMPTY_BH   26 /* bh= empty */
#define DKIM_SIGERROR_CORRUPT_BH   27 /* bh= corrupt */
#define DKIM_SIGERROR_BADSIG   28 /* signature mismatch */
#define DKIM_SIGERROR_SUBDOMAIN   29 /* unauthorized subdomain */
#define DKIM_SIGERROR_MULTIREPLY   30 /* multiple records returned */
#define DKIM_SIGERROR_EMPTY_H   31 /* h= empty */
#define DKIM_SIGERROR_INVALID_H   32 /* h= missing req'd entries */
#define DKIM_SIGERROR_TOOLARGE_L   33 /* l= value exceeds body size */
#define DKIM_SIGERROR_MBSFAILED   34 /* "must be signed" failure */
#define DKIM_SIGERROR_KEYVERSION   35 /* unknown key version */
#define DKIM_SIGERROR_KEYUNKNOWNHASH   36 /* unknown key hash */
#define DKIM_SIGERROR_KEYHASHMISMATCH   37 /* sig-key hash mismatch */
#define DKIM_SIGERROR_NOTEMAILKEY   38 /* not an e-mail key */
#define DKIM_SIGERROR_UNUSED2   39 /* OBSOLETE */
#define DKIM_SIGERROR_KEYTYPEMISSING   40 /* key type missing */
#define DKIM_SIGERROR_KEYTYPEUNKNOWN   41 /* key type unknown */
#define DKIM_SIGERROR_KEYREVOKED   42 /* key revoked */
#define DKIM_SIGERROR_KEYDECODE   43 /* key couldn't be decoded */
#define DKIM_SIGERROR_MISSING_V   44 /* v= tag missing */
#define DKIM_SIGERROR_EMPTY_V   45 /* v= tag empty */
#define DKIM_DNS_ERROR   (-1) /* error in transit */
#define DKIM_DNS_SUCCESS   0 /* reply available */
#define DKIM_DNS_NOREPLY   1 /* reply not available (yet) */
#define DKIM_DNS_EXPIRED   2 /* no reply, query expired */
#define DKIM_CANON_UNKNOWN   (-1) /* unknown method */
#define DKIM_CANON_SIMPLE   0 /* as specified in DKIM spec */
#define DKIM_CANON_RELAXED   1 /* as specified in DKIM spec */
#define DKIM_CANON_DEFAULT   DKIM_CANON_SIMPLE
#define DKIM_SIGN_UNKNOWN   (-2) /* unknown method */
#define DKIM_SIGN_DEFAULT   (-1) /* use internal default */
#define DKIM_SIGN_RSASHA1   0 /* an RSA-signed SHA1 digest */
#define DKIM_SIGN_RSASHA256   1 /* an RSA-signed SHA256 digest */
#define DKIM_QUERY_UNKNOWN   (-1) /* unknown method */
#define DKIM_QUERY_DNS   0 /* DNS query method (per the draft) */
#define DKIM_QUERY_FILE   1 /* text file method (for testing) */
#define DKIM_QUERY_DEFAULT   DKIM_QUERY_DNS
#define DKIM_PARAM_UNKNOWN   (-1) /* unknown */
#define DKIM_PARAM_SIGNATURE   0 /* b */
#define DKIM_PARAM_SIGNALG   1 /* a */
#define DKIM_PARAM_DOMAIN   2 /* d */
#define DKIM_PARAM_CANONALG   3 /* c */
#define DKIM_PARAM_QUERYMETHOD   4 /* q */
#define DKIM_PARAM_SELECTOR   5 /* s */
#define DKIM_PARAM_HDRLIST   6 /* h */
#define DKIM_PARAM_VERSION   7 /* v */
#define DKIM_PARAM_IDENTITY   8 /* i */
#define DKIM_PARAM_TIMESTAMP   9 /* t */
#define DKIM_PARAM_EXPIRATION   10 /* x */
#define DKIM_PARAM_COPIEDHDRS   11 /* z */
#define DKIM_PARAM_BODYHASH   12 /* bh */
#define DKIM_PARAM_BODYLENGTH   13 /* l */
#define DKIM_POLICY_NONE   (-1) /* none/undefined */
#define DKIM_POLICY_UNKNOWN   0 /* unknown */
#define DKIM_POLICY_ALL   1 /* all */
#define DKIM_POLICY_DISCARDABLE   2 /* discardable */
#define DKIM_POLICY_DEFAULT   DKIM_POLICY_UNKNOWN
#define DKIM_POLICY_DEFAULTTXT   "dkim=unknown"
#define DKIM_PRESULT_NONE   (-1) /* none/undefined */
#define DKIM_PRESULT_NXDOMAIN   0 /* domain does not exist */
#define DKIM_PRESULT_FOUND   1 /* ADSP query succeeded */
#define DKIM_MODE_UNKNOWN   (-1)
#define DKIM_MODE_SIGN   0
#define DKIM_MODE_VERIFY   1
#define DKIM_OP_GETOPT   0
#define DKIM_OP_SETOPT   1
#define DKIM_OPTS_FLAGS   0
#define DKIM_OPTS_TMPDIR   1
#define DKIM_OPTS_TIMEOUT   2
#define DKIM_OPTS_SENDERHDRS   3
#define DKIM_OPTS_SIGNHDRS   4
#define DKIM_OPTS_OVERSIGNHDRS   5
#define DKIM_OPTS_QUERYMETHOD   6
#define DKIM_OPTS_QUERYINFO   7
#define DKIM_OPTS_FIXEDTIME   8
#define DKIM_OPTS_SKIPHDRS   9
#define DKIM_OPTS_ALWAYSHDRS   10
#define DKIM_OPTS_SIGNATURETTL   11
#define DKIM_OPTS_CLOCKDRIFT   12
#define DKIM_OPTS_MUSTBESIGNED   13
#define DKIM_LIBFLAGS_NONE   0x0000
#define DKIM_LIBFLAGS_TMPFILES   0x0001
#define DKIM_LIBFLAGS_KEEPFILES   0x0002
#define DKIM_LIBFLAGS_SIGNLEN   0x0004
#define DKIM_LIBFLAGS_CACHE   0x0008
#define DKIM_LIBFLAGS_ZTAGS   0x0010
#define DKIM_LIBFLAGS_DELAYSIGPROC   0x0020
#define DKIM_LIBFLAGS_EOHCHECK   0x0040
#define DKIM_LIBFLAGS_ACCEPTV05   0x0080
#define DKIM_LIBFLAGS_FIXCRLF   0x0100
#define DKIM_LIBFLAGS_ACCEPTDK   0x0200
#define DKIM_LIBFLAGS_BADSIGHANDLES   0x0400
#define DKIM_LIBFLAGS_VERIFYONE   0x0800
#define DKIM_LIBFLAGS_STRICTHDRS   0x1000
#define DKIM_LIBFLAGS_REPORTBADADSP   0x2000
#define DKIM_LIBFLAGS_DROPSIGNER   0x4000
#define DKIM_LIBFLAGS_DEFAULT   DKIM_LIBFLAGS_NONE
#define DKIM_PFLAG_UNUSED1   0x01 /* no longer used */
#define DKIM_PFLAG_UNUSED2   0x02 /* no longer used */
#define DKIM_DNSSEC_UNKNOWN   (-1)
#define DKIM_DNSSEC_BOGUS   0
#define DKIM_DNSSEC_INSECURE   1
#define DKIM_DNSSEC_SECURE   2
#define DKIM_ATPS_UNKNOWN   (-1)
#define DKIM_ATPS_NOTFOUND   0
#define DKIM_ATPS_FOUND   1
#define DKIM_SIGFLAG_IGNORE   0x01
#define DKIM_SIGFLAG_PROCESSED   0x02
#define DKIM_SIGFLAG_PASSED   0x04
#define DKIM_SIGFLAG_TESTKEY   0x08
#define DKIM_SIGFLAG_NOSUBDOMAIN   0x10
#define DKIM_SIGFLAG_KEYLOADED   0x20
#define DKIM_SIGBH_UNTESTED   (-1)
#define DKIM_SIGBH_MATCH   0
#define DKIM_SIGBH_MISMATCH   1
#define DKIM_FEATURE_DIFFHEADERS   0
#define DKIM_FEATURE_DKIM_REPUTATION   1
#define DKIM_FEATURE_PARSE_TIME   2
#define DKIM_FEATURE_QUERY_CACHE   3
#define DKIM_FEATURE_SHA256   4
#define DKIM_FEATURE_OVERSIGN   5
#define DKIM_FEATURE_DNSSEC   6
#define DKIM_FEATURE_RESIGN   7
#define DKIM_FEATURE_ATPS   8
#define DKIM_FEATURE_XTAGS   9
#define DKIM_FEATURE_MAX   9

Typedefs

typedef int DKIM_STAT
typedef int DKIM_CBSTAT
typedef int DKIM_SIGERROR
typedef int dkim_canon_t
typedef int dkim_alg_t
typedef int dkim_query_t
typedef int dkim_param_t
typedef int dkim_policy_t
typedef int dkim_opt_t
typedef int dkim_opts_t
typedef int dkim_atps_t
typedef struct dkim_lib
typedef struct dkim
typedef unsigned char * dkim_sigkey_t
typedef struct dkim_siginfo
typedef struct dkim_queryinfo
typedef struct dkim_pstate

Functions

DKIM_LIB *dkim_init __P ((void *(*mallocf)(void *closure, size_t nbytes), void(*freef)(void *closure, void *p)))
void dkim_close __P ((DKIM_LIB *lib))
DKIM *dkim_sign __P ((DKIM_LIB *libhandle, const unsigned char *id, void *memclosure, const dkim_sigkey_t secretkey, const unsigned char *selector, const unsigned char *domain, dkim_canon_t hdr_canon_alg, dkim_canon_t body_canon_alg, dkim_alg_t sign_alg, ssize_t length, DKIM_STAT *statp))
DKIM *dkim_verify __P ((DKIM_LIB *libhandle, const unsigned char *id, void *memclosure, DKIM_STAT *statp))
DKIM_STAT dkim_resign __P ((DKIM *news, DKIM *olds, _Bool hdrbind))
DKIM_STAT dkim_header __P ((DKIM *dkim, u_char *hdr, size_t len))
DKIM_STAT dkim_eoh __P ((DKIM *dkim))
DKIM_STAT dkim_body __P ((DKIM *dkim, u_char *buf, size_t len))
DKIM_STAT dkim_chunk __P ((DKIM *dkim, u_char *buf, size_t buflen))
DKIM_STAT dkim_eom __P ((DKIM *dkim, _Bool *testkey))
DKIM_STAT dkim_key_syntax __P ((DKIM *dkim, u_char *str, size_t len))
DKIM_STAT dkim_getcachestats __P ((u_int *queries, u_int *hits, u_int *expired))
DKIM_STAT dkim_getsiglist __P ((DKIM *dkim, DKIM_SIGINFO ***sigs, int *nsigs))
DKIM_STAT dkim_getsighdr __P ((DKIM *dkim, u_char *buf, size_t len, size_t initial))
DKIM_STAT dkim_getsighdr_d __P ((DKIM *dkim, size_t initial, u_char **buf, size_t *len))
_Bool dkim_sig_hdrsigned __P ((DKIM_SIGINFO *sig, u_char *hdr))
DKIM_STAT dkim_sig_getqueries __P ((DKIM *dkim, DKIM_SIGINFO *sig, DKIM_QUERYINFO ***qi, unsigned int *nqi))
int dkim_sig_getdnssec __P ((DKIM_SIGINFO *sig))
DKIM_STAT dkim_sig_getreportinfo __P ((DKIM *dkim, DKIM_SIGINFO *sig, int *hfd, int *bfd, u_char *addr, size_t addrlen, u_char *opts, size_t optslen, u_char *smtp, size_t smtplen, u_int *interval))
DKIM_STAT dkim_sig_getidentity __P ((DKIM *dkim, DKIM_SIGINFO *sig, u_char *val, size_t vallen))
DKIM_STAT dkim_sig_getcanonlen __P ((DKIM *dkim, DKIM_SIGINFO *sig, ssize_t *msglen, ssize_t *canonlen, ssize_t *signlen))
DKIM_STAT dkim_options __P ((DKIM_LIB *dkimlib, int op, dkim_opts_t opt, void *ptr, size_t len))
DKIM_STAT dkim_sig_getkeysize __P ((DKIM_SIGINFO *sig, unsigned int *bits))
DKIM_STAT dkim_sig_getsignalg __P ((DKIM_SIGINFO *sig, dkim_alg_t *alg))
DKIM_STAT dkim_sig_getsigntime __P ((DKIM_SIGINFO *sig, uint64_t *when))
DKIM_STAT dkim_sig_getcanons __P ((DKIM_SIGINFO *sig, dkim_canon_t *hdr, dkim_canon_t *body))
DKIM_STAT dkim_set_user_context __P ((DKIM *dkim, void *ctx))
DKIM_STAT dkim_set_signer __P ((DKIM *dkim, const u_char *signer))
DKIM_STAT dkim_set_dns_callback __P ((DKIM_LIB *libopendkim, void(*func)(const void *context), unsigned int interval))
DKIM_STAT dkim_set_key_lookup __P ((DKIM_LIB *libopendkim, DKIM_CBSTAT(*func)(DKIM *dkim, DKIM_SIGINFO *sig, u_char *buf, size_t buflen)))
DKIM_STAT dkim_set_policy_lookup __P ((DKIM_LIB *libopendkim, DKIM_CBSTAT(*func)(DKIM *dkim, u_char *query, _Bool excheck, u_char *buf, size_t buflen, int *qstat)))
DKIM_STAT dkim_set_signature_handle __P ((DKIM_LIB *libopendkim, void *(*func)(void *closure)))
DKIM_STAT
dkim_set_signature_handle_free 
__P ((DKIM_LIB *libopendkim, void(*func)(void *closure, void *user)))
DKIM_STAT
dkim_set_signature_tagvalues 
__P ((DKIM_LIB *libopendkim, void(*func)(void *user, dkim_param_t pcode, const u_char *param, const u_char *value)))
DKIM_STAT dkim_set_prescreen __P ((DKIM_LIB *libopendkim, DKIM_CBSTAT(*func)(DKIM *dkim, DKIM_SIGINFO **sigs, int nsigs)))
void *dkim_sig_getcontext __P ((DKIM_SIGINFO *siginfo))
const char *dkim_sig_geterrorstr __P ((DKIM_SIGERROR sigerr))
DKIM_STAT dkim_policy_getqueries __P ((DKIM *dkim, DKIM_QUERYINFO ***qi, unsigned int *nqi))
void dkim_policy_state_free __P ((DKIM_PSTATE *pstate))
DKIM_STAT dkim_policy __P ((DKIM *dkim, dkim_policy_t *pcode, u_int *pflags, DKIM_PSTATE *pstate))
DKIM_STAT dkim_policy_getreportinfo __P ((DKIM *dkim, u_char *addr, size_t addrlen, u_char *opts, size_t optslen, u_char *smtp, size_t smtplen, u_int *interval))
DKIM_STAT dkim_sig_process __P ((DKIM *dkim, DKIM_SIGINFO *sig))
const char *dkim_getresultstr __P ((DKIM_STAT result))
const char *dkim_getpresultstr __P ((int presult))
const char *dkim_getpolicystr __P ((int policy))
DKIM_STAT dkim_ohdrs __P ((DKIM *dkim, DKIM_SIGINFO *sig, u_char **ptrs, int *pcnt))
DKIM_STAT dkim_diffheaders __P ((DKIM *dkim, dkim_canon_t canon, int maxcost, char **ohdrs, int nohdrs, struct dkim_hdrdiff **out, int *nout))
DKIM_STAT dkim_setpartial __P ((DKIM *dkim, _Bool value))
DKIM_STAT dkim_set_margin __P ((DKIM *dkim, int value))
DKIM_STAT dkim_get_reputation __P ((DKIM *dkim, DKIM_SIGINFO *sig, char *qroot, int *rep))
int dkim_mail_parse __P ((u_char *addr, u_char **user, u_char **domain))
unsigned long dkim_ssl_version __P ((void))
_Bool dkim_libfeature __P ((DKIM_LIB *lib, u_int fc))
DKIM_STAT dkim_get_sigsubstring __P ((DKIM *, DKIM_SIGINFO *, char *, size_t *))
int dkim_test_adsp __P ((DKIM_LIB *, const char *, dkim_policy_t *, int *, char *, size_t))
int dkim_test_key __P ((DKIM_LIB *, char *, char *, char *, size_t, int *, char *, size_t))
u_char *dkim_sig_gettagvalue __P ((DKIM_SIGINFO *, _Bool, u_char *))
DKIM_STAT dkim_sig_getsignedhdrs __P ((DKIM *, DKIM_SIGINFO *, u_char *, size_t, u_int *))
size_t dkim_strlcpy __P ((char *, const char *, ssize_t))
int dkim_qp_decode __P ((unsigned char *, unsigned char *, int))
void *dkim_dns_set_query_service __P ((DKIM_LIB *, void *))
void dkim_dns_set_query_start __P ((DKIM_LIB *, int(*)(void *, int, unsigned char *, unsigned char *, size_t, void **)))
void dkim_dns_set_query_cancel __P ((DKIM_LIB *, int(*)(void *, void *)))
void dkim_dns_set_query_waitreply __P ((DKIM_LIB *, int(*)(void *, void *, struct timeval *, size_t *, int *, int *)))
DKIM_STAT dkim_add_xtag __P ((DKIM *, const char *, const char *))
DKIM_STAT dkim_privkey_load __P ((DKIM *))
DKIM_STAT dkim_atps_check __P ((DKIM *, DKIM_SIGINFO *, struct timeval *, dkim_atps_t *res))
const char *dkim_qi_getname __P ((DKIM_QUERYINFO *))
int dkim_base32_encode __P ((char *, size_t *, const void *, size_t))
DKIM_STAT dkim_sig_gethashes __P ((DKIM_SIGINFO *, void **, size_t *, void **, size_t *))

Variables

static char dkim_h_id [] = "@(#)$Id: dkim.h,v 1.36.2.1 2010/10/27 21:43:08 cm-msk Exp $"
const u_char * dkim_default_senderhdrs []
const u_char * dkim_should_signhdrs []
const u_char * dkim_should_not_signhdrs []

Class Documentation

struct dkim_hdrdiff

Definition at line 378 of file dkim.h.

Class Members
u_char * hd_new
u_char * hd_old

Define Documentation

#define __P (   x)    ()

Definition at line 45 of file dkim.h.

#define DKIM_ATPS_FOUND   1

Definition at line 318 of file dkim.h.

#define DKIM_ATPS_NOTFOUND   0

Definition at line 317 of file dkim.h.

#define DKIM_ATPS_UNKNOWN   (-1)

Definition at line 316 of file dkim.h.

#define DKIM_ATPSHTAG   "atpsh" /* ATPS tag name */

Definition at line 51 of file dkim.h.

#define DKIM_ATPSTAG   "atps" /* ATPS tag name */

Definition at line 50 of file dkim.h.

Definition at line 174 of file dkim.h.

#define DKIM_CANON_RELAXED   1 /* as specified in DKIM spec */

Definition at line 172 of file dkim.h.

#define DKIM_CANON_SIMPLE   0 /* as specified in DKIM spec */

Definition at line 171 of file dkim.h.

#define DKIM_CANON_UNKNOWN   (-1) /* unknown method */

Definition at line 170 of file dkim.h.

#define DKIM_CBSTAT_CONTINUE   0 /* continue */

Definition at line 98 of file dkim.h.

#define DKIM_CBSTAT_ERROR   4 /* error requesting record */

Definition at line 102 of file dkim.h.

#define DKIM_CBSTAT_NOTFOUND   3 /* requested record not found */

Definition at line 101 of file dkim.h.

#define DKIM_CBSTAT_REJECT   1 /* reject */

Definition at line 99 of file dkim.h.

#define DKIM_CBSTAT_TRYAGAIN   2 /* try again later */

Definition at line 100 of file dkim.h.

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

Definition at line 159 of file dkim.h.

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

Definition at line 162 of file dkim.h.

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

Definition at line 161 of file dkim.h.

#define DKIM_DNS_SUCCESS   0 /* reply available */

Definition at line 160 of file dkim.h.

#define DKIM_DNSKEYNAME   "_domainkey"

Definition at line 61 of file dkim.h.

#define DKIM_DNSPOLICYNAME   "_adsp" /* reserved DNS sub-zone */

Definition at line 63 of file dkim.h.

#define DKIM_DNSSEC_BOGUS   0

Definition at line 308 of file dkim.h.

#define DKIM_DNSSEC_INSECURE   1

Definition at line 309 of file dkim.h.

#define DKIM_DNSSEC_SECURE   2

Definition at line 310 of file dkim.h.

#define DKIM_DNSSEC_UNKNOWN   (-1)

Definition at line 307 of file dkim.h.

#define DKIM_FEATURE_ATPS   8

Definition at line 1552 of file dkim.h.

#define DKIM_FEATURE_DIFFHEADERS   0

Definition at line 1544 of file dkim.h.

Definition at line 1545 of file dkim.h.

#define DKIM_FEATURE_DNSSEC   6

Definition at line 1550 of file dkim.h.

#define DKIM_FEATURE_MAX   9

Definition at line 1555 of file dkim.h.

#define DKIM_FEATURE_OVERSIGN   5

Definition at line 1549 of file dkim.h.

#define DKIM_FEATURE_PARSE_TIME   2

Definition at line 1546 of file dkim.h.

#define DKIM_FEATURE_QUERY_CACHE   3

Definition at line 1547 of file dkim.h.

#define DKIM_FEATURE_RESIGN   7

Definition at line 1551 of file dkim.h.

#define DKIM_FEATURE_SHA256   4

Definition at line 1548 of file dkim.h.

#define DKIM_FEATURE_XTAGS   9

Definition at line 1553 of file dkim.h.

#define DKIM_HDRMARGIN   75 /* "standard" header margin */

Definition at line 52 of file dkim.h.

#define DKIM_LIBFLAGS_ACCEPTDK   0x0200

Definition at line 287 of file dkim.h.

#define DKIM_LIBFLAGS_ACCEPTV05   0x0080

Definition at line 285 of file dkim.h.

#define DKIM_LIBFLAGS_BADSIGHANDLES   0x0400

Definition at line 288 of file dkim.h.

#define DKIM_LIBFLAGS_CACHE   0x0008

Definition at line 281 of file dkim.h.

Definition at line 294 of file dkim.h.

#define DKIM_LIBFLAGS_DELAYSIGPROC   0x0020

Definition at line 283 of file dkim.h.

#define DKIM_LIBFLAGS_DROPSIGNER   0x4000

Definition at line 292 of file dkim.h.

#define DKIM_LIBFLAGS_EOHCHECK   0x0040

Definition at line 284 of file dkim.h.

#define DKIM_LIBFLAGS_FIXCRLF   0x0100

Definition at line 286 of file dkim.h.

#define DKIM_LIBFLAGS_KEEPFILES   0x0002

Definition at line 279 of file dkim.h.

#define DKIM_LIBFLAGS_NONE   0x0000

Definition at line 277 of file dkim.h.

#define DKIM_LIBFLAGS_REPORTBADADSP   0x2000

Definition at line 291 of file dkim.h.

#define DKIM_LIBFLAGS_SIGNLEN   0x0004

Definition at line 280 of file dkim.h.

#define DKIM_LIBFLAGS_STRICTHDRS   0x1000

Definition at line 290 of file dkim.h.

#define DKIM_LIBFLAGS_TMPFILES   0x0001

Definition at line 278 of file dkim.h.

#define DKIM_LIBFLAGS_VERIFYONE   0x0800

Definition at line 289 of file dkim.h.

#define DKIM_LIBFLAGS_ZTAGS   0x0010

Definition at line 282 of file dkim.h.

#define DKIM_MAXHEADER   4096 /* buffer for caching one header */

Definition at line 53 of file dkim.h.

#define DKIM_MAXHOSTNAMELEN   256 /* max. FQDN we support */

Definition at line 54 of file dkim.h.

#define DKIM_MODE_SIGN   0

Definition at line 248 of file dkim.h.

#define DKIM_MODE_UNKNOWN   (-1)

Definition at line 247 of file dkim.h.

#define DKIM_MODE_VERIFY   1

Definition at line 249 of file dkim.h.

#define DKIM_OP_GETOPT   0

Definition at line 257 of file dkim.h.

#define DKIM_OP_SETOPT   1

Definition at line 258 of file dkim.h.

#define DKIM_OPTS_ALWAYSHDRS   10

Definition at line 272 of file dkim.h.

#define DKIM_OPTS_CLOCKDRIFT   12

Definition at line 274 of file dkim.h.

#define DKIM_OPTS_FIXEDTIME   8

Definition at line 270 of file dkim.h.

#define DKIM_OPTS_FLAGS   0

Definition at line 262 of file dkim.h.

#define DKIM_OPTS_MUSTBESIGNED   13

Definition at line 275 of file dkim.h.

#define DKIM_OPTS_OVERSIGNHDRS   5

Definition at line 267 of file dkim.h.

#define DKIM_OPTS_QUERYINFO   7

Definition at line 269 of file dkim.h.

#define DKIM_OPTS_QUERYMETHOD   6

Definition at line 268 of file dkim.h.

#define DKIM_OPTS_SENDERHDRS   3

Definition at line 265 of file dkim.h.

#define DKIM_OPTS_SIGNATURETTL   11

Definition at line 273 of file dkim.h.

#define DKIM_OPTS_SIGNHDRS   4

Definition at line 266 of file dkim.h.

#define DKIM_OPTS_SKIPHDRS   9

Definition at line 271 of file dkim.h.

#define DKIM_OPTS_TIMEOUT   2

Definition at line 264 of file dkim.h.

#define DKIM_OPTS_TMPDIR   1

Definition at line 263 of file dkim.h.

#define DKIM_PARAM_BODYHASH   12 /* bh */

Definition at line 218 of file dkim.h.

#define DKIM_PARAM_BODYLENGTH   13 /* l */

Definition at line 219 of file dkim.h.

#define DKIM_PARAM_CANONALG   3 /* c */

Definition at line 209 of file dkim.h.

#define DKIM_PARAM_COPIEDHDRS   11 /* z */

Definition at line 217 of file dkim.h.

#define DKIM_PARAM_DOMAIN   2 /* d */

Definition at line 208 of file dkim.h.

#define DKIM_PARAM_EXPIRATION   10 /* x */

Definition at line 216 of file dkim.h.

#define DKIM_PARAM_HDRLIST   6 /* h */

Definition at line 212 of file dkim.h.

#define DKIM_PARAM_IDENTITY   8 /* i */

Definition at line 214 of file dkim.h.

#define DKIM_PARAM_QUERYMETHOD   4 /* q */

Definition at line 210 of file dkim.h.

#define DKIM_PARAM_SELECTOR   5 /* s */

Definition at line 211 of file dkim.h.

#define DKIM_PARAM_SIGNALG   1 /* a */

Definition at line 207 of file dkim.h.

#define DKIM_PARAM_SIGNATURE   0 /* b */

Definition at line 206 of file dkim.h.

#define DKIM_PARAM_TIMESTAMP   9 /* t */

Definition at line 215 of file dkim.h.

#define DKIM_PARAM_UNKNOWN   (-1) /* unknown */

Definition at line 205 of file dkim.h.

#define DKIM_PARAM_VERSION   7 /* v */

Definition at line 213 of file dkim.h.

#define DKIM_PFLAG_UNUSED1   0x01 /* no longer used */

Definition at line 300 of file dkim.h.

#define DKIM_PFLAG_UNUSED2   0x02 /* no longer used */

Definition at line 301 of file dkim.h.

#define DKIM_POLICY_ALL   1 /* all */

Definition at line 229 of file dkim.h.

Definition at line 232 of file dkim.h.

#define DKIM_POLICY_DEFAULTTXT   "dkim=unknown"

Definition at line 233 of file dkim.h.

#define DKIM_POLICY_DISCARDABLE   2 /* discardable */

Definition at line 230 of file dkim.h.

#define DKIM_POLICY_NONE   (-1) /* none/undefined */

Definition at line 227 of file dkim.h.

#define DKIM_POLICY_UNKNOWN   0 /* unknown */

Definition at line 228 of file dkim.h.

#define DKIM_PRESULT_FOUND   1 /* ADSP query succeeded */

Definition at line 241 of file dkim.h.

#define DKIM_PRESULT_NONE   (-1) /* none/undefined */

Definition at line 239 of file dkim.h.

#define DKIM_PRESULT_NXDOMAIN   0 /* domain does not exist */

Definition at line 240 of file dkim.h.

Definition at line 197 of file dkim.h.

#define DKIM_QUERY_DNS   0 /* DNS query method (per the draft) */

Definition at line 194 of file dkim.h.

#define DKIM_QUERY_FILE   1 /* text file method (for testing) */

Definition at line 195 of file dkim.h.

#define DKIM_QUERY_UNKNOWN   (-1) /* unknown method */

Definition at line 193 of file dkim.h.

#define DKIM_REPORTTAG   "r" /* DKIM reporting request tag */

Definition at line 55 of file dkim.h.

#define DKIM_REPORTTAGVAL   "y" /* DKIM reporting request tag value */

Definition at line 56 of file dkim.h.

#define DKIM_SIG_CHECK (   x)    ((dkim_sig_getflags((x)) & DKIM_SIGFLAG_PASSED != 0) && (dkim_sig_getbh((x)) == DKIM_SIGBH_MATCH))

Definition at line 66 of file dkim.h.

#define DKIM_SIGBH_MATCH   0

Definition at line 357 of file dkim.h.

#define DKIM_SIGBH_MISMATCH   1

Definition at line 358 of file dkim.h.

#define DKIM_SIGBH_UNTESTED   (-1)

Definition at line 356 of file dkim.h.

#define DKIM_SIGERROR_BADSIG   28 /* signature mismatch */

Definition at line 139 of file dkim.h.

#define DKIM_SIGERROR_CORRUPT_B   21 /* b= corrupt */

Definition at line 132 of file dkim.h.

#define DKIM_SIGERROR_CORRUPT_BH   27 /* bh= corrupt */

Definition at line 138 of file dkim.h.

#define DKIM_SIGERROR_DNSSYNTAX   23 /* DNS reply corrupt */

Definition at line 134 of file dkim.h.

#define DKIM_SIGERROR_DOMAIN   2 /* invalid domain (d=/i=) */

Definition at line 113 of file dkim.h.

#define DKIM_SIGERROR_EMPTY_B   20 /* b= empty */

Definition at line 131 of file dkim.h.

#define DKIM_SIGERROR_EMPTY_BH   26 /* bh= empty */

Definition at line 137 of file dkim.h.

#define DKIM_SIGERROR_EMPTY_D   16 /* d= empty */

Definition at line 127 of file dkim.h.

#define DKIM_SIGERROR_EMPTY_H   31 /* h= empty */

Definition at line 142 of file dkim.h.

#define DKIM_SIGERROR_EMPTY_S   18 /* s= empty */

Definition at line 129 of file dkim.h.

#define DKIM_SIGERROR_EMPTY_V   45 /* v= tag empty */

Definition at line 156 of file dkim.h.

#define DKIM_SIGERROR_EXPIRED   3 /* signature expired */

Definition at line 114 of file dkim.h.

#define DKIM_SIGERROR_FUTURE   4 /* signature in the future */

Definition at line 115 of file dkim.h.

#define DKIM_SIGERROR_INVALID_A   10 /* a= invalid */

Definition at line 121 of file dkim.h.

#define DKIM_SIGERROR_INVALID_BC   8 /* c= invalid (body) */

Definition at line 119 of file dkim.h.

#define DKIM_SIGERROR_INVALID_H   32 /* h= missing req'd entries */

Definition at line 143 of file dkim.h.

#define DKIM_SIGERROR_INVALID_HC   7 /* c= invalid (header) */

Definition at line 118 of file dkim.h.

#define DKIM_SIGERROR_INVALID_L   12 /* l= invalid */

Definition at line 123 of file dkim.h.

#define DKIM_SIGERROR_INVALID_Q   13 /* q= invalid */

Definition at line 124 of file dkim.h.

#define DKIM_SIGERROR_INVALID_QO   14 /* q= option invalid */

Definition at line 125 of file dkim.h.

#define DKIM_SIGERROR_KEYDECODE   43 /* key couldn't be decoded */

Definition at line 154 of file dkim.h.

#define DKIM_SIGERROR_KEYFAIL   24 /* DNS query failed */

Definition at line 135 of file dkim.h.

#define DKIM_SIGERROR_KEYHASHMISMATCH   37 /* sig-key hash mismatch */

Definition at line 148 of file dkim.h.

#define DKIM_SIGERROR_KEYREVOKED   42 /* key revoked */

Definition at line 153 of file dkim.h.

#define DKIM_SIGERROR_KEYTYPEMISSING   40 /* key type missing */

Definition at line 151 of file dkim.h.

#define DKIM_SIGERROR_KEYTYPEUNKNOWN   41 /* key type unknown */

Definition at line 152 of file dkim.h.

#define DKIM_SIGERROR_KEYUNKNOWNHASH   36 /* unknown key hash */

Definition at line 147 of file dkim.h.

#define DKIM_SIGERROR_KEYVERSION   35 /* unknown key version */

Definition at line 146 of file dkim.h.

#define DKIM_SIGERROR_MBSFAILED   34 /* "must be signed" failure */

Definition at line 145 of file dkim.h.

#define DKIM_SIGERROR_MISSING_A   9 /* a= missing */

Definition at line 120 of file dkim.h.

#define DKIM_SIGERROR_MISSING_B   19 /* b= missing */

Definition at line 130 of file dkim.h.

#define DKIM_SIGERROR_MISSING_BH   25 /* bh= missing */

Definition at line 136 of file dkim.h.

#define DKIM_SIGERROR_MISSING_D   15 /* d= missing */

Definition at line 126 of file dkim.h.

#define DKIM_SIGERROR_MISSING_H   11 /* h= missing */

Definition at line 122 of file dkim.h.

#define DKIM_SIGERROR_MISSING_S   17 /* s= missing */

Definition at line 128 of file dkim.h.

#define DKIM_SIGERROR_MISSING_V   44 /* v= tag missing */

Definition at line 155 of file dkim.h.

#define DKIM_SIGERROR_MULTIREPLY   30 /* multiple records returned */

Definition at line 141 of file dkim.h.

#define DKIM_SIGERROR_NOKEY   22 /* no key found in DNS */

Definition at line 133 of file dkim.h.

#define DKIM_SIGERROR_NOTEMAILKEY   38 /* not an e-mail key */

Definition at line 149 of file dkim.h.

#define DKIM_SIGERROR_OK   0 /* no error */

Definition at line 111 of file dkim.h.

#define DKIM_SIGERROR_SUBDOMAIN   29 /* unauthorized subdomain */

Definition at line 140 of file dkim.h.

#define DKIM_SIGERROR_TIMESTAMPS   5 /* x= < t= */

Definition at line 116 of file dkim.h.

#define DKIM_SIGERROR_TOOLARGE_L   33 /* l= value exceeds body size */

Definition at line 144 of file dkim.h.

#define DKIM_SIGERROR_UNKNOWN   (-1) /* unknown error */

Definition at line 110 of file dkim.h.

#define DKIM_SIGERROR_UNUSED   6 /* OBSOLETE */

Definition at line 117 of file dkim.h.

#define DKIM_SIGERROR_UNUSED2   39 /* OBSOLETE */

Definition at line 150 of file dkim.h.

#define DKIM_SIGERROR_VERSION   1 /* unsupported version */

Definition at line 112 of file dkim.h.

#define DKIM_SIGFLAG_IGNORE   0x01

Definition at line 349 of file dkim.h.

#define DKIM_SIGFLAG_KEYLOADED   0x20

Definition at line 354 of file dkim.h.

#define DKIM_SIGFLAG_NOSUBDOMAIN   0x10

Definition at line 353 of file dkim.h.

#define DKIM_SIGFLAG_PASSED   0x04

Definition at line 351 of file dkim.h.

#define DKIM_SIGFLAG_PROCESSED   0x02

Definition at line 350 of file dkim.h.

#define DKIM_SIGFLAG_TESTKEY   0x08

Definition at line 352 of file dkim.h.

#define DKIM_SIGN_DEFAULT   (-1) /* use internal default */

Definition at line 183 of file dkim.h.

#define DKIM_SIGN_RSASHA1   0 /* an RSA-signed SHA1 digest */

Definition at line 184 of file dkim.h.

#define DKIM_SIGN_RSASHA256   1 /* an RSA-signed SHA256 digest */

Definition at line 185 of file dkim.h.

#define DKIM_SIGN_UNKNOWN   (-2) /* unknown method */

Definition at line 182 of file dkim.h.

#define DKIM_SIGNHEADER   "DKIM-Signature"

Definition at line 57 of file dkim.h.

#define DKIM_STAT_BADSIG   1 /* signature available but failed */

Definition at line 75 of file dkim.h.

#define DKIM_STAT_CANTVRFY   4 /* can't get domain key to verify */

Definition at line 78 of file dkim.h.

#define DKIM_STAT_CBERROR   15 /* callback error */

Definition at line 89 of file dkim.h.

#define DKIM_STAT_CBINVALID   13 /* callback gave invalid result */

Definition at line 87 of file dkim.h.

#define DKIM_STAT_CBREJECT   12 /* callback requested reject */

Definition at line 86 of file dkim.h.

#define DKIM_STAT_CBTRYAGAIN   14 /* callback says try again later */

Definition at line 88 of file dkim.h.

#define DKIM_STAT_INTERNAL   7 /* internal error */

Definition at line 81 of file dkim.h.

#define DKIM_STAT_INVALID   9 /* invalid function parameter */

Definition at line 83 of file dkim.h.

#define DKIM_STAT_KEYFAIL   11 /* key retrieval failed */

Definition at line 85 of file dkim.h.

#define DKIM_STAT_MULTIDNSREPLY   16 /* multiple DNS replies */

Definition at line 90 of file dkim.h.

#define DKIM_STAT_NOKEY   3 /* public key not found */

Definition at line 77 of file dkim.h.

#define DKIM_STAT_NORESOURCE   6 /* resource unavailable */

Definition at line 80 of file dkim.h.

#define DKIM_STAT_NOSIG   2 /* no signature available */

Definition at line 76 of file dkim.h.

#define DKIM_STAT_NOTIMPLEMENT   10 /* function not implemented */

Definition at line 84 of file dkim.h.

#define DKIM_STAT_OK   0 /* function completed successfully */

Definition at line 74 of file dkim.h.

#define DKIM_STAT_REVOKED   8 /* key found, but revoked */

Definition at line 82 of file dkim.h.

#define DKIM_STAT_SYNTAX   5 /* message is not valid syntax */

Definition at line 79 of file dkim.h.

#define OPENDKIM_LIB_VERSION   0x02060600

Definition at line 37 of file dkim.h.


Typedef Documentation

typedef struct dkim

Definition at line 334 of file dkim.h.

typedef int dkim_alg_t

Definition at line 180 of file dkim.h.

typedef int dkim_atps_t

Definition at line 320 of file dkim.h.

typedef int dkim_canon_t

Definition at line 168 of file dkim.h.

typedef int DKIM_CBSTAT

Definition at line 96 of file dkim.h.

typedef struct dkim_lib

Definition at line 327 of file dkim.h.

typedef int dkim_opt_t

Definition at line 255 of file dkim.h.

typedef int dkim_opts_t

Definition at line 260 of file dkim.h.

typedef int dkim_param_t

Definition at line 203 of file dkim.h.

typedef int dkim_policy_t

Definition at line 225 of file dkim.h.

typedef struct dkim_pstate

Definition at line 372 of file dkim.h.

typedef int dkim_query_t

Definition at line 191 of file dkim.h.

typedef struct dkim_queryinfo

Definition at line 365 of file dkim.h.

typedef int DKIM_SIGERROR

Definition at line 108 of file dkim.h.

typedef struct dkim_siginfo

Definition at line 347 of file dkim.h.

typedef unsigned char* dkim_sigkey_t

Definition at line 340 of file dkim.h.

typedef int DKIM_STAT

Definition at line 72 of file dkim.h.


Function Documentation

DKIM_LIB* dkim_init __P ( (void *(*mallocf)(void *closure, size_t nbytes), void(*freef)(void *closure, void *p))  )
int dkim_flush_cache __P ( (DKIM_LIB *lib)  )
DKIM* dkim_sign __P ( (DKIM_LIB *libhandle, const unsigned char *id, void *memclosure, const dkim_sigkey_t secretkey, const unsigned char *selector, const unsigned char *domain, dkim_canon_t hdr_canon_alg, dkim_canon_t body_canon_alg, dkim_alg_t sign_alg, ssize_t length, DKIM_STAT *statp)  )
DKIM* dkim_verify __P ( (DKIM_LIB *libhandle, const unsigned char *id, void *memclosure, DKIM_STAT *statp)  )
DKIM_STAT dkim_resign __P ( (DKIM *news, DKIM *olds, _Bool hdrbind)  )
DKIM_STAT dkim_header __P ( (DKIM *dkim, u_char *hdr, size_t len)  )
_Bool dkim_getpartial __P ( (DKIM *dkim )
DKIM_STAT dkim_body __P ( (DKIM *dkim, u_char *buf, size_t len)  )
DKIM_STAT dkim_chunk __P ( (DKIM *dkim, u_char *buf, size_t buflen)  )
DKIM_STAT dkim_eom __P ( (DKIM *dkim, _Bool *testkey)  )
DKIM_STAT dkim_sig_syntax __P ( (DKIM *dkim, u_char *str, size_t len)  )
DKIM_STAT dkim_getcachestats __P ( (u_int *queries, u_int *hits, u_int *expired)  )
DKIM_STAT dkim_getsiglist __P ( (DKIM *dkim, DKIM_SIGINFO ***sigs, int *nsigs)  )
DKIM_STAT dkim_getsighdr __P ( (DKIM *dkim, u_char *buf, size_t len, size_t initial)  )
DKIM_STAT dkim_getsighdr_d __P ( (DKIM *dkim, size_t initial, u_char **buf, size_t *len)  )
_Bool dkim_sig_hdrsigned __P ( (DKIM_SIGINFO *sig, u_char *hdr)  )
DKIM_STAT dkim_sig_getqueries __P ( (DKIM *dkim, DKIM_SIGINFO *sig, DKIM_QUERYINFO ***qi, unsigned int *nqi)  )
unsigned char *dkim_sig_getdomain __P ( (DKIM_SIGINFO *sig)  )
DKIM_STAT dkim_sig_getreportinfo __P ( (DKIM *dkim, DKIM_SIGINFO *sig, int *hfd, int *bfd, u_char *addr, size_t addrlen, u_char *opts, size_t optslen, u_char *smtp, size_t smtplen, u_int *interval)  )
DKIM_STAT dkim_sig_getidentity __P ( (DKIM *dkim, DKIM_SIGINFO *sig, u_char *val, size_t vallen)  )
DKIM_STAT dkim_sig_getcanonlen __P ( (DKIM *dkim, DKIM_SIGINFO *sig, ssize_t *msglen, ssize_t *canonlen, ssize_t *signlen)  )
DKIM_STAT dkim_options __P ( (DKIM_LIB *dkimlib, int op, dkim_opts_t opt, void *ptr, size_t len)  )
DKIM_STAT dkim_sig_getkeysize __P ( (DKIM_SIGINFO *sig, unsigned int *bits)  )
DKIM_STAT dkim_sig_getsignalg __P ( (DKIM_SIGINFO *sig, dkim_alg_t *alg)  )
DKIM_STAT dkim_sig_getsigntime __P ( (DKIM_SIGINFO *sig, uint64_t *when)  )
DKIM_STAT dkim_sig_getcanons __P ( (DKIM_SIGINFO *sig, dkim_canon_t *hdr, dkim_canon_t *body)  )
DKIM_STAT dkim_set_user_context __P ( (DKIM *dkim, void *ctx)  )
DKIM_STAT dkim_set_signer __P ( (DKIM *dkim, const u_char *signer)  )
DKIM_STAT dkim_set_dns_callback __P ( (DKIM_LIB *libopendkim, void(*func)(const void *context), unsigned int interval)  )
DKIM_STAT dkim_set_key_lookup __P ( (DKIM_LIB *libopendkim, DKIM_CBSTAT(*func)(DKIM *dkim, DKIM_SIGINFO *sig, u_char *buf, size_t buflen))  )
DKIM_STAT dkim_set_policy_lookup __P ( (DKIM_LIB *libopendkim, DKIM_CBSTAT(*func)(DKIM *dkim, u_char *query, _Bool excheck, u_char *buf, size_t buflen, int *qstat))  )
DKIM_STAT dkim_set_signature_handle __P ( (DKIM_LIB *libopendkim, void *(*func)(void *closure))  )
DKIM_STAT dkim_set_signature_handle_free __P ( (DKIM_LIB *libopendkim, void(*func)(void *closure, void *user))  )
DKIM_STAT dkim_set_signature_tagvalues __P ( (DKIM_LIB *libopendkim, void(*func)(void *user, dkim_param_t pcode, const u_char *param, const u_char *value))  )
DKIM_STAT dkim_set_final __P ( (DKIM_LIB *libopendkim, DKIM_CBSTAT(*func)(DKIM *dkim, DKIM_SIGINFO **sigs, int nsigs))  )
void dkim_sig_ignore __P ( (DKIM_SIGINFO *siginfo)  )
const char* dkim_sig_geterrorstr __P ( (DKIM_SIGERROR sigerr)  )
DKIM_STAT dkim_policy_getqueries __P ( (DKIM *dkim, DKIM_QUERYINFO ***qi, unsigned int *nqi)  )
void dkim_policy_state_free __P ( (DKIM_PSTATE *pstate)  )
DKIM_STAT dkim_policy __P ( (DKIM *dkim, dkim_policy_t *pcode, u_int *pflags, DKIM_PSTATE *pstate)  )
DKIM_STAT dkim_policy_getreportinfo __P ( (DKIM *dkim, u_char *addr, size_t addrlen, u_char *opts, size_t optslen, u_char *smtp, size_t smtplen, u_int *interval)  )
DKIM_STAT dkim_sig_process __P ( (DKIM *dkim, DKIM_SIGINFO *sig)  )
const char* dkim_getresultstr __P ( (DKIM_STAT result )
const char* dkim_getpresultstr __P ( (int presult)  )
const char* dkim_getpolicystr __P ( (int policy)  )
DKIM_STAT dkim_ohdrs __P ( (DKIM *dkim, DKIM_SIGINFO *sig, u_char **ptrs, int *pcnt)  )
DKIM_STAT dkim_diffheaders __P ( (DKIM *dkim, dkim_canon_t canon, int maxcost, char **ohdrs, int nohdrs, struct dkim_hdrdiff **out, int *nout)  )
DKIM_STAT dkim_setpartial __P ( (DKIM *dkim, _Bool value)  )
DKIM_STAT dkim_set_margin __P ( (DKIM *dkim, int value)  )
DKIM_STAT dkim_get_reputation __P ( (DKIM *dkim, DKIM_SIGINFO *sig, char *qroot, int *rep)  )
int dkim_mail_parse __P ( (u_char *addr, u_char **user, u_char **domain)  )
void dkimf_crypto_free __P ( (void)  )
_Bool dkim_libfeature __P ( (DKIM_LIB *lib, u_int fc)  )
DKIM_STAT dkim_get_sigsubstring __P ( (DKIM *, DKIM_SIGINFO *, char *, size_t *)  )
int dkim_test_adsp __P ( (DKIM_LIB *, const char *, dkim_policy_t *, int *, char *, size_t)  )
int dkim_test_key __P ( (DKIM_LIB *, char *, char *, char *, size_t, int *, char *, size_t)  )
u_char* dkim_sig_gettagvalue __P ( (DKIM_SIGINFO *, _Bool, u_char *)  )
DKIM_STAT dkim_sig_getsignedhdrs __P ( (DKIM *, DKIM_SIGINFO *, u_char *, size_t, u_int *)  )
size_t dkim_strlcpy __P ( (char *, const char *, ssize_t)  )
int dkim_qp_decode __P ( (unsigned char *, unsigned char *, int)  )
void* dkim_dns_set_query_service __P ( (DKIM_LIB *, void *)  )
void dkim_dns_set_query_start __P ( (DKIM_LIB *, int(*)(void *, int, unsigned char *, unsigned char *, size_t, void **))  )
void dkim_dns_set_query_cancel __P ( (DKIM_LIB *, int(*)(void *, void *))  )
void dkim_dns_set_query_waitreply __P ( (DKIM_LIB *, int(*)(void *, void *, struct timeval *, size_t *, int *, int *))  )
DKIM_STAT dkim_add_xtag __P ( (DKIM *, const char *, const char *)  )
DKIM_STAT dkim_atps_check __P ( (DKIM *, DKIM_SIGINFO *, struct timeval *, dkim_atps_t *res)  )
int dkim_qi_gettype __P ( (DKIM_QUERYINFO *)  )
int dkim_base32_encode __P ( (char *, size_t *, const void *, size_t)  )
DKIM_STAT dkim_sig_gethashes __P ( (DKIM_SIGINFO *, void **, size_t *, void **, size_t *)  )

Variable Documentation

const u_char* dkim_default_senderhdrs[]

Definition at line 217 of file dkim.c.

char dkim_h_id[] = "@(#)$Id: dkim.h,v 1.36.2.1 2010/10/27 21:43:08 cm-msk Exp $" [static]

Definition at line 16 of file dkim.h.

const u_char* dkim_should_not_signhdrs[]

Definition at line 250 of file dkim.c.

const u_char* dkim_should_signhdrs[]

Definition at line 224 of file dkim.c.