From 230b4f415926c608e898b4b5879e278b8ecb90a1 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Tue, 18 Dec 2018 14:58:32 +0000 Subject: [PATCH] Fix definition of MBEDTLS_SHA256_VALIDATE[_RET] in sha256.c --- library/sha256.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/sha256.c b/library/sha256.c index 2f1968530..5092091e6 100644 --- a/library/sha256.c +++ b/library/sha256.c @@ -75,8 +75,8 @@ do { \ #endif #define MBEDTLS_SHA256_VALIDATE_RET(cond) \ - MBEDTLS_VALIDATE_RET( MBEDTLS_ERR_SHA256_BAD_INPUT_DATA, cond ) -#define MBEDTLS_SHA256_VALIDATE(cond) MBEDTLS_VALIDATE( cond ) + MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_SHA256_BAD_INPUT_DATA ) +#define MBEDTLS_SHA256_VALIDATE(cond) MBEDTLS_INTERNAL_VALIDATE( cond ) void mbedtls_sha256_init( mbedtls_sha256_context *ctx ) {