]> Pileus Git - ~andy/fetchmail/blob - md5.h
Compiler warnings fixes, preprocessor and minor general cleanup.
[~andy/fetchmail] / md5.h
1 #ifndef MD5_H
2 #define MD5_H
3 #ifndef HEADER_MD5_H
4 /* Try to avoid clashes with OpenSSL */
5 #define HEADER_MD5_H 
6 #endif
7
8 #include "config.h"
9
10 #if SIZEOF_INT == 4
11 typedef unsigned int uint32;
12 #else
13 typedef unsigned long int uint32;
14 #endif
15
16 struct MD5Context {
17         uint32 buf[4];
18         uint32 bits[2];
19         unsigned char in[64];
20 };
21
22 void MD5Init(struct MD5Context *context);
23 void MD5Update(struct MD5Context *context, unsigned char const *buf,
24                unsigned len);
25 void MD5Final(unsigned char digest[16], struct MD5Context *context);
26 void MD5Transform(uint32 buf[4], uint32 const in[16]);
27
28 char *MD5Digest (unsigned char *s);
29
30 /*
31  * This is needed to make RSAREF happy on some MS-DOS compilers.
32  */
33 typedef struct MD5Context MD5_CTX;
34
35 #endif /* !MD5_H */