diff options
author | phk <phk@FreeBSD.org> | 2006-01-17 15:35:57 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2006-01-17 15:35:57 +0000 |
commit | 7a469c93bd0237caf5ea853e39af9aae0641ee9a (patch) | |
tree | 101d4be37f349e17f665a23b1aa8744624569973 /lib/libmd/md2c.c | |
parent | 0918b5cf25de7142e1ae5fd30873e51040664a87 (diff) | |
download | FreeBSD-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/md2c.c')
-rw-r--r-- | lib/libmd/md2c.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libmd/md2c.c b/lib/libmd/md2c.c index c08fe0b..4799457 100644 --- a/lib/libmd/md2c.c +++ b/lib/libmd/md2c.c @@ -99,12 +99,13 @@ MD2_CTX *context; /* context */ operation, processing another message block, and updating the context. */ -void MD2Update (context, input, inputLen) +void MD2Update (context, in, inputLen) MD2_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; /* Update number of bytes mod 16 */ idx = context->count; |