From a7ba7271a4123da475cda49dbb57a088066096cd Mon Sep 17 00:00:00 2001 From: innerviewer Date: Mon, 24 Jun 2024 01:59:19 +0200 Subject: [PATCH] (Build) Fixed build under Linux. --- crypto/sha/sha256.c | 2 +- include/crypto/md32_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/sha/sha256.c b/crypto/sha/sha256.c index 11050ba5..150d5bb3 100644 --- a/crypto/sha/sha256.c +++ b/crypto/sha/sha256.c @@ -249,7 +249,7 @@ static void sha256_block_data_order(SHA256_CTX *ctx, const void *in, unsigned MD32_REG_T a, b, c, d, e, f, g, h, s0, s1, T1; SHA_LONG X[16]; int i; - const unsigned char *data = in; + const unsigned char *data = (unsigned char*)in; const union { long one; char little; diff --git a/include/crypto/md32_common.h b/include/crypto/md32_common.h index 1124e9c2..cddbccf8 100644 --- a/include/crypto/md32_common.h +++ b/include/crypto/md32_common.h @@ -127,7 +127,7 @@ int HASH_UPDATE(HASH_CTX *c, const void *data_, size_t len) { - const unsigned char *data = data_; + const unsigned char *data = (unsigned char*)data_; unsigned char *p; HASH_LONG l; size_t n;