summaryrefslogtreecommitdiffstats
path: root/lib/libmd/md4c.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2006-01-17 15:35:57 +0000
committerphk <phk@FreeBSD.org>2006-01-17 15:35:57 +0000
commit7a469c93bd0237caf5ea853e39af9aae0641ee9a (patch)
tree101d4be37f349e17f665a23b1aa8744624569973 /lib/libmd/md4c.c
parent0918b5cf25de7142e1ae5fd30873e51040664a87 (diff)
downloadFreeBSD-src-7a469c93bd0237caf5ea853e39af9aae0641ee9a.zip
FreeBSD-src-7a469c93bd0237caf5ea853e39af9aae0641ee9a.tar.gz
Fix an 11 year old mistake: Let the hash functions take a void* instead
of unsigned char* argument.
Diffstat (limited to 'lib/libmd/md4c.c')
-rw-r--r--lib/libmd/md4c.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libmd/md4c.c b/lib/libmd/md4c.c
index d372512..1211a98 100644
--- a/lib/libmd/md4c.c
+++ b/lib/libmd/md4c.c
@@ -107,12 +107,13 @@ MD4_CTX *context; /* context */
operation, processing another message block, and updating the
context.
*/
-void MD4Update (context, input, inputLen)
+void MD4Update (context, in, inputLen)
MD4_CTX *context; /* context */
-const unsigned char *input; /* input block */
+const void *in; /* input block */
unsigned int inputLen; /* length of input block */
{
unsigned int i, idx, partLen;
+ const unsigned char *input = in;
/* Compute number of bytes mod 64 */
idx = (unsigned int)((context->count[0] >> 3) & 0x3F);
OpenPOWER on IntegriCloud