From cf03aa4f52c3af5015217564e1d9edef636d033b Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 11 Jan 2018 10:53:12 -0800 Subject: [PATCH] Fix for building with FIPS where wolfCrypt FIPS already has enum value for `MAX_DIGEST_SIZE`. --- wolfssl/wolfcrypt/hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/hash.h b/wolfssl/wolfcrypt/hash.h index f2a6757da..4ebe40946 100644 --- a/wolfssl/wolfcrypt/hash.h +++ b/wolfssl/wolfcrypt/hash.h @@ -45,7 +45,7 @@ extern "C" { #endif -#ifndef NO_OLD_WC_NAMES +#if !defined(HAVE_FIPS) && !defined(NO_OLD_WC_NAMES) #define MAX_DIGEST_SIZE WC_MAX_DIGEST_SIZE #endif