From 84d6d48fe070a5238120094239fedcebaa1c0666 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 20 May 2020 12:06:07 +1000 Subject: [PATCH] wpa_supplicant: Allow building with mbedTLS integration but no hardware MPI Closes https://github.com/espressif/esp-idf/issues/5321 --- components/wpa_supplicant/src/crypto/crypto_mbedtls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/wpa_supplicant/src/crypto/crypto_mbedtls.c b/components/wpa_supplicant/src/crypto/crypto_mbedtls.c index 4062b1615b..2024b0b89c 100644 --- a/components/wpa_supplicant/src/crypto/crypto_mbedtls.c +++ b/components/wpa_supplicant/src/crypto/crypto_mbedtls.c @@ -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);