/*
- * 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"
(((((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]); \
}
/*
- * 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
-/* 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,
}
ctx->count[1] += ((uint32_t)len >> 29);
-
-
if (len >= need) {
if (have != 0) {
memcpy(ctx->buffer + have, input, need);
#include <string.h>
+#include "autoconf.h"
#include "libradius.h"
#include "std-includes.h"
#include "rfcnb-priv.h"
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));
break;
}
}
-
-
-
-
-
-
-
-
-