ESPAsyncWebServer icon indicating copy to clipboard operation
ESPAsyncWebServer copied to clipboard

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

Open l-pastor opened this issue 2 years ago • 5 comments

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

l-pastor avatar Oct 17 '23 20:10 l-pastor

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.

blackhack avatar Oct 19 '23 16:10 blackhack

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

l-pastor avatar Oct 21 '23 12:10 l-pastor

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

I changed the following lines of code:

image

Then it worked.

FlightControl-User avatar Oct 25 '23 11:10 FlightControl-User

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.

aly-fly avatar Feb 10 '24 15:02 aly-fly