From fbb2ab30567c26aaad08f11ab9b35aafc7bb6ec6 Mon Sep 17 00:00:00 2001 From: Michael Graff Date: Wed, 7 Jun 2000 02:21:39 +0000 Subject: [PATCH] md5 endian doesn't seem to matter? --- bin/tests/hash_test.c | 1 + lib/isc/md5.c | 26 -------------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/bin/tests/hash_test.c b/bin/tests/hash_test.c index 80bff7678d..a6cd7b9da9 100644 --- a/bin/tests/hash_test.c +++ b/bin/tests/hash_test.c @@ -18,6 +18,7 @@ #include #include #include +#include #include diff --git a/lib/isc/md5.c b/lib/isc/md5.c index f66379aeae..5bb12fd6f2 100644 --- a/lib/isc/md5.c +++ b/lib/isc/md5.c @@ -40,29 +40,6 @@ #include #include -#if defined(HAVE_ENDIAN_H) -#include -#elif defined(HAVE_SYS_ENDIAN_H) -#include -#endif - -#if !defined(BYTE_ORDER) && defined(__BYTE_ORDER) -#define BYTE_ORDER __BYTE_ORDER -#define LITTLE_ENDIAN __LITTLE_ENDIAN -#define BIG_ENDIAN __BIG_ENDIAN -#endif - -#if !defined(BYTE_ORDER) || \ - (BYTE_ORDER != BIG_ENDIAN && BYTE_ORDER != LITTLE_ENDIAN) - /* you must determine what the correct bit order is for - * your compiler - the next line is an intentional error - * which will force your compiles to bomb until you fix - * the above macros. - */ -#error "Undefined or invalid BYTE_ORDER"; -#endif - -#if BYTE_ORDER == LITTLE_ENDIAN static void byteSwap(isc_uint32_t *buf, unsigned words) { @@ -74,9 +51,6 @@ byteSwap(isc_uint32_t *buf, unsigned words) p += 4; } while (--words); } -#else -#define byteSwap(buf, words) -#endif /* * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious