#include "spf_record.h"
Include dependency graph for spf_internal.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | TRUE 1 |
#define | FALSE 0 |
#define | NULL ((void *)0) |
#define | array_elem(x) ((long int)(sizeof( x ) / sizeof( *x ))) |
#define | SPF_MAX_DNS_MECH 10 |
#define | SPF_MAX_DNS_PTR 10 |
#define | SPF_MAX_DNS_MX 10 |
#define | _ALIGN_SZ 4 |
#define | SPF_WRAP_FUNCTION(name, proto, args) |
Functions | |
char * | SPF_sanitize (SPF_server_t *spf_server, char *str) |
void | SPF_print_sizeof (void) |
SPF_errcode_t | SPF_recalloc (char **bufp, size_t *buflenp, size_t buflen) __attribute__((warn_unused_result)) |
|
Definition at line 73 of file spf_internal.h. |
|
Definition at line 31 of file spf_internal.h. Referenced by SPF_dns_test_new(), and SPF_record_expand_data(). |
|
Definition at line 24 of file spf_internal.h. Referenced by SPF_dns_get_client_dom(), SPF_record_interpret(), and SPF_request_is_loopback(). |
|
|
It is a bad idea to change this for two reasons. First, the obvious reason is the delays caused on the mail server you are running. DNS lookups that timeout can be *very* time consuming, and even successful DNS lookups can take 200-500ms. Many MTAs can't afford to wait long and even 2sec is pretty bad. The second, and more important reason, is the SPF records come from a third party which may be malicious. This third party can direct DNS lookups to be sent to anyone. If there isn't a limit, then it is easy for someone to create a distributed denial of service attack simply by sending a bunch of emails. Unlike the delays on your system caused by many DNS lookups, you might not even notice that you are being used as part of a DDoS attack. Definition at line 55 of file spf_internal.h. |
|
It is a bad idea to change this for the same reasons as mentioned above for SPF_MAX_DNS_MECH Definition at line 69 of file spf_internal.h. |
|
It is a bad idea to change this for the same reasons as mentioned above for SPF_MAX_DNS_MECH Definition at line 62 of file spf_internal.h. Referenced by SPF_dns_get_client_dom(). |
|
Value: SPF_errcode_t name proto { \ SPF_errcode_t err = name ## _real args; \ SPF_debug(#name " returns %d\n", err); \ return err; \ } \ SPF_errcode_t name ## _real proto Definition at line 158 of file spf_internal.h. |
|
Definition at line 23 of file spf_internal.h. Referenced by main(), SPF_dns_zone_add_str(), SPF_record_compile_macro(), SPF_record_interpret(), SPF_request_get_exp(), SPF_request_is_loopback(), and SPF_server_get_record(). |
|
Definition at line 82 of file spf_print.c. References SPF_infof. |
|
This is NOT a general-purpose realloc. It is used only for text buffers. It will allocate at least 64 bytes of storage. This function is allowed to zero all the RAM returned, so it really isn't a realloc. Do not call this function from outside the library. Definition at line 188 of file spf_utils.c. References NULL, SPF_ASSERT_NOTNULL, SPF_E_NO_MEMORY, and SPF_E_SUCCESS. Referenced by SPF_record_stringify(). |
|
Sanitizes a string for printing. This replaces all nonprintable characters in str with a '?'. The source string is modified in-place. Definition at line 54 of file spf_utils.c. References NULL, SPF_server_struct::sanitize, and SPF_ASSERT_NOTNULL. |