changes to compile with core 2.0.3

This commit is contained in:
technyon
2022-07-05 21:52:39 +02:00
parent 415b09e4af
commit 4de235e263
110 changed files with 7986 additions and 13499 deletions

View File

@@ -107,9 +107,9 @@ static String md5str(String &in){
return String(out);
memset(_buf, 0x00, 16);
mbedtls_md5_init(&_ctx);
mbedtls_md5_starts(&_ctx);
mbedtls_md5_update(&_ctx, (const uint8_t *)in.c_str(), in.length());
mbedtls_md5_finish(&_ctx, _buf);
mbedtls_md5_starts_ret(&_ctx);
mbedtls_md5_update_ret(&_ctx, (const uint8_t *)in.c_str(), in.length());
mbedtls_md5_finish_ret(&_ctx, _buf);
for(i = 0; i < 16; i++) {
sprintf(out + (i * 2), "%02x", _buf[i]);
}