summaryrefslogtreecommitdiffstats
path: root/lib/libmd/sha256c.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 /lib/libmd/sha256c.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 'lib/libmd/sha256c.c')
-rw-r--r--lib/libmd/sha256c.c3
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;
OpenPOWER on IntegriCloud