summaryrefslogtreecommitdiff
path: root/lib/libc/md
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-12-23 21:10:23 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-12-23 21:10:23 +0000
commit40d077f98a1fa3be5662607f7b1174e13d4d05bb (patch)
treef2584a16ea23c6d1faea45c61fc808a53080bcac /lib/libc/md
parent13044a42fa3dfed03673ed90f172a1d82a4a1855 (diff)
Unbreak for bigendian, identical diff as Theo's.
Diffstat (limited to 'lib/libc/md')
-rw-r--r--lib/libc/md/md5c.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/md/md5c.c b/lib/libc/md/md5c.c
index 563aec85146..bfe7f27a03e 100644
--- a/lib/libc/md/md5c.c
+++ b/lib/libc/md/md5c.c
@@ -23,7 +23,7 @@ documentation and/or software.
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: md5c.c,v 1.14 2002/12/23 04:33:31 millert Exp $";
+static char rcsid[] = "$OpenBSD: md5c.c,v 1.15 2002/12/23 21:10:22 drahn Exp $";
#endif /* LIBC_SCCS and not lint */
#include <string.h>
@@ -127,10 +127,11 @@ Encode(void *out, const void *in, size_t len)
a multiple of 4.
*/
static void
-Decode(u_int32_t *output, const u_char *input, size_t len)
+Decode(void *out, const void *in, size_t len)
{
u_int32_t *output = out;
const unsigned char *input = in;
+ size_t i, j;
for (i = 0, j = 0; j < len; i++, j += 4)
output[i] = ((u_int32_t)input[j]) | (((u_int32_t)input[j+1]) << 8) |