Revert "GnuTLS: remove GNUTLS_E_AGAIN handling"
[exim.git] / src / src / spf.h
CommitLineData
8523533c
TK
1/*************************************************
2* Exim - an Internet mail transport agent *
3*************************************************/
8e669ac1 4
8523533c
TK
5/* Experimental SPF support.
6 Copyright (c) Tom Kistner <tom@duncanthrax.net> 2004
80fea873
JH
7 License: GPL
8 Copyright (c) The Exim Maintainers 2016
9*/
8523533c 10
7952eef9 11#ifdef SUPPORT_SPF
8523533c 12
384152a6 13/* Yes, we do have ns_type. spf.h redefines it if we don't set this. Doh */
bda76da8 14#if !defined(HAVE_NS_TYPE) && defined(NS_INADDRSZ)
80fea873 15# define HAVE_NS_TYPE
6d06cf48 16#endif
8523533c 17#include <spf2/spf.h>
384152a6 18
8523533c
TK
19#include <spf2/spf_dns_resolv.h>
20#include <spf2/spf_dns_cache.h>
21
22typedef struct spf_result_id {
23 uschar *name;
24 int value;
25} spf_result_id;
26
8523533c 27/* prototypes */
85e453f6 28void spf_lib_version_report(FILE *);
73ec116f
JH
29BOOL spf_init(void);
30BOOL spf_conn_init(uschar *, uschar *);
eb52e2cb 31int spf_process(const uschar **, uschar *, int);
53ef3d84 32void spf_response_debug(SPF_response_t *);
65a7d8c3
NM
33
34#define SPF_PROCESS_NORMAL 0
35#define SPF_PROCESS_GUESS 1
36#define SPF_PROCESS_FALLBACK 2
8523533c
TK
37
38#endif