X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=md5.h;h=a803803f1c4503a54c1add54d4176b0baec7495f;hp=f825432366f8822b1870a203d0cf72950ba26bb2;hb=6b8e3f7a8d030a75121a72ba89ae8063439aaa6c;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1 diff --git a/md5.h b/md5.h index f825432..a803803 100644 --- a/md5.h +++ b/md5.h @@ -24,39 +24,19 @@ documentation and/or software. */ #ifndef MD5_H -#define MD5_H 1 +#define MD5_H -#include "config.h" - -#include -#if HAVE_INTTYPES_H -# include -#else -# if HAVE_STDINT_H -# include -# endif -#endif - -/* POINTER defines a generic pointer type */ -typedef unsigned char *POINTER; - -#ifndef HAVE_UINT32_T -# if SIZEOF_INT == 4 -typedef unsigned int uint32_t; -# elif SIZEOF_LONG == 4 -typedef unsigned long int uint32_t; -# endif -#endif +#include /* MD5 context. */ typedef struct { - uint32_t state[4]; /* state (ABCD) */ - uint32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */ - unsigned char buffer[64]; /* input buffer */ + uint32_t state[4]; /* state (ABCD) */ + uint32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */ + unsigned char buffer[64]; /* input buffer */ } MD5_CTX; void MD5Init (MD5_CTX *); void MD5Update (MD5_CTX *, unsigned char *, unsigned int); -void MD5Final (unsigned char [16], MD5_CTX *); +void MD5Final (unsigned char[16], MD5_CTX *); #endif