Back to index

opendkim  2.6.2
Defines | Typedefs | Functions | Variables
dkim-internal.h File Reference
#include "dkim.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NULL   0
#define FALSE   0
#define TRUE   1
#define MAXPATHLEN   256
#define ULONG_MAX   0xffffffffL
#define ULLONG_MAX   0xffffffffffffffffLL
#define MIN(x, y)   ((x) < (y) ? (x) : (y))
#define MAX(x, y)   ((x) > (y) ? (x) : (y))
#define BUFRSZ   1024 /* base temp buffer size */
#define BASE64SIZE(x)   (((x + 2) / 3) * 4)
#define MAXADDRESS   256 /* biggest user@host we accept */
#define MAXBUFRSZ   65536 /* max temp buffer size */
#define MAXCNAMEDEPTH   3 /* max. CNAME recursion we allow */
#define MAXHEADERS   32768 /* buffer for caching headers */
#define MAXLABELS   16 /* max. labels we allow */
#define MAXPOLICYDEPTH   1 /* policy recursion we allow */
#define MAXTAGNAME   8 /* biggest tag name */
#define NPRINTABLE   95 /* number of printable characters */
#define DKIM_MAXHEADER   4096 /* buffer for caching one header */
#define DKIM_MAXHOSTNAMELEN   256 /* max. FQDN we support */
#define DEFERRLEN   64 /* default error string length */
#define DEFTMPDIR   "/var/tmp"
#define DKIM_VERSION_KEY   "DKIM1" /* current version token for keys */
#define DKIM_VERSION_SIG   "1" /* current version token for sigs */
#define DKIM_VERSION_SIGOLD   "0.5" /* old version token for sigs */
#define DKIM_DATEHEADER   "Date" /* Date: header */
#define DKIM_FROMHEADER   "From" /* From: header */
#define DKIM_DATEHEADER_LEN   (sizeof(DKIM_DATEHEADER) - 1)
#define DKIM_FROMHEADER_LEN   (sizeof(DKIM_FROMHEADER) - 1)
#define DKIM_SIGNHEADER_LEN   (sizeof(DKIM_SIGNHEADER) - 1)
#define DKIM_KEY_VERSION   0 /* v */
#define DKIM_KEY_GRANULARITY   1 /* g */
#define DKIM_KEY_ALGORITHM   2 /* a */
#define DKIM_KEY_NOTES   3 /* n */
#define DKIM_KEY_DATA   4 /* p */
#define DKIM_KEY_SERVICE   5 /* s */
#define DKIM_KEY_FLAGS   6 /* t */
#define DKIM_PPARAM_POLICY   0 /* dkim */
#define DKIM_PPARAM_FLAGS   1 /* t */
#define DKIM_PPARAM_REPORTADDR   2 /* r */
#define DKIM_PPARAM_ATPS   3 /* atps */
#define DKIM_SETTYPE_ANY   (-1)
#define DKIM_SETTYPE_SIGNATURE   0
#define DKIM_SETTYPE_POLICY   1
#define DKIM_SETTYPE_KEY   2
#define DKIM_SETTYPE_SIGREPORT   3
#define DKIM_HASHTYPE_UNKNOWN   (-1)
#define DKIM_HASHTYPE_SHA1   0
#define DKIM_HASHTYPE_SHA256   1
#define DKIM_KEYTYPE_UNKNOWN   (-1)
#define DKIM_KEYTYPE_RSA   0

Typedefs

typedef int dkim_key_t
typedef int dkim_pparam_t
typedef int dkim_set_t
typedef struct dkim_set
typedef struct dkim_plist
typedef struct dkim_key
typedef struct dkim_policy
typedef struct dkim_canon

Functions

DKIM_STAT dkim_process_set __P ((DKIM *, dkim_set_t, u_char *, size_t, void *, _Bool, const char *))
DKIM_STAT dkim_siglist_setup __P ((DKIM *))

Variables

static char dkim_internal_h_id [] = "@(#)$Id: dkim-internal.h,v 1.4 2009/12/24 07:54:47 cm-msk Exp $"

Define Documentation

#define BASE64SIZE (   x)    (((x + 2) / 3) * 4)

Definition at line 55 of file dkim-internal.h.

#define BUFRSZ   1024 /* base temp buffer size */

Definition at line 54 of file dkim-internal.h.

#define DEFERRLEN   64 /* default error string length */

Definition at line 71 of file dkim-internal.h.

#define DEFTMPDIR   "/var/tmp"

Definition at line 72 of file dkim-internal.h.

#define DKIM_DATEHEADER   "Date" /* Date: header */

Definition at line 81 of file dkim-internal.h.

#define DKIM_DATEHEADER_LEN   (sizeof(DKIM_DATEHEADER) - 1)

Definition at line 84 of file dkim-internal.h.

#define DKIM_FROMHEADER   "From" /* From: header */

Definition at line 82 of file dkim-internal.h.

#define DKIM_FROMHEADER_LEN   (sizeof(DKIM_FROMHEADER) - 1)

Definition at line 85 of file dkim-internal.h.

#define DKIM_HASHTYPE_SHA1   0

Definition at line 129 of file dkim-internal.h.

#define DKIM_HASHTYPE_SHA256   1

Definition at line 130 of file dkim-internal.h.

#define DKIM_HASHTYPE_UNKNOWN   (-1)

Definition at line 128 of file dkim-internal.h.

