From 568ec432139cd09fe3637b69804b72af48821709 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Fri, 17 May 2024 09:24:38 -0600 Subject: [PATCH] error out if conflicting OPENSSL compat macros are defined --- wolfssl/wolfcrypt/settings.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 35d7c09bb4..67cb53f182 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -3586,6 +3586,11 @@ extern void uITRON4_free(void *p) ; #endif #endif +#if (defined(OPENSSL_EXTRA) || defined(OPENSSL_ALL)) && \ + defined(OPENSSL_COEXIST) + #error "OPENSSL_EXTRA can not be defined with OPENSSL_COEXIST" +#endif + /* if configure.ac turned on this feature, HAVE_ENTROPY_MEMUSE will be set, * also define HAVE_WOLFENTROPY */ #ifdef HAVE_ENTROPY_MEMUSE