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/sha256c.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/sha256c.c')
-rw-r--r-- | lib/libmd/sha256c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libmd/sha256c.c b/lib/libmd/sha256c.c index d94e871..c95fd31 100644 --- a/lib/libmd/sha256c.c +++ b/lib/libmd/sha256c.c @@ -240,10 +240,11 @@ SHA256_Init(SHA256_CTX * ctx) /* Add bytes into the hash */ void -SHA256_Update(SHA256_CTX * ctx, const unsigned char *src, size_t len) +SHA256_Update(SHA256_CTX * ctx, const void *in, size_t len) { uint32_t bitlen[2]; uint32_t r; + const unsigned char *src = in; /* Number of bytes left in the buffer from previous updates */ r = (ctx->count[1] >> 3) & 0x3f; |