From f3c07e5f3f887009c82c369d4c7b36b72dde0464 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Wed, 12 May 2021 09:42:41 +0200 Subject: [PATCH] include sha256.h when required by smallstackcache --- wolfssl/wolfcrypt/random.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfssl/wolfcrypt/random.h b/wolfssl/wolfcrypt/random.h index a447266b7..b4e301df9 100644 --- a/wolfssl/wolfcrypt/random.h +++ b/wolfssl/wolfcrypt/random.h @@ -103,6 +103,9 @@ #ifdef NO_SHA256 #error "Hash DRBG requires SHA-256." #endif /* NO_SHA256 */ + #ifdef WOLFSSL_SMALL_STACK_CACHE + #include + #endif #elif defined(HAVE_WNR) /* allow whitewood as direct RNG source using wc_GenerateSeed directly */ #elif defined(HAVE_INTEL_RDRAND)