libspf2  1.2.11
spf.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of either:
4  *
5  * a) The GNU Lesser General Public License as published by the Free
6  * Software Foundation; either version 2.1, or (at your option) any
7  * later version,
8  *
9  * OR
10  *
11  * b) The two-clause BSD license.
12  *
13  * These licenses can be found with the distribution in the file LICENSES
14  */
15 
16 #ifndef __GNUC__
17 #define __attribute__(x)
18 #endif
19 
20 
21 #ifndef INC_SPF
22 #define INC_SPF
23 
24 
25 #include "spf_lib_version.h"
26 
27 #include "spf_server.h"
28 #include "spf_request.h"
29 #include "spf_response.h"
30 #include "spf_dns.h"
31 #include "spf_log.h"
32 
33 
34 #define SPF_VERSION 1
35 #define SPF_VER_STR "v=spf1"
36 
37 
38 /* ********************************************************************* */
39 
40 
46 #define SPF_C_ERR_MSG_SIZE (2*80)
47 #define SPF_SMTP_COMMENT_SIZE (4*80)
48 #define SPF_RECEIVED_SPF_SIZE (6*80)
49 #define SPF_SYSLOG_SIZE (10*80)
50 
51 
52 
53 
54 /* ********************************************************************* */
55 
59 #define SPF_DEFAULT_MAX_DNS_MECH 10
60 #define SPF_DEFAULT_MAX_DNS_PTR 10
61 #define SPF_DEFAULT_MAX_DNS_MX 10
62 #define SPF_DEFAULT_SANITIZE 1
63 #define SPF_DEFAULT_WHITELIST "include:spf.trusted-forwarder.org"
64 #define SPF_EXP_MOD_NAME "exp-text"
65 
67 #define SPF_DEFAULT_EXP "Please%_see%_http://www.openspf.org/Why?id=%{S}&ip=%{C}&receiver=%{R}"
68 
69 
70 
71 /* ********************************************************************* */
72 
74 const char *SPF_strerror( SPF_errcode_t spf_err );
75 
76 
78 const char *SPF_strresult( SPF_result_t result );
80 const char *SPF_strreason( SPF_reason_t reason );
81 
87 void SPF_get_lib_version( int *major, int *minor, int *patch );
88 
89 const char *SPF_strrrtype(ns_type rr_type);
90 
91 #endif
SPF_strerror
const char * SPF_strerror(SPF_errcode_t spf_err)
Definition: spf_strerror.c:33
spf_request.h
SPF_errcode_t
SPF_errcode_t
Definition: spf_response.h:118
SPF_strreason
const char * SPF_strreason(SPF_reason_t reason)
Definition: spf_utils.c:131
spf_log.h
spf_dns.h
ns_type
int ns_type
Definition: spf_dns.h:85
SPF_strresult
const char * SPF_strresult(SPF_result_t result)
Definition: spf_utils.c:84
spf_response.h
spf_lib_version.h
Autogenerated configuration information - do not edit.
spf_server.h
SPF_get_lib_version
void SPF_get_lib_version(int *major, int *minor, int *patch)
Definition: spf_utils.c:41
SPF_strrrtype
const char * SPF_strrrtype(ns_type rr_type)
Definition: spf_utils.c:166