Fix for building with --with-intelqa and custom curves disabled.

This commit is contained in:
David Garske
2020-12-21 08:36:48 -08:00
parent 9c64630c56
commit 28420b6e4d

View File

@ -3920,7 +3920,10 @@ static int wc_ecc_shared_secret_gen_async(ecc_key* private_key,
int err;
#if defined(HAVE_CAVIUM_V) || defined(HAVE_INTEL_QA)
if (private_key->dp && private_key->dp->id != ECC_CURVE_CUSTOM
if (private_key->dp
#ifdef WOLFSSL_CUSTOM_CURVES
&& private_key->dp->id != ECC_CURVE_CUSTOM
#endif
#ifdef HAVE_CAVIUM_V
/* verify the curve is supported by hardware */
&& NitroxEccIsCurveSupported(private_key)