From 543a746ddc59af9cce2b7e97b8e2df5c2635bb69 Mon Sep 17 00:00:00 2001 From: gojimmypi Date: Mon, 20 May 2024 17:58:25 -0700 Subject: [PATCH] Add settings check to disable DSA when SHA-1 is disabled --- 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