#include "spf_sys_config.h"
#include "spf.h"
#include "spf_dns.h"
#include "spf_internal.h"
#include "spf_dns_internal.h"
#include "spf_dns_test.h"
#include "spf_dns_zone.h"
Go to the source code of this file.
Data Structures | |
struct | SPF_dns_test_data_t |
Defines | |
#define | USE_SPF_SPEC_ZONE |
#define | USE_MAILZONE_ZONE |
#define | USE_EXT_MAILZONE_ZONE |
Functions | |
SPF_dns_server_t * | SPF_dns_test_new (SPF_dns_server_t *layer_below, const char *name, int debug) |
#define USE_EXT_MAILZONE_ZONE |
Definition at line 45 of file spf_dns_test.c.
#define USE_MAILZONE_ZONE |
Definition at line 44 of file spf_dns_test.c.
#define USE_SPF_SPEC_ZONE |
Definition at line 43 of file spf_dns_test.c.
SPF_dns_server_t* SPF_dns_test_new | ( | SPF_dns_server_t * | layer_below, | |
const char * | name, | |||
int | debug | |||
) |
These routines take care of creating/destroying/etc. the objects that hold the DNS layer configuration. SPF_dns_server_t objects contain malloc'ed data, so they must be destroyed when you are finished with them, or you will leak memory.
Definition at line 437 of file spf_dns_test.c.
References array_elem, NULL, SPF_dns_zone_add_str(), SPF_dns_zone_new(), SPF_E_SUCCESS, and SPF_error.