]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/md4.c
pppd: Fix compilation on Linux when IPV6 is disabled (#360)
[ppp.git] / pppd / md4.c
index d943e8885f2d7872d579f92184103eaadc355793..88f3413c544951e77e9e60f587320c59ca52032e 100644 (file)
@@ -30,6 +30,9 @@
 /* Implementation notes:
 ** This implementation assumes that ints are 32-bit quantities.
 */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #define TRUE  1
 #define FALSE 0
@@ -87,8 +90,7 @@
 ** This is a user-callable routine.
 */
 void
-MD4Print(MDp)
-MD4_CTX *MDp;
+MD4Print(MD4_CTX *MDp)
 {
   int i,j;
   for (i=0;i<4;i++)
@@ -101,8 +103,7 @@ MD4_CTX *MDp;
 ** This is a user-callable routine.
 */
 void
-MD4Init(MDp)
-MD4_CTX *MDp;
+MD4Init(MD4_CTX *MDp)
 {
   int i;
   MDp->buffer[0] = I0;
@@ -120,9 +121,7 @@ MD4_CTX *MDp;
 ** This routine is not user-callable.
 */
 static void
-MDblock(MDp,Xb)
-MD4_CTX *MDp;
-unsigned char *Xb;
+MDblock(MD4_CTX *MDp, unsigned char *Xb)
 {
   register unsigned int tmp, A, B, C, D;
   unsigned int X[16];
@@ -206,10 +205,7 @@ unsigned char *Xb;
 ** if desired.
 */
 void
-MD4Update(MDp,X,count)
-MD4_CTX *MDp;
-unsigned char *X;
-unsigned int count;
+MD4Update(MD4_CTX *MDp, unsigned char *X, unsigned int count)
 {
   unsigned int i, tmp, bit, byte, mask;
   unsigned char XX[64];
@@ -277,9 +273,7 @@ unsigned int count;
 ** Finish up MD4 computation and return message digest.
 */
 void
-MD4Final(buf, MD)
-unsigned char *buf;
-MD4_CTX *MD;
+MD4Final(unsigned char *buf, MD4_CTX *MD)
 {
   int i, j;
   unsigned int w;