Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

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

Open
l-pastor opened this issue Oct 17, 2023 · 5 comments

Comments

@l-pastor
Copy link

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
Copy link
Contributor

blackhack commented Oct 19, 2023

Apply this pull request to the lib: #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
Copy link
Author

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

@FlightControl-User
Copy link

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
Copy link

aly-fly commented Feb 10, 2024

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.

@mali119
Copy link

mali119 commented Oct 11, 2024

I got this problem when building WebSocket server on ESP32. It turned out I installed the wrong library. So just change the library, problem solved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants