From b1cd268c034268f4d37c665ee4b5148f9d8700bb Mon Sep 17 00:00:00 2001 From: Pauli Date: Fri, 3 Mar 2023 10:14:39 +1100 Subject: Fix cast. Fixes #20424 Reviewed-by: Shane Lontis Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/20425) --- crypto/evp/digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/evp') diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c index f6819a321b..6ce80a1b03 100644 --- a/crypto/evp/digest.c +++ b/crypto/evp/digest.c @@ -457,7 +457,7 @@ int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *isize) if (isize != NULL) { if (size <= UINT_MAX) { - *isize = (int)size; + *isize = (unsigned int)size; } else { ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR); ret = 0; -- cgit v1.2.1