Skip to content

Commit

Permalink
Fix for ESP32 idf 5.1 me-no-dev#2
Browse files Browse the repository at this point in the history
  • Loading branch information
Speederc committed Dec 17, 2023
1 parent b091d8e commit 410b004
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/WebAuthentication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ static bool getMD5(uint8_t * data, uint16_t len, char * output){//33 bytes or mo
memset(_buf, 0x00, 16);
#ifdef ESP32
mbedtls_md5_init(&_ctx);
// mbedtls_md5_starts is deprecated/removed and just a wrapper around mbedtls_md5_starts_ret.
mbedtls_md5_starts_ret(&_ctx);
mbedtls_md5_starts(&_ctx);
mbedtls_md5_update(&_ctx, data, len);
mbedtls_md5_finish(&_ctx, _buf);
#else
Expand Down

0 comments on commit 410b004

Please sign in to comment.