|
libspf2 1.2.11
|
#include "spf_sys_config.h"#include <ctype.h>#include "spf.h"#include "spf_dns.h"#include "spf_internal.h"#include "spf_dns_internal.h"#include "spf_server.h"
Go to the source code of this file.
Macros | |
| #define | DONE(result, reason, err) |
| #define | DONE_TEMPERR(err) |
| #define | DONE_PERMERR(err) |
| #define | DONE_MECH(result) |
| #define | INET_NTOP(af, src, dst, cnt) |
| #define | SPF_ADD_DNS_MECH() |
| #define | SPF_MAYBE_SKIP_CIDR() |
| #define | SPF_GET_LOOKUP_DATA() |
| #define | SPF_FREE_LOOKUP_DATA() |
Functions | |
| SPF_errcode_t | SPF_i_done (SPF_response_t *spf_response, SPF_result_t result, SPF_reason_t reason, SPF_errcode_t err) |
| SPF_errcode_t | SPF_record_interpret (SPF_record_t *spf_record, SPF_request_t *spf_request, SPF_response_t *spf_response, int depth) |
| #define DONE | ( | result, | |
| reason, | |||
| err ) |
Definition at line 374 of file spf_interpret.c.
Referenced by SPF_record_interpret().
| #define DONE_MECH | ( | result | ) |
| #define DONE_PERMERR | ( | err | ) |
| #define DONE_TEMPERR | ( | err | ) |
| #define INET_NTOP | ( | af, | |
| src, | |||
| dst, | |||
| cnt ) |
Definition at line 418 of file spf_interpret.c.
Referenced by SPF_record_interpret().
| #define SPF_ADD_DNS_MECH | ( | ) |
Referenced by SPF_record_interpret().
| #define SPF_FREE_LOOKUP_DATA | ( | ) |
Referenced by SPF_record_interpret().
| #define SPF_GET_LOOKUP_DATA | ( | ) |
Referenced by SPF_record_interpret().
| #define SPF_MAYBE_SKIP_CIDR | ( | ) |
Referenced by SPF_record_interpret().
| SPF_errcode_t SPF_i_done | ( | SPF_response_t * | spf_response, |
| SPF_result_t | result, | ||
| SPF_reason_t | reason, | ||
| SPF_errcode_t | err ) |
This must be called with EITHER spf_response->spf_record_exp != NULL OR result in { SPF_RESULT_PASS SPF_RESULT_INVALID SPF_RESULT_TEMPERROR SPF_RESULT_PERMERROR } or the library will abort when it tries to generate an explanation.
Definition at line 388 of file spf_interpret.c.
References SPF_ASSERT_NOTNULL.
Referenced by SPF_request_query_fallback(), SPF_request_query_mailfrom(), and SPF_request_query_rcptto().
| SPF_errcode_t SPF_record_interpret | ( | SPF_record_t * | spf_record, |
| SPF_request_t * | spf_request, | ||
| SPF_response_t * | spf_response, | ||
| int | depth ) |
Definition at line 585 of file spf_interpret.c.
References SPF_dns_rr_data_t::a, SPF_dns_rr_data_t::aaaa, DONE, DONE_MECH, DONE_PERMERR, DONE_TEMPERR, FALSE, SPF_dns_rr_t::herrno, INET_NTOP, MECH_A, MECH_ALL, MECH_EXISTS, MECH_INCLUDE, MECH_IP4, MECH_IP6, MECH_MX, MECH_PTR, MECH_REDIRECT, SPF_mech_t::mech_type, SPF_dns_rr_data_t::mx, ns_t_a, ns_t_aaaa, ns_t_mx, ns_t_ptr, NULL, SPF_dns_rr_t::num_rr, PREFIX_FAIL, PREFIX_SOFTFAIL, SPF_mech_t::prefix_type, PREFIX_UNKNOWN, SPF_dns_rr_data_t::ptr, SPF_dns_rr_t::rr, SPF_dns_rr_t::rr_type, SPF_ADD_DNS_MECH, SPF_ASSERT_NOTNULL, SPF_debugf, SPF_dns_lookup(), SPF_dns_rlookup(), SPF_dns_rlookup6(), SPF_dns_rr_free(), SPF_E_BIG_DNS, SPF_E_DNS_ERROR, SPF_E_INCLUDE_RETURNED_NONE, SPF_E_NO_MEMORY, SPF_E_NOT_CONFIG, SPF_E_RECURSIVE, SPF_E_SUCCESS, SPF_E_UNKNOWN_MECH, SPF_FREE_LOOKUP_DATA, SPF_GET_LOOKUP_DATA, SPF_MAYBE_SKIP_CIDR, SPF_REASON_DEFAULT, SPF_REASON_LOCALHOST, SPF_REASON_MECH, SPF_REASON_NONE, SPF_record_expand_data(), SPF_record_free(), SPF_record_interpret(), SPF_request_is_loopback(), SPF_response_errcode(), SPF_response_free(), SPF_response_new(), SPF_response_result(), SPF_RESULT_FAIL, SPF_RESULT_INVALID, SPF_RESULT_NEUTRAL, SPF_RESULT_NONE, SPF_RESULT_PASS, SPF_RESULT_PERMERROR, SPF_RESULT_SOFTFAIL, SPF_RESULT_TEMPERROR, SPF_server_get_record(), SPF_strerror(), SPF_strreason(), SPF_strresult(), TRUE, and TRY_AGAIN.
Referenced by SPF_record_interpret().
