From 10740abf9b14891ab8a348d5277748bb8447875a Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Mon, 22 Jan 2024 14:23:31 -0700 Subject: [PATCH 1/2] 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 From 79595a3602c2d3c2f67ac205b4a379882e13b434 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Thu, 16 May 2024 09:48:56 -0600 Subject: [PATCH 2/2] account for sp math which defines NO_BIG_INT but still allows mp_int types --- 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 5a77236ca..d5ad52bbc 100644 --- a/wolfssl/openssl/bn.h +++ b/wolfssl/openssl/bn.h @@ -40,7 +40,7 @@ typedef struct WOLFSSL_BIGNUM { int neg; /* openssh deference */ void *internal; /* our big num */ -#ifndef NO_BIG_INT +#if !defined(NO_BIG_INT) || defined(WOLFSSL_SP_MATH) mp_int mpi; #endif } WOLFSSL_BIGNUM;