libspf v1.0: spfquery.h Source File

Main Page | Data Structures | File List | Data Fields | Globals | Search for

# spfquery.h

Go to the documentation of this file.

    00001 /* libspf - Sender Policy Framework library
    00002 *
    00003 *  ANSI C implementation of spf-draft-200405.txt
    00004 *
    00005 *  Author: James Couzens <jcouzens@codeshare.ca>
    00006 *
    00007 *  File:   spfquery.c
    00008 *  Desc:   SPF Query Tool (an example implementation of libSPF)
    00009 *
    00010 *  License:
    00011 *
    00012 *  The libspf Software License, Version 1.0
    00013 *
    00014 *  Copyright (c) 2004 James Couzens & Sean Comeau  All rights
    00015 *  reserved.
    00016 *
    00017 *  Redistribution and use in source and binary forms, with or without
    00018 *  modification, are permitted provided that the following conditions
    00019 *  are met:
    00020 *
    00021 *  1. Redistributions of source code must retain the above copyright
    00022 *     notice, this list of conditions and the following disclaimer.
    00023 *
    00024 *  2. Redistributions in binary form must reproduce the above copyright
    00025 *     notice, this list of conditions and the following disclaimer in
    00026 *     the documentation and/or other materials provided with the
    00027 *     distribution.
    00028 *
    00029 *  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    00030 *  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    00031 *  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    00032 *  DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS MAKING USE OF THIS LICESEN
    00033 *  OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    00034 *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    00035 *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    00036 *  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    00037 *  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    00038 *  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    00039 *  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    00040 *  SUCH DAMAGE.
    00041 *
    00042 */
    00043
    00044 #ifndef _SPF_QUERY_H
    00045 #define _SPF_QUERY_H 1
    00046
    00047 #include <stdio.h>
    00048 #include <stdlib.h>
    00049 #include <string.h>
    00050 #include "../../src/libspf/spf.h"
    00051
    00052 __BEGIN_DECLS
    00053
    00054 #define SPFQUERY_VERSION  "0.1"        /* version */
    00055 #define HELO_HOST         "nobody"     /* default HELO host if none */
    00056 #define HOSTNAME          "libspf.org" /* hostname */
    00057
    00058 int main(int argc, char *argv[]);
    00059 void SPF_usage();
    00060
    00061 __END_DECLS
    00062
    00063 #endif
    00064
    00065 /* end spfquery.h */