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 /sys/kern/md5c.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 'sys/kern/md5c.c')
-rw-r--r-- | sys/kern/md5c.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/md5c.c b/sys/kern/md5c.c index 10fb7a3..c6d1252 100644 --- a/sys/kern/md5c.c +++ b/sys/kern/md5c.c @@ -145,12 +145,13 @@ MD5Init (context) */ void -MD5Update (context, input, inputLen) +MD5Update (context, in, inputLen) MD5_CTX *context; - const unsigned char *input; + const void *in; unsigned int inputLen; { unsigned int i, index, partLen; + const unsigned char *input = in; /* Compute number of bytes mod 64 */ index = (unsigned int)((context->count[0] >> 3) & 0x3F); |