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/sha0c.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/sha0c.c')
-rw-r--r-- | lib/libmd/sha0c.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libmd/sha0c.c b/lib/libmd/sha0c.c index 47ea62b..b35b7f2 100644 --- a/lib/libmd/sha0c.c +++ b/lib/libmd/sha0c.c @@ -115,14 +115,15 @@ SHA_CTX *c; c->num=0; } -void SHA_Update(c, data, len) +void SHA_Update(c, in, len) SHA_CTX *c; -const unsigned char *data; +const void *in; size_t len; { u_int32_t *p; int ew,ec,sw,sc; u_int32_t l; + const unsigned char *data = in; if (len == 0) return; |