1 /* $Cambridge: exim/src/src/dkim-exim.h,v 1.1 2007/09/28 12:21:57 tom Exp $ */
3 /*************************************************
4 * Exim - an Internet mail transport agent *
5 *************************************************/
7 /* Copyright (c) University of Cambridge 1995 - 2007 */
8 /* See the file NOTICE for conditions of use and distribution. */
10 /* Code for DKIM support. Other DKIM relevant code is in
11 receive.c, transport.c and transports/smtp.c */
13 /* Exim interface to DKIM results */
15 #define DKIM_EXIM_FAIL -2 /* Message has a bad signature from that domain or identity. */
16 #define DKIM_EXIM_DEFER -1 /* Message has an unverified signature from that domain */
17 #define DKIM_EXIM_UNVERIFIED 0 /* Message was not validated with the DK engine */
18 #define DKIM_EXIM_UNSIGNED 1 /* Message has no signature from that domain or identity */
19 #define DKIM_EXIM_GOOD 2 /* Message has good signature from that domain or identity */
22 #ifdef EXPERIMENTAL_DKIM
25 int dkim_exim_verify_result(uschar *,uschar **,uschar **);
27 /* Internal prototypes */
28 int dkim_receive_getc(void);
29 int dkim_receive_ungetc(int);
30 void dkim_exim_verify_init(void);
31 void dkim_exim_verify_finish(void);
32 uschar *dkim_exim_sign(int, uschar *, uschar *, uschar *, uschar *, uschar *);
33 unsigned int dkim_status_wrap(int, uschar *);