X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmd5.h;h=662eb4126085c6f48ada54d41cea54ba7b2fd3e9;hb=bdd34ab1f2f87acb23c6d92feee7354ac53005ff;hp=7492b2228e2bee024cfca3e5a73dc9567ef265bd;hpb=0dcd8b3af72b0f9fe572b2e7f2bc7c0fa02bbf5e;p=ppp.git diff --git a/pppd/md5.h b/pppd/md5.h index 7492b22..662eb41 100644 --- a/pppd/md5.h +++ b/pppd/md5.h @@ -36,11 +36,23 @@ ** documentation and/or software. ** *********************************************************************** */ +#include "pppdconf.h" #ifndef __MD5_INCLUDE__ +#define __MD5_INCLUDE__ +#ifndef USE_MD5 +#include +#else /* typedef a 32-bit type */ +#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 +62,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 /* USE_MD5 */ #endif /* __MD5_INCLUDE__ */