X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fmd5.h;h=71e8b00e2dde9e481384b43866c9b0e091ac3408;hp=535b18d4b730016ae7252abca70201e3f35c2e2e;hb=9e05a25d76b3f83096c661678010320df673df6b;hpb=0b63a24d54ba4708c88e31bdd74b0145956c1478 diff --git a/pppd/md5.h b/pppd/md5.h index 535b18d..71e8b00 100644 --- a/pppd/md5.h +++ b/pppd/md5.h @@ -40,7 +40,14 @@ #ifndef __MD5_INCLUDE__ /* typedef a 32-bit type */ -typedef unsigned long int UINT4; +#ifdef _LP64 +typedef unsigned int UINT4; +typedef int INT4; +#else +typedef unsigned long UINT4; +typedef long INT4; +#endif +#define _UINT4_T /* Data structure for MD5 (Message-Digest) computation */ typedef struct { @@ -50,9 +57,9 @@ typedef struct { unsigned char digest[16]; /* actual digest after MD5Final call */ } MD5_CTX; -void MD5Init (); -void MD5Update (); -void MD5Final (); +void MD5_Init (MD5_CTX *mdContext); +void MD5_Update (MD5_CTX *mdContext, unsigned char *inBuf, unsigned int inLen); +void MD5_Final (unsigned char hash[], MD5_CTX *mdContext); #define __MD5_INCLUDE__ #endif /* __MD5_INCLUDE__ */