X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmd4.h;h=546ea02a8d6967affb32153ae60c1be6c815af07;hb=607d8eadccfd62c1fa84a36bd1440bd48b4e55ca;hp=23716d6208778ce7b212f95385de17353ea32f76;hpb=e28f47d5e53abe7317d9a82703bbbee044482d4f;p=ppp.git diff --git a/pppd/md4.h b/pppd/md4.h index 23716d6..546ea02 100644 --- a/pppd/md4.h +++ b/pppd/md4.h @@ -7,6 +7,17 @@ ** (C) 1990 RSA Data Security, Inc. ** ** ******************************************************************** */ +#ifndef PPP_MD4_H +#define PPP_MD4_H + +#include "pppdconf.h" + +#ifndef USE_MD4 +#include +#define MD4Init MD4_Init +#define MD4Update MD4_Update +#define MD4Final MD4_Final +#else /* MDstruct is the data structure for a message digest computation. */ @@ -20,7 +31,7 @@ typedef struct { ** Initialize the MD4_CTX prepatory to doing a message digest ** computation. */ -extern void MD4Init __P((MD4_CTX *MD)); +extern void MD4Init(MD4_CTX *MD); /* MD4Update(MD,X,count) ** Input: X -- a pointer to an array of unsigned characters. @@ -34,7 +45,7 @@ extern void MD4Init __P((MD4_CTX *MD)); ** every MD computation should end with one call to MD4Update with a ** count less than 512. Zero is OK for a count. */ -extern void MD4Update __P((MD4_CTX *MD, unsigned char *X, unsigned int count)); +extern void MD4Update(MD4_CTX *MD, unsigned char *X, unsigned int count); /* MD4Print(MD) ** Prints message digest buffer MD as 32 hexadecimal digits. @@ -42,14 +53,16 @@ extern void MD4Update __P((MD4_CTX *MD, unsigned char *X, unsigned int count)); ** of buffer[3]. ** Each byte is printed with high-order hexadecimal digit first. */ -extern void MD4Print __P((MD4_CTX *)); +extern void MD4Print(MD4_CTX *); /* MD4Final(buf, MD) ** Returns message digest from MD and terminates the message ** digest computation. */ -extern void MD4Final __P((unsigned char *, MD4_CTX *)); +extern void MD4Final(unsigned char *, MD4_CTX *); /* ** End of md4.h ****************************(cut)***********************************/ +#endif /* USE_MD4 */ +#endif /* PPP_MD4_H */