fix guard on ECC export

This commit is contained in:
JacobBarthelmeh
2023-04-13 16:12:08 -07:00
parent 04ee247389
commit 36a9b9944c
2 changed files with 4 additions and 2 deletions

View File

@ -53065,6 +53065,7 @@ static int test_tls13_apis(void)
wolfSSL_CTX_use_PrivateKey_file(serverCtx, ourKey, WOLFSSL_FILETYPE_PEM); wolfSSL_CTX_use_PrivateKey_file(serverCtx, ourKey, WOLFSSL_FILETYPE_PEM);
#endif #endif
serverSsl = wolfSSL_new(serverCtx); serverSsl = wolfSSL_new(serverCtx);
AssertNotNull(serverSsl);
#endif #endif
#ifdef WOLFSSL_SEND_HRR_COOKIE #ifdef WOLFSSL_SEND_HRR_COOKIE

View File

@ -2142,8 +2142,9 @@ extern void uITRON4_free(void *p) ;
#undef HAVE_ECC_KEY_IMPORT #undef HAVE_ECC_KEY_IMPORT
#define HAVE_ECC_KEY_IMPORT #define HAVE_ECC_KEY_IMPORT
#endif #endif
/* The ECC key export requires mp_int */ /* The ECC key export requires mp_int or SP */
#if !defined(NO_ECC_KEY_EXPORT) && !defined(NO_BIG_INT) #if (!defined(NO_ECC_KEY_EXPORT) && defined(WOLFSSL_SP_MATH)) || \
(!defined(NO_ECC_KEY_EXPORT) && !defined(NO_BIG_INT))
#undef HAVE_ECC_KEY_EXPORT #undef HAVE_ECC_KEY_EXPORT
#define HAVE_ECC_KEY_EXPORT #define HAVE_ECC_KEY_EXPORT
#endif #endif