/* ** Copyright (c) 2005, 2007 Sendmail, Inc. and its suppliers. ** All rights reserved. */ #ifndef _UTIL_H_ #define _UTIL_H_ #ifndef lint static char util_h_id[] = "@(#)$Id: util.h,v 1.13 2007/12/17 23:59:01 msk Exp $"; #endif /* !lint */ /* system includes */ #include /* libsm includes */ #include #include #include /* prototypes */ extern int dkim_addrcmp __P((u_char *, u_char *)); extern void dkim_collapse __P((u_char *)); extern bool dkim_hdrlist __P((u_char *, size_t, u_char **, bool)); extern int dkim_hexchar __P((int c)); extern bool dkim_islwsp __P((u_int)); extern void dkim_lowerhdr __P((u_char *)); extern int dkim_qp_decode __P((u_char *, u_char *, int)); /* ** DKIM_STRTOUL -- convert string to unsigned long ** ** Parameters: ** str -- string to convert ** endptr -- pointer to store string after value ** base -- base to convert from ** ** Return value: ** Value of string as unsigned long */ extern unsigned long dkim_strtoul(const char *str, char **endptr, int base); /* ** DKIM_STRTOULL -- convert string to unsigned long long ** ** Parameters: ** str -- string to convert ** endptr -- pointer to store string after value ** base -- base to convert from ** ** Return value: ** Value of string as unsigned long long */ extern unsigned long long dkim_strtoull(const char *str, char **endptr, int base); #endif /* ! _UTIL_H_ */