Skip to content

Commit

Permalink
Add settings check to disable DSA when SHA-1 is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
gojimmypi committed May 21, 2024
1 parent 43b2c80 commit 543a746
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wolfssl/wolfcrypt/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 543a746

Please sign in to comment.