Back to index

opendkim  2.6.2
opendkim-dns.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-2012, The OpenDKIM Project.  All rights reserved.
00006 */
00007 
00008 #ifndef _OPENDKIM_DNS_H_
00009 #define _OPENDKIM_DNS_H_
00010 
00011 #ifndef lint
00012 static char opendkim_dns_h_id[] = "@(#)$Id: opendkim-dns.h,v 1.2 2010/08/30 22:01:56 cm-msk Exp $";
00013 #endif /* !lint */
00014 
00015 /* system includes */
00016 #include <sys/types.h>
00017 
00018 /* libopendkim includes */
00019 #include <dkim.h>
00020 
00021 /* opendkim includes */
00022 #include "opendkim-db.h"
00023 
00024 #ifdef _FFR_RBL
00025 /* librbl includes */
00026 # include <rbl.h>
00027 #endif /* _FFR_RBL */
00028 
00029 #ifdef _FFR_DKIM_REPUTATION
00030 /* libdkimrep includes */
00031 # include <dkim-rep.h>
00032 #endif /* _FFR_DKIM_REPUTATION */
00033 
00034 struct dkimf_filedns;
00035 
00036 #ifdef USE_UNBOUND
00037 /* libunbound includes */
00038 # include <unbound.h>
00039 
00040 /* data types */
00041 struct dkimf_unbound;
00042 
00043 /* prototypes */
00044 extern int dkimf_unbound_add_conffile __P((struct dkimf_unbound *, char *));
00045 extern int dkimf_unbound_add_trustanchor __P((struct dkimf_unbound *, char *));
00046 extern int dkimf_unbound_close __P((struct dkimf_unbound *));
00047 extern int dkimf_unbound_init __P((struct dkimf_unbound **));
00048 extern int dkimf_unbound_setup __P((DKIM_LIB *, struct dkimf_unbound *));
00049 # ifdef _FFR_RBL
00050 extern int dkimf_rbl_unbound_setup __P((RBL *, struct dkimf_unbound *));
00051 # endif /* _FFR_RBL */
00052 # ifdef _FFR_DKIM_REPUTATION
00053 extern int dkimf_rep_unbound_setup __P((DKIM_REP, struct dkimf_unbound *));
00054 # endif /* _FFR_DKIM_REPUTATION */
00055 #endif /* USE_UNBOUND */
00056 
00057 #ifdef USE_ARLIB
00058 /* libar includes */
00059 #include <async-resolv.h>
00060 
00061 /* prototypes */
00062 extern int dkimf_arlib_setup __P((DKIM_LIB *, AR_LIB));
00063 # ifdef _FFR_RBL
00064 extern int dkimf_rbl_arlib_setup __P((RBL *, AR_LIB));
00065 # endif /* _FFR_RBL */
00066 # ifdef _FFR_DKIM_REPUTATION
00067 extern int dkimf_rep_arlib_setup __P((DKIM_REP, AR_LIB));
00068 # endif /* _FFR_DKIM_REPUTATION */
00069 #endif /* USE_ARLIB */
00070 
00071 extern int dkimf_filedns_free __P((struct dkimf_filedns *));
00072 extern int dkimf_filedns_setup __P((DKIM_LIB *, DKIMF_DB));
00073 
00074 #endif /* _OPENDKIM_DNS_H_ */