From b631670ccacab5a9536b34ab851aefad20c8764d Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Thu, 20 Jun 2019 21:40:58 +1000 Subject: [PATCH] Fix for SP math build in OpenSSL bn.h --- wolfssl/openssl/bn.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfssl/openssl/bn.h b/wolfssl/openssl/bn.h index e3311b395..c5176813b 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 */ -#if defined(USE_FAST_MATH) && !defined(HAVE_WOLF_BIGINT) +#ifdef WOLFSSL_SP_MATH + sp_int fp; +#elif defined(USE_FAST_MATH) && !defined(HAVE_WOLF_BIGINT) fp_int fp; #endif } WOLFSSL_BIGNUM;