Back to index

opendkim  2.6.2
util.h
Go to the documentation of this file.
00001 /*
00002 **  Copyright (c) 2005, 2007, 2008 Sendmail, Inc. and its suppliers.
00003 **    All rights reserved.
00004 **
00005 **  Copyright (c) 2009-2011, The OpenDKIM Project.  All rights reserved.
00006 */
00007 
00008 #ifndef _UTIL_H_
00009 #define _UTIL_H_
00010 
00011 #ifndef lint
00012 static char util_h_id[] = "@(#)$Id: util.h,v 1.5.10.1 2010/10/27 21:43:08 cm-msk Exp $";
00013 #endif /* !lint */
00014 
00015 #include "build-config.h"
00016 
00017 /* system includes */
00018 #include <sys/types.h>
00019 #include <sys/time.h>
00020 #ifdef USE_UNBOUND
00021 # include <sys/select.h>
00022 #endif /* USE_UNBOUND */
00023 #ifdef HAVE_STDBOOL_H
00024 # include <stdbool.h>
00025 #endif /* HAVE_STDBOOL_H */
00026 
00027 /* prototypes */
00028 extern int dkim_addrcmp __P((u_char *, u_char *));
00029 extern int dkim_check_dns_reply __P((unsigned char *ansbuf, size_t anslen,
00030                                      int xclass, int xtype));
00031 extern void dkim_clobber_array __P((char **));
00032 extern void dkim_collapse __P((u_char *));
00033 extern const char **dkim_copy_array __P((char **));
00034 extern _Bool dkim_hdrlist __P((u_char *, size_t, u_char **, _Bool));
00035 extern int dkim_hexchar __P((int c));
00036 extern void dkim_lowerhdr __P((u_char *));
00037 extern void dkim_min_timeval __P((struct timeval *, struct timeval *,
00038                                   struct timeval *, struct timeval **));
00039 extern int dkim_qp_decode __P((u_char *, u_char *, int));
00040 
00041 #ifdef NEED_FAST_STRTOUL
00042 extern unsigned long dkim_strtoul __P((const char *str, char **endptr,
00043                                        int base));
00044 extern unsigned long long dkim_strtoull __P((const char *str, char **endptr,
00045                                              int base));
00046 #endif /* NEED_FAST_STRTOUL */
00047 
00048 #endif /* ! _UTIL_H_ */