#define DKIM_KEY_ALGORITHM   2 /* a */

Definition at line 95 of file dkim-internal.h.

#define DKIM_KEY_DATA   4 /* p */

Definition at line 97 of file dkim-internal.h.

#define DKIM_KEY_FLAGS   6 /* t */

Definition at line 99 of file dkim-internal.h.

#define DKIM_KEY_GRANULARITY   1 /* g */

Definition at line 94 of file dkim-internal.h.

#define DKIM_KEY_NOTES   3 /* n */

Definition at line 96 of file dkim-internal.h.

#define DKIM_KEY_SERVICE   5 /* s */

Definition at line 98 of file dkim-internal.h.

#define DKIM_KEY_VERSION   0 /* v */

Definition at line 93 of file dkim-internal.h.

#define DKIM_KEYTYPE_RSA   0

Definition at line 137 of file dkim-internal.h.

#define DKIM_KEYTYPE_UNKNOWN   (-1)

Definition at line 136 of file dkim-internal.h.

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

Definition at line 67 of file dkim-internal.h.

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

Definition at line 68 of file dkim-internal.h.

#define DKIM_PPARAM_ATPS   3 /* atps */

Definition at line 110 of file dkim-internal.h.

#define DKIM_PPARAM_FLAGS   1 /* t */

Definition at line 108 of file dkim-internal.h.

#define DKIM_PPARAM_POLICY   0 /* dkim */

Definition at line 107 of file dkim-internal.h.

#define DKIM_PPARAM_REPORTADDR   2 /* r */

Definition at line 109 of file dkim-internal.h.

#define DKIM_SETTYPE_ANY   (-1)

Definition at line 118 of file dkim-internal.h.

#define DKIM_SETTYPE_KEY   2

Definition at line 121 of file dkim-internal.h.

#define DKIM_SETTYPE_POLICY   1

Definition at line 120 of file dkim-internal.h.

#define DKIM_SETTYPE_SIGNATURE   0

Definition at line 119 of file dkim-internal.h.

#define DKIM_SETTYPE_SIGREPORT   3

Definition at line 122 of file dkim-internal.h.

#define DKIM_SIGNHEADER_LEN   (sizeof(DKIM_SIGNHEADER) - 1)

Definition at line 86 of file dkim-internal.h.

#define DKIM_VERSION_KEY   "DKIM1" /* current version token for keys */

Definition at line 76 of file dkim-internal.h.

#define DKIM_VERSION_SIG   "1" /* current version token for sigs */

Definition at line 77 of file dkim-internal.h.

#define DKIM_VERSION_SIGOLD   "0.5" /* old version token for sigs */

Definition at line 78 of file dkim-internal.h.

#define FALSE   0

Definition at line 20 of file dkim-internal.h.

#define MAX (   x,
 
)    ((x) > (y) ? (x) : (y))

Definition at line 40 of file dkim-internal.h.

#define MAXADDRESS   256 /* biggest user@host we accept */

Definition at line 57 of file dkim-internal.h.

#define MAXBUFRSZ   65536 /* max temp buffer size */

Definition at line 58 of file dkim-internal.h.

#define MAXCNAMEDEPTH   3 /* max. CNAME recursion we allow */

Definition at line 59 of file dkim-internal.h.

#define MAXHEADERS   32768 /* buffer for caching headers */

Definition at line 60 of file dkim-internal.h.

#define MAXLABELS   16 /* max. labels we allow */

Definition at line 61 of file dkim-internal.h.

#define MAXPATHLEN   256

Definition at line 26 of file dkim-internal.h.

#define MAXPOLICYDEPTH   1 /* policy recursion we allow */

Definition at line 62 of file dkim-internal.h.

#define MAXTAGNAME   8 /* biggest tag name */

Definition at line 63 of file dkim-internal.h.

#define MIN (   x,
 
)    ((x) < (y) ? (x) : (y))

Definition at line 37 of file dkim-internal.h.

#define NPRINTABLE   95 /* number of printable characters */

Definition at line 65 of file dkim-internal.h.

#define NULL   0

Definition at line 17 of file dkim-internal.h.

#define TRUE   1

Definition at line 23 of file dkim-internal.h.

#define ULLONG_MAX   0xffffffffffffffffLL

Definition at line 33 of file dkim-internal.h.

#define ULONG_MAX   0xffffffffL

Definition at line 30 of file dkim-internal.h.


Typedef Documentation

typedef struct dkim_canon

Definition at line 172 of file dkim-internal.h.

typedef struct dkim_key

Definition at line 158 of file dkim-internal.h.

typedef int dkim_key_t

Definition at line 91 of file dkim-internal.h.

typedef struct dkim_plist

Definition at line 151 of file dkim-internal.h.

typedef struct dkim_policy

Definition at line 165 of file dkim-internal.h.

typedef int dkim_pparam_t

Definition at line 105 of file dkim-internal.h.

typedef struct dkim_set

Definition at line 144 of file dkim-internal.h.

typedef int dkim_set_t

Definition at line 116 of file dkim-internal.h.


Function Documentation

DKIM_STAT dkim_process_set __P ( (DKIM *, dkim_set_t, u_char *, size_t, void *, _Bool, const char *)  )

Variable Documentation

char dkim_internal_h_id[] = "@(#)$Id: dkim-internal.h,v 1.4 2009/12/24 07:54:47 cm-msk Exp $" [static]

Definition at line 9 of file dkim-internal.h.