Back to index

opendkim  2.6.2
reputation.h
Go to the documentation of this file.
00001 /*
00002 **  Copyright (c) 2007 Sendmail, Inc. and its suppliers.
00003 **     All rights reserved.
00004 **
00005 **  Copyright (c) 2011, 2012, The OpenDKIM Project.  All rights reserved.
00006 **
00007 **  $Id: reputation.h,v 1.10.2.1 2010/10/27 21:43:09 cm-msk Exp $
00008 */
00009 
00010 #ifndef _REPUTATION_H_
00011 #define _REPUTATION_H_
00012 
00013 #ifndef lint
00014 static char reputaton_h_id[] = "@(#)$Id: stats.h,v 1.10.2.1 2010/10/27 21:43:09 cm-msk Exp $";
00015 #endif /* !lint */
00016 
00017 /* system includes */
00018 #include <sys/param.h>
00019 #include <sys/types.h>
00020 
00021 /* opendkim includes */
00022 #include "opendkim.h"
00023 #include "opendkim-db.h"
00024 
00025 /* definitions */
00026 #define       DKIMF_REP_DEFCACHETTL       3600
00027 #define       DKIMF_REP_DEFFACTOR  1
00028 
00029 /* data types */
00030 struct reputation;
00031 typedef struct reputation * DKIMF_REP;
00032 
00033 /* PROTOTYPES */
00034 extern int dkimf_rep_init __P((DKIMF_REP *, time_t, unsigned int, unsigned int,
00035                                char *, char *, DKIMF_DB, DKIMF_DB, DKIMF_DB,
00036                                DKIMF_DB));
00037 extern int dkimf_rep_check __P((DKIMF_REP, DKIM_SIGINFO *, _Bool,
00038                                 void *, size_t, unsigned long *, float *,
00039                                 unsigned long *, unsigned long *,
00040                                 char *, size_t));
00041 extern int dkimf_rep_chown_cache __P((DKIMF_REP, uid_t));
00042 extern void dkimf_rep_close __P((DKIMF_REP));
00043 
00044 #endif /* _REPUTATION_H_ */