libspf2 1.2.10
|
00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of either: 00004 * 00005 * a) The GNU Lesser General Public License as published by the Free 00006 * Software Foundation; either version 2.1, or (at your option) any 00007 * later version, 00008 * 00009 * OR 00010 * 00011 * b) The two-clause BSD license. 00012 * 00013 * These licenses can be found with the distribution in the file LICENSES 00014 */ 00015 00016 #include "spf_sys_config.h" 00017 00018 #ifdef STDC_HEADERS 00019 # include <stdio.h> /* stdin / stdout */ 00020 # include <stdlib.h> /* malloc / free */ 00021 #endif 00022 00023 #ifdef HAVE_NETDB_H 00024 #include <netdb.h> 00025 #endif 00026 00027 #ifdef HAVE_STRING_H 00028 # include <string.h> /* strstr / strdup */ 00029 #else 00030 # ifdef HAVE_STRINGS_H 00031 # include <strings.h> /* strstr / strdup */ 00032 # endif 00033 #endif 00034 00035 00036 00037 #include "spf.h" 00038 #include "spf_dns.h" 00039 #include "spf_internal.h" 00040 #include "spf_dns_internal.h" 00041 00042 /* domain == spf_request->cur_dom */