summaryrefslogtreecommitdiffstats
path: root/sys/kern/md5c.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 /sys/kern/md5c.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 'sys/kern/md5c.c')
-rw-r--r--sys/kern/md5c.c5
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);
OpenPOWER on IntegriCloud