me-no-dev / ESPAsyncWebServer

Async Web Server for ESP8266 and ESP32
3.6k stars 1.17k forks source link

error: 'mbedtls_md5_starts_ret' was not declared in this scope; did you mean 'mbedtls_md5_starts'? #1352

Open l-pastor opened 8 months ago

l-pastor commented 8 months ago

Hi,

I use lastest library version on Arduino IDE 2.2.1, with ESP32 wroom32, when I compile I get many errors.

First lines starting with :

d:\Mega\� Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp: In function 'bool getMD5(uint8_t, uint16_t, char)': d:\Mega\� Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:74:3: error: 'mbedtls_md5_starts_ret' was not declared in this scope; did you mean 'mbedtls_md5_starts'? 74 | mbedtls_md5_starts_ret(&_ctx); .....

Best regards, Laurent

blackhack commented 8 months ago

Apply this pull request to the lib: https://github.com/me-no-dev/ESPAsyncWebServer/pull/1351

Or use this fork for now while @me-no-dev has the opportunity to review the library: https://github.com/blackhack/ESPAsyncWebServer.git Besides from the build errors, I fixed a crash that most likely will affect you.

l-pastor commented 8 months ago

Thank you very much blackhack, you did a good job.

FlightControl-User commented 8 months ago

I had exactly the same issue. The error also got reported to me.

I changed the following lines of code:

image

Then it worked.

aly-fly commented 4 months ago

Using recent PlatformIO with ESP32 core v2. Got an error in WebAuthentication.cpp: mbedtls_md5_starts(&_ctx); does not exist. Replaced with mbedtls_md5_starts_ret(&_ctx); and it compiles fine.