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"
67#define SPF_DEFAULT_EXP "Please%_see%_http://www.openspf.org/Why?id=%{S}&ip=%{C}&receiver=%{R}"
68
69
70
71/* ********************************************************************* */
72
74const char *SPF_strerror( SPF_errcode_t spf_err );
75
76
78const char *SPF_strresult( SPF_result_t result );
80const char *SPF_strreason( SPF_reason_t reason );
81
87void SPF_get_lib_version( int *major, int *minor, int *patch );
88
89const char *SPF_strrrtype(ns_type rr_type);
90
91#endif
ns_type
Autogenerated configuration information - do not edit.
SPF_result_t
SPF_reason_t
SPF_errcode_t
const char * SPF_strerror(SPF_errcode_t spf_err)
const char * SPF_strrrtype(ns_type rr_type)
Definition spf_utils.c:166
void SPF_get_lib_version(int *major, int *minor, int *patch)
Definition spf_utils.c:41
const char * SPF_strresult(SPF_result_t result)
Definition spf_utils.c:84
const char * SPF_strreason(SPF_reason_t reason)
Definition spf_utils.c:131