Back to index

opendkim  2.6.4
opendkim-arf.h
Go to the documentation of this file.
00001 /*
00002 **  Copyright (c) 2008 Sendmail, Inc. and its suppliers.
00003 **     All rights reserved.
00004 **
00005 **  Copyright (c) 2009, 2011, 2012, The OpenDKIM Project.  All rights reserved.
00006 **
00007 **  $Id: opendkim-arf.h,v 1.3 2009/08/03 19:10:47 cm-msk Exp $
00008 */
00009 
00010 #ifndef _DKIM_ARF_H_
00011 #define _DKIM_ARF_H_
00012 
00013 #ifndef lint
00014 static char dkim_arf_h_id[] = "@(#)$Id: opendkim-arf.h,v 1.3 2009/08/03 19:10:47 cm-msk Exp $";
00015 #endif /* !lint */
00016 
00017 /* system includes */
00018 #include <sys/types.h>
00019 
00020 #ifdef __STDC__
00021 # ifndef __P
00022 #  define __P(x)  x
00023 # endif /* ! __P */
00024 #else /* __STDC__ */
00025 # ifndef __P
00026 #  define __P(x)  ()
00027 # endif /* ! __P */
00028 #endif /* __STDC__ */
00029 
00030 #define       ARF_VERSION          "0.1"
00031 
00032 #define       ARF_TYPE_UNKNOWN     (-1)
00033 #define       ARF_TYPE_ABUSE              0
00034 #define       ARF_TYPE_FRAUD              1
00035 #define       ARF_TYPE_VIRUS              2
00036 #define       ARF_TYPE_AUTHFAIL    3
00037 #define       ARF_TYPE_OTHER              4
00038 
00039 #define ARF_DKIMF_UNKNOWN   (-1)
00040 #define ARF_DKIMF_BODYHASH  0
00041 #define ARF_DKIMF_REVOKED   1
00042 #define ARF_DKIMF_SIGNATURE 2
00043 #define ARF_DKIMF_SYNTAX    3
00044 #define ARF_DKIMF_OTHER            4
00045 
00046 #define       ARF_FORMAT_ARF              "arf"
00047 
00048 #define       ARF_OPTIONS_DKIM_ALL "all"
00049 #define       ARF_OPTIONS_DKIM_DNS "d"
00050 #define       ARF_OPTIONS_DKIM_OTHER      "o"
00051 #define       ARF_OPTIONS_DKIM_POLICY     "p"
00052 #define       ARF_OPTIONS_DKIM_SYNTAX     "s"
00053 #define       ARF_OPTIONS_DKIM_VERIFY     "v"
00054 #define       ARF_OPTIONS_DKIM_EXPIRED "x"
00055 
00056 #define       ARF_OPTIONS_ADSP_ALL "all"
00057 #define       ARF_OPTIONS_ADSP_DNS "d"
00058 #define       ARF_OPTIONS_ADSP_OTHER      "o"
00059 #define       ARF_OPTIONS_ADSP_POLICY     "p"
00060 #define       ARF_OPTIONS_ADSP_SIGNED     "s"
00061 #define       ARF_OPTIONS_ADSP_UNSIGNED "u"
00062 
00063 /* prototypes */
00064 extern char *arf_dkim_failure_string __P((int));
00065 extern char *arf_type_string __P((int));
00066 
00067 #endif /* _DKIM_ARF_H_ */