"Fossies" - the Fresh Open Source Software Archive

Member "libspf2-1.2.10/src/libspf2/spf_get_spf.c" (28 Jan 2012, 892 Bytes) of package /linux/privat/libspf2-1.2.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "spf_get_spf.c" see the Fossies "Dox" file reference documentation.

    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 */