From 666bbcd14d166117195bcbff4159aa86fc579dd7 Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 21 May 2024 08:47:10 -0700 Subject: [PATCH] Merge pull request #7551 from gojimmypi/PR-DSA-SHA1 Add settings.h check: DSA needs SHA1 --- wolfssl/wolfcrypt/settings.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 67cb53f182..702d8bab3b 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -3591,6 +3591,10 @@ extern void uITRON4_free(void *p) ; #error "OPENSSL_EXTRA can not be defined with OPENSSL_COEXIST" #endif +#if !defined(NO_DSA) && defined(NO_SHA) + #error "Please disable DSA if disabling SHA-1" +#endif + /* if configure.ac turned on this feature, HAVE_ENTROPY_MEMUSE will be set, * also define HAVE_WOLFENTROPY */ #ifdef HAVE_ENTROPY_MEMUSE