Back to index

opendkim  2.6.6
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_resolvconf __P((struct dkimf_unbound *, char *));
00046 extern int dkimf_unbound_add_trustanchor __P((struct dkimf_unbound *, char *));
00047 extern int dkimf_unbound_close __P((struct dkimf_unbound *));
00048 extern int dkimf_unbound_init __P((struct dkimf_unbound **));
00049 extern int dkimf_unbound_setup __P((DKIM_LIB *, struct dkimf_unbound *));
00050 # ifdef _FFR_RBL
00051 extern int dkimf_rbl_unbound_setup __P((RBL *, struct dkimf_unbound *));
00052 # endif /* _FFR_RBL */
00053 # ifdef _FFR_DKIM_REPUTATION
00054 extern int dkimf_rep_unbound_setup __P((DKIM_REP, struct dkimf_unbound *));
00055 # endif /* _FFR_DKIM_REPUTATION */
00056 #endif /* USE_UNBOUND */
00057 
00058 #ifdef USE_ARLIB
00059 /* libar includes */
00060 #include <async-resolv.h>
00061 
00062 /* prototypes */
00063 extern int dkimf_arlib_setup __P((DKIM_LIB *, AR_LIB));
00064 # ifdef _FFR_RBL
00065 extern int dkimf_rbl_arlib_setup __P((RBL *, AR_LIB));
00066 # endif /* _FFR_RBL */
00067 # ifdef _FFR_DKIM_REPUTATION
00068 extern int dkimf_rep_arlib_setup __P((DKIM_REP, AR_LIB));
00069 # endif /* _FFR_DKIM_REPUTATION */
00070 #endif /* USE_ARLIB */
00071 
00072 extern int dkimf_filedns_free __P((struct dkimf_filedns *));
00073 extern int dkimf_filedns_setup __P((DKIM_LIB *, DKIMF_DB));
00074 
00075 #endif /* _OPENDKIM_DNS_H_ */