#include "spf_dns.h"
Go to the source code of this file.
Functions | |
SPF_dns_server_t * | SPF_dns_test_new (SPF_dns_server_t *layer_below, const char *name, int debug) |
The test DNS layer is actually just a thin wrapper around the zone DNS layer. It provides all the DNS information needed to do the SPF regression tests. This happens to be useful to me when I'm developing the library on my laptop and am not connected to the net.
While multiple test DNS layers can be created, I can't see any use for more than one.
For an overview of the DNS layer system, see spf_dns.h
Definition in file spf_dns_test.h.
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.