Skip to content

Commit 2722647

Browse files
committed
fix: compilation on ESP32
1 parent 330da10 commit 2722647

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/WebAuthentication.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ static bool getMD5(uint8_t * data, uint16_t len, char * output){//33 bytes or mo
7777
memset(_buf, 0x00, 16);
7878
#ifdef ESP32
7979
mbedtls_md5_init(&_ctx);
80-
mbedtls_md5_starts(&_ctx);
81-
mbedtls_md5_update(&_ctx, data, len);
82-
mbedtls_md5_finish(&_ctx, _buf);
80+
mbedtls_md5_starts_ret(&_ctx);
81+
mbedtls_md5_update_ret(&_ctx, data, len);
82+
mbedtls_md5_finish_ret(&_ctx, _buf);
8383
#else
8484
MD5Init(&_ctx);
8585
MD5Update(&_ctx, data, len);

0 commit comments

Comments
 (0)