Issue using mbedtls with mongoose webserver

StefanRvO
Posts: 16
Joined: Sun Mar 06, 2016 9:25 pm

Issue using mbedtls with mongoose webserver

Postby StefanRvO » Thu Feb 09, 2017 6:51 pm

Hi!

I'm currently looking into using the mongoose HTTP server for a project. I do however have a minor issue with enabling HTTPS on the webserver.

When compiling mongoose with SSL support, i get the following error message

Code: Select all

In file included from<----->/esp-idf/components/mbedtls/include/mbedtls/debug.h:32:0,
                 from <----->/components/mongoose/mongoose//mongoose.c:4269:
<----->/esp-idf/components/mbedtls/include/mbedtls/ssl.h:545:5: error: unknown type name 'mbedtls_time_t'
I am compiling mongoose with these flags:

Code: Select all

MG_ENABLE_FILESYSTEM
MG_ENABLE_HTTP_URL_REWRITES
ESP_PLATFORM
MG_ENABLE_SSL=1
MG_ENABLE_IPV6=1
MG_ENABLE_HTTP_SSI=1
MG_ENABLE_BROADCAST=1
MG_SSL_IF=MG_SSL_IF_MBEDTLS
And mbedTLS with these flags:

Code: Select all

MBEDTLS_X509_CRT_PARSE_C
MBEDTLS_MPI_WINDOW_SIZE=2
MBEDTLS_FS_IO
The issue seems to be related to this bug report: https://github.com/ARMmbed/mbedtls/issues/527

And indeed, everything seems to compile correctly if i replace mbedtls 2.3.0 with 2.4.1.

Is there any reason why the mbedtls component in ESP-IDF has not been updated to 2.4.1 yet? And Is there any issues i can expect if i just upgrade it manually?

Regards
Stefan

Who is online

Users browsing this forum: sangk82 and 87 guests