Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ APPEND_RESULT
#define APPEND_RESULT |
( |
|
n | ) |
|
Value: do { \
RESIZE_RESULT(strlen(partial_result)); \
strcat(result, partial_result); \
} while(0)
const char * SPF_strresult(SPF_result_t result)
Definition at line 137 of file spfquery.c.
◆ CONTINUE_ERROR
#define CONTINUE_ERROR do { res = 255; continue; } while(0) |
◆ FAIL_ERROR
#define FAIL_ERROR do { res = 255; goto error; } while(0) |
◆ FALSE
◆ FREE
#define FREE |
( |
|
x, |
|
|
|
f |
|
) |
| do { if ((x)) (f)((x)); (x) = NULL; } while(0) |
◆ FREE_REQUEST
◆ FREE_RESPONSE
◆ RESIZE_RESULT
#define RESIZE_RESULT |
( |
|
n | ) |
|
Value: do { \
result_len = 256 + n; \
result = malloc(result_len); \
result[0] = '\0'; \
} \
else if (strlen(result) + n >= result_len) { \
result_len = result_len + (result_len >> 1) + 8 + n; \
result = realloc(result, result_len); \
} \
} while(0)
Definition at line 126 of file spfquery.c.
◆ SPF_TEST_VERSION
#define SPF_TEST_VERSION "3.0" |
◆ TRUE
◆ WARN_ERROR
#define WARN_ERROR do { res = 255; } while(0) |
◆ X_OR_EMPTY
#define X_OR_EMPTY |
( |
|
x | ) |
((x) ? (x) : "") |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 333 of file spfquery.c.
References APPEND_RESULT, CONTINUE_ERROR, SPF_client_options_t::debug, SPF_client_options_t::explanation, FAIL_ERROR, SPF_client_options_t::fallback, FALSE, FREE, FREE_REQUEST, FREE_RESPONSE, getopt_long_only(), SPF_client_request_t::helo, SPF_client_request_t::ip, SPF_client_options_t::localpolicy, SPF_client_options_t::max_lookup, NULL, optarg, optind, SPF_client_request_t::rcpt_to, SPF_client_options_t::rec_dom, SPF_client_options_t::sanitize, SPF_client_request_t::sender, SPF_DNS_CACHE, SPF_get_lib_version(), SPF_LIB_VERSION_MAJOR, SPF_LIB_VERSION_MINOR, SPF_LIB_VERSION_PATCH, SPF_request_new(), SPF_request_query_fallback(), SPF_request_query_mailfrom(), SPF_request_query_rcptto(), SPF_request_set_env_from(), SPF_request_set_helo_dom(), SPF_request_set_ipv4_str(), SPF_request_set_ipv6_str(), SPF_response_combine(), SPF_response_get_header_comment(), SPF_response_get_received_spf(), SPF_response_get_smtp_comment(), SPF_response_result(), SPF_RESULT_PASS, SPF_server_free(), SPF_server_new(), SPF_server_set_explanation(), SPF_server_set_localpolicy(), SPF_server_set_rec_dom(), SPF_server_set_sanitize(), SPF_TEST_VERSION, TRUE, usage(), SPF_client_options_t::use_trusted, WARN_ERROR, and X_OR_EMPTY.