Skip to content

Commit 2b2c04c

Browse files
committed
Switch MD5 API in WebServer
1 parent ff070fa commit 2b2c04c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: libraries/WebServer/src/WebServer.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ static String md5str(String &in){
123123
return String(out);
124124
memset(_buf, 0x00, 16);
125125
mbedtls_md5_init(&_ctx);
126-
mbedtls_md5_starts(&_ctx);
127-
mbedtls_md5_update(&_ctx, (const uint8_t *)in.c_str(), in.length());
128-
mbedtls_md5_finish(&_ctx, _buf);
126+
mbedtls_md5_starts_ret(&_ctx);
127+
mbedtls_md5_update_ret(&_ctx, (const uint8_t *)in.c_str(), in.length());
128+
mbedtls_md5_finish_ret(&_ctx, _buf);
129129
for(i = 0; i < 16; i++) {
130130
sprintf(out + (i * 2), "%02x", _buf[i]);
131131
}

0 commit comments

Comments
 (0)