Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 · 4 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.

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

No branches or pull requests

4 participants