summaryrefslogtreecommitdiffstats
path: root/lib/libmd/sha256c.c
diff options
context:
space:
mode:
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