#include "spf_response.h"
#include "spf_request.h"
#include "spf_server.h"
Include dependency graph for spf_record.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
The compiled form of the SPF record is as follows:
* A four byte header which contains the version, and information about the mechanisms and modifiers
* Mechanism information, repeated once for each mechanism
* A two byte header describing the mechanism
* Data associated with the mechanism. This can be of several forms
* ip4/ip6 have a fixed format data field, cidr length is in the mechanism's parm_len field
* Mechanisms that allow a macro-string
* Optional two byte CIDR length structure. (Yes, this is at the beginning, rather than at the end.)
* tokenized data description blocks that can be either:
* two byte macro variable description
* two byte string description, followed by the string
* Modifier information, repeated once for each modifier
* two byte header describing the modifier
* name of the modifier
* tokenized data description blocks that can be either:
* two byte macro variable description
* two byte string description, followed by the string
Definition in file spf_record.h.
|
Definition at line 163 of file spf_record.h. Referenced by SPF_record_compile(). |
|
Definition at line 170 of file spf_record.h. Referenced by SPF_record_compile(), and SPF_record_interpret(). |
|
Definition at line 169 of file spf_record.h. Referenced by SPF_record_compile(). |
|
Definition at line 166 of file spf_record.h. Referenced by SPF_record_compile(). |
|
Definition at line 167 of file spf_record.h. Referenced by SPF_record_compile(). |
|
Definition at line 168 of file spf_record.h. Referenced by SPF_record_compile(). |
|
Definition at line 164 of file spf_record.h. Referenced by SPF_record_compile(). |
|
Definition at line 165 of file spf_record.h. Referenced by SPF_record_compile(). |
|
Definition at line 171 of file spf_record.h. Referenced by SPF_record_compile(). |
|
Mechanisms Return PERMERROR Definition at line 162 of file spf_record.h. |
|
CIDR lengths (IPv4 and v6) Definition at line 99 of file spf_record.h. Referenced by SPF_record_expand_data(). |
|
p = SMTP client domain name Definition at line 95 of file spf_record.h. Referenced by SPF_record_expand_data(). |
|
i = SMTP client IP Definition at line 92 of file spf_record.h. Referenced by SPF_record_expand_data(). |
|
c = SMTP client IP (pretty) Definition at line 93 of file spf_record.h. Referenced by SPF_record_expand_data(). |
|
v = IP ver str - in-addr/ip6 Definition at line 96 of file spf_record.h. Referenced by SPF_record_expand_data(). |
|
d = current-domain Definition at line 91 of file spf_record.h. Referenced by SPF_record_expand_data(). |
|
o = envelope-domain Definition at line 90 of file spf_record.h. Referenced by SPF_record_expand_data(). |
|
s = envelope-sender Definition at line 89 of file spf_record.h. Referenced by SPF_record_expand_data(). |
|
h = HELO/EHLO domain Definition at line 97 of file spf_record.h. Referenced by SPF_record_expand_data(). |
|
Tokens and macros to be expanded in SPF_data_str_t in mech/mod l = local-part of envelope-sender Definition at line 88 of file spf_record.h. Referenced by SPF_record_expand_data(). |
|
r = receiving domain Definition at line 98 of file spf_record.h. Referenced by SPF_record_expand_data(). |
|
literal string Definition at line 100 of file spf_record.h. Referenced by SPF_record_expand_data(). |
|
t = time in UTC epoch secs Definition at line 94 of file spf_record.h. Referenced by SPF_record_expand_data(). |
|
Definition at line 154 of file spf_record.h. Referenced by SPF_record_compile(), SPF_record_interpret(), and SPF_record_stringify(). |
|
Definition at line 156 of file spf_record.h. Referenced by SPF_record_compile(), and SPF_record_stringify(). |
|
Prefixes Definition at line 153 of file spf_record.h. Referenced by SPF_record_compile(), and SPF_record_stringify(). |
|
Definition at line 155 of file spf_record.h. Referenced by SPF_record_compile(), SPF_record_interpret(), and SPF_record_stringify(). |
|
Definition at line 157 of file spf_record.h. Referenced by SPF_record_compile(), SPF_record_interpret(), and SPF_record_stringify(). |
|
Definition at line 77 of file spf_record.h. |
|
Definition at line 78 of file spf_record.h. Referenced by SPF_record_compile_macro(). |
|
Definition at line 73 of file spf_record.h. |
|
|
|
|
|
|
|
|
|
Definition at line 23 of file spf_record.h. |
|
|
|
|
|
Definition at line 22 of file spf_record.h. |
|
Definition at line 73 of file spf_record.c. Referenced by SPF_request_get_exp(), SPF_server_free(), and SPF_server_set_explanation(). |
|
|
Definition at line 1499 of file spf_compile.c. References ALIGN_DECL, ALIGNED_DECL, SPF_E_BIG_MOD, SPF_E_NO_MEMORY, SPF_E_SUCCESS, SPF_MAX_MOD_LEN, and TRUE. Referenced by SPF_request_get_exp(), and SPF_server_set_explanation(). |
|
|
Definition at line 126 of file spf_record.c. References SPF_ASSERT_NOTNULL, and SPF_record_expand_data(). Referenced by SPF_request_get_exp(). Here is the call graph for this function: ![]() |
|
Definition at line 63 of file spf_record.c. References SPF_record_struct::mech_first, and SPF_record_struct::mod_first. Referenced by main(), SPF_server_free(), and SPF_server_set_localpolicy(). |
|
Definition at line 585 of file spf_interpret.c. References SPF_request_struct::client_ver, SPF_request_struct::cur_dom, DONE, DONE_PERMERR, FALSE, SPF_server_struct::local_policy, MECH_ALL, SPF_record_struct::mech_first, SPF_mech_struct::mech_type, NULL, SPF_record_struct::num_mech, PREFIX_FAIL, PREFIX_SOFTFAIL, SPF_mech_struct::prefix_type, PREFIX_UNKNOWN, SPF_ASSERT_NOTNULL, SPF_E_NOT_CONFIG, SPF_E_RECURSIVE, SPF_E_SUCCESS, SPF_REASON_LOCALHOST, SPF_response_struct::spf_record_exp, SPF_request_is_loopback(), SPF_RESULT_PASS, SPF_record_struct::spf_server, TRUE, and SPF_request_struct::use_local_policy. Here is the call graph for this function: ![]() |
|
In spf_record.c Definition at line 48 of file spf_record.c. References SPF_record_struct::spf_server. Referenced by SPF_record_compile(). |
|
In spf_print.c Definition at line 45 of file spf_print.c. References SPF_record_struct::mech_len, SPF_record_struct::mod_len, NULL, SPF_record_struct::num_mech, SPF_record_struct::num_mod, SPF_E_RESULT_UNKNOWN, SPF_E_SUCCESS, SPF_info, SPF_infof, SPF_record_stringify(), SPF_strerror(), and SPF_record_struct::version. Here is the call graph for this function: ![]() |
|
Definition at line 245 of file spf_id2str.c. References SPF_record_struct::mech_first, SPF_record_struct::mech_len, SPF_record_struct::mod_len, SPF_record_struct::num_mech, PREFIX_FAIL, PREFIX_NEUTRAL, PREFIX_PASS, PREFIX_SOFTFAIL, SPF_mech_struct::prefix_type, PREFIX_UNKNOWN, SPF_ASSERT_NOTNULL, SPF_debugf, SPF_E_INTERNAL_ERROR, SPF_E_INVALID_PREFIX, SPF_E_RESULT_UNKNOWN, SPF_E_SUCCESS, SPF_recalloc(), SPF_VER_STR, and SPF_record_struct::version. Referenced by SPF_record_print(). Here is the call graph for this function: ![]() |