From 10740abf9b14891ab8a348d5277748bb8447875a Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Mon, 22 Jan 2024 14:23:31 -0700 Subject: [PATCH] warning fix for small PSK build --- src/internal.c | 2 ++ wolfssl/openssl/bn.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/internal.c b/src/internal.c index 157e44749..77c741729 100644 --- a/src/internal.c +++ b/src/internal.c @@ -26678,7 +26678,9 @@ static int ParseCipherList(Suites* suites, suites->setSuites = 1; } +#ifdef NO_CERTS (void)privateKeySz; +#endif return ret; } diff --git a/wolfssl/openssl/bn.h b/wolfssl/openssl/bn.h index 973b85565..5a77236ca 100644 --- a/wolfssl/openssl/bn.h +++ b/wolfssl/openssl/bn.h @@ -40,7 +40,9 @@ typedef struct WOLFSSL_BIGNUM { int neg; /* openssh deference */ void *internal; /* our big num */ +#ifndef NO_BIG_INT mp_int mpi; +#endif } WOLFSSL_BIGNUM; #define WOLFSSL_BN_ULONG unsigned long