ESPAsyncWebServer
ESPAsyncWebServer copied to clipboard
error: 'mbedtls_md5_starts_ret' was not declared in this scope; did you mean 'mbedtls_md5_starts'?
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
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.
Thank you very much blackhack, you did a good job.
I had exactly the same issue. The error also got reported to me.
I changed the following lines of code:
Then it worked.
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.