libspf2  1.2.11
spf_get_spf.c
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of either:
4  *
5  * a) The GNU Lesser General Public License as published by the Free
6  * Software Foundation; either version 2.1, or (at your option) any
7  * later version,
8  *
9  * OR
10  *
11  * b) The two-clause BSD license.
12  *
13  * These licenses can be found with the distribution in the file LICENSES
14  */
15 
16 #include "spf_sys_config.h"
17 
18 #ifdef STDC_HEADERS
19 # include <stdio.h> /* stdin / stdout */
20 # include <stdlib.h> /* malloc / free */
21 #endif
22 
23 #ifdef HAVE_NETDB_H
24 #include <netdb.h>
25 #endif
26 
27 #ifdef HAVE_STRING_H
28 # include <string.h> /* strstr / strdup */
29 #else
30 # ifdef HAVE_STRINGS_H
31 # include <strings.h> /* strstr / strdup */
32 # endif
33 #endif
34 
35 
36 
37 #include "spf.h"
38 #include "spf_dns.h"
39 #include "spf_internal.h"
40 #include "spf_dns_internal.h"
41 
42 /* domain == spf_request->cur_dom */