Back to index

opendkim  2.6.2
dkim-canon.h
Go to the documentation of this file.
00001 /*
00002 **  Copyright (c) 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 _DKIM_CANON_H_
00009 #define _DKIM_CANON_H_
00010 
00011 #ifndef lint
00012 static char dkim_canon_h_id[] = "@(#)$Id: dkim-canon.h,v 1.5.42.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 #ifdef HAVE_STDBOOL_H
00020 # include <stdbool.h>
00021 #endif /* HAVE_STDBOOL_H */
00022 
00023 /* libopendkim includes */
00024 #include "dkim.h"
00025 
00026 #define       DKIM_HASHBUFSIZE     4096
00027 
00028 /* prototypes */
00029 extern DKIM_STAT dkim_add_canon __P((DKIM *, _Bool, dkim_canon_t, int,
00030                                      u_char *, struct dkim_header *,
00031                                      ssize_t length, DKIM_CANON **));
00032 extern DKIM_STAT dkim_canon_bodychunk __P((DKIM *, u_char *, size_t));
00033 extern void dkim_canon_cleanup __P((DKIM *));
00034 extern DKIM_STAT dkim_canon_closebody __P((DKIM *));
00035 extern DKIM_STAT dkim_canon_getfinal __P((DKIM_CANON *, u_char **, size_t *));
00036 extern DKIM_STAT dkim_canon_gethashes __P((DKIM_SIGINFO *, void **, size_t *,
00037                                            void **, size_t *));
00038 extern DKIM_STAT dkim_canon_header_string __P((struct dkim_dstring *,
00039                                                dkim_canon_t, unsigned char *,
00040                                                size_t, _Bool));
00041 extern DKIM_STAT dkim_canon_init __P((DKIM *, _Bool, _Bool));
00042 extern u_long dkim_canon_minbody __P((DKIM *));
00043 extern DKIM_STAT dkim_canon_runheaders __P((DKIM *));
00044 extern int dkim_canon_selecthdrs __P((DKIM *, u_char *, struct dkim_header **,
00045                                       int));
00046 extern DKIM_STAT dkim_canon_signature __P((DKIM *, struct dkim_header *));
00047 
00048 #endif /* ! _DKIM_CANON_H_ */