MBEDTLS cannot change config with esp_config.h

HilcoHippie
Posts: 2
Joined: Tue Apr 02, 2019 12:39 pm

MBEDTLS cannot change config with esp_config.h

Postby HilcoHippie » Tue Apr 02, 2019 3:02 pm

Hello all,

I have a problem changing the config of mbed-tls in Espressif 32 version 1.7.0
the framework contains a pre-build library from MBEDtls version 2.13.1

I tried to enable a configuration of MBEDtls namely the #define MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
I did this inside the config-file inside the installation folder
C:\Users\HPL\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\mbedtls\mbedtls\esp_config.h

But a change in this file does not affect the mbed-tls library which in fact is not so weird because it is a precompiled library.

The question is now, is there any easy way to change the configuration of MBEDtls inside the arduino-framework ?

Kind regards,
Hilco

HilcoHippie
Posts: 2
Joined: Tue Apr 02, 2019 12:39 pm

Re: MBEDTLS cannot change config with esp_config.h

Postby HilcoHippie » Thu Apr 11, 2019 10:59 am

I have found a solution by using the ESP-IDF framework.
There the MBEDTLS is not precompiled, so I changed the configuration I wanted to change.
Then I compiled it and used the lib.a file and replaced the one in the arduino framework.

Who is online

Users browsing this forum: No registered users and 85 guests