From 0a90b2d3547eaebf639138348ccb85c53bfcc917 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Mon, 6 Mar 2023 15:21:23 -0600 Subject: [PATCH 1/2] configure.ac: further fix for header loop check -- construct header list while in $srcdir, so that -I${srcdir} works as expected. see earlier commits 7baddb04f8 a7d9ea7550 b3a1ac80dc . --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2f8f134a7..884583ae8 100644 --- a/configure.ac +++ b/configure.ac @@ -8720,7 +8720,11 @@ if test "$ENABLED_OPENSSLEXTRA" = "yes" && test "$ENABLED_LINUXKM" = "no" then SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -I$srcdir" - for header in "${srcdir}"/wolfssl/openssl/*.h + build_pwd="$(pwd)" + cd "$srcdir" + openssl_headers=$(echo wolfssl/openssl/*.h) + cd "$build_pwd" + for header in $openssl_headers do AC_CHECK_HEADER([$header], [], [ AC_MSG_ERROR([Error including $header. Possible circular dependency introduced or missing include.]) From 3c107da2a971630be1512c2ceb899ca4825c7eed Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Mon, 6 Mar 2023 15:23:14 -0600 Subject: [PATCH 2/2] wolfssl/openssl/bn.h: fix bugprone-macro-parentheses. --- wolfssl/openssl/bn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/openssl/bn.h b/wolfssl/openssl/bn.h index 91a844413..4cad216e9 100644 --- a/wolfssl/openssl/bn.h +++ b/wolfssl/openssl/bn.h @@ -66,7 +66,7 @@ typedef struct WOLFSSL_BIGNUM { #endif #endif -#define WOLFSSL_BN_RAND_TOP_ANY -1 +#define WOLFSSL_BN_RAND_TOP_ANY (-1) #define WOLFSSL_BN_RAND_TOP_ONE 0 #define WOLFSSL_BN_RAND_TOP_TWO 1