Merge branch 'bugfix/wpa_supplicant_no_hw_mpi_v4.0' into 'release/v4.0'

wpa_supplicant: Allow building with mbedTLS integration but no hardware MPI (v4.0)

See merge request espressif/esp-idf!9014
This commit is contained in:
Angus Gratton
2020-06-04 18:24:07 +08:00

View File

@@ -160,7 +160,7 @@ int crypto_bignum_mulmod(const struct crypto_bignum *a,
struct crypto_bignum *d)
{
int res;
#if ALLOW_EVEN_MOD // Must enable this macro if c is even.
#if ALLOW_EVEN_MOD || !CONFIG_MBEDTLS_HARDWARE_MPI // Must enable ALLOW_EVEN_MOD if c is even
mbedtls_mpi temp;
mbedtls_mpi_init(&temp);