Include "autoconf.h", too.
authornbk <nbk>
Thu, 8 Sep 2005 14:06:25 +0000 (14:06 +0000)
committernbk <nbk>
Thu, 8 Sep 2005 14:06:25 +0000 (14:06 +0000)
src/lib/md4.c
src/lib/md5.c
src/modules/rlm_smb/rfcnb-util.c

index 5610b42..2a97aee 100644 (file)
@@ -1,18 +1,17 @@
 /*
- * md4c.c      MD4 message-digest algorithm
+ *  md4c.c     MD4 message-digest algorithm
  *
- * Version:    $Id$
+ *  Version:   $Id$
  *
- * This file is licensed under the LGPL, but is largely derived
- * from public domain source code.
+ *  This file is licensed under the LGPL, but is largely derived
+ *  from public domain source code.
  */
 
-/*#include "global.h"*/
+#include "autoconf.h"
+
 /*
  *  FORCE MD4 TO USE OUR MD4 HEADER FILE!
- *
  *  If we don't do this, it might pick up the systems broken MD4.
- *  - Paul Hampson, (cf Alan DeKok <aland@ox.org> in md5.c)
  */
 #include "../include/md4.h"
 
@@ -75,7 +74,7 @@ unsigned int inlen;                     /* length of input block */
  (((((uint32_t)x) & 0xff000000) >> 24) | \
  ((((uint32_t)x) & 0x00ff0000) >> 8) | \
  ((((uint32_t)x) & 0x0000ff00) << 8) | \
- ((((uint32_t)x) & 0x000000ff) << 24)) 
+ ((((uint32_t)x) & 0x000000ff) << 24))
 
 #define htole32_4(buf) do {                                            \
        (buf)[ 0] = htole32((buf)[ 0]);                                 \
@@ -187,7 +186,7 @@ MD4Update(MD4_CTX *ctx, const unsigned char *buf, size_t len)
 }
 
 /*
- * Final wrapup - pad to 64-byte boundary with the bit pattern 
+ * Final wrapup - pad to 64-byte boundary with the bit pattern
  * 1 0* (64-bit count of bits processed, MSB-first)
  */
 void
index a80281a..e2c4d71 100644 (file)
@@ -1,16 +1,19 @@
-/* MD5 message-digest algorithm */
-
-/* This file is licensed under the LGPL, but is largely derived from
- * public domain source code
+/*
+ *  md5.c      MD5 message-digest algorithm
+ *
+ *  Version:   $Id$
+ *
+ *  This file is licensed under the LGPL, but is largely derived
+ *  from public domain source code.
  */
 
+#include "autoconf.h"
+#include "libradius.h"
+
 /*
  *  FORCE MD5 TO USE OUR MD5 HEADER FILE!
- *
  *  If we don't do this, it might pick up the systems broken MD5.
- *  - Alan DeKok <aland@ox.org>
  */
-#include "libradius.h"
 #include "../include/md5.h"
 
 void librad_md5_calc(uint8_t *output, const uint8_t *input,
@@ -110,8 +113,6 @@ lrad_MD5Update(lrad_MD5_CTX *ctx, const unsigned char *input, size_t len)
        }
        ctx->count[1] += ((uint32_t)len >> 29);
 
-       
-
        if (len >= need) {
                if (have != 0) {
                        memcpy(ctx->buffer + have, input, need);
index 35874bf..8d3aed8 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <string.h>
 
+#include "autoconf.h"
 #include "libradius.h"
 #include "std-includes.h"
 #include "rfcnb-priv.h"
@@ -319,11 +320,11 @@ int RFCNB_Name_To_IP(char *host, struct in_addr *Dest_IP)
 
        if (ip_hton(host, AF_INET, &ipaddr) < 0) {
                /* Try NetBIOS name lookup, how the hell do we do that? */
-               
+
                RFCNB_errno = RFCNBE_BadName;   /* Is this right? */
                RFCNB_saved_errno = errno;
                return(RFCNBE_Bad);
-               
+
        }
 
        memcpy(Dest_IP, &ipaddr.ipaddr.ip4addr, sizeof(struct in_addr));
@@ -506,12 +507,3 @@ int RFCNB_Session_Req(struct RFCNB_Con *con,
       break;
     }
 }
-
-
-
-
-
-
-
-
-