Skip to content

Commit b31eef6

Browse files
IhorNehrutsadpgeorge
IhorNehrutsa
authored andcommitted
extmod/modhashlib: Support MD5 with mbedtls 3.x.
This change was missd in e7ae3ad. Signed-off-by: IhorNehrutsa <[email protected]>
1 parent 74fd7b3 commit b31eef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extmod/modhashlib.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ STATIC mp_obj_t hashlib_md5_digest(mp_obj_t self_in) {
297297

298298
#if MICROPY_SSL_MBEDTLS
299299

300-
#if MBEDTLS_VERSION_NUMBER < 0x02070000
300+
#if MBEDTLS_VERSION_NUMBER < 0x02070000 || MBEDTLS_VERSION_NUMBER >= 0x03000000
301301
#define mbedtls_md5_starts_ret mbedtls_md5_starts
302302
#define mbedtls_md5_update_ret mbedtls_md5_update
303303
#define mbedtls_md5_finish_ret mbedtls_md5_finish

0 commit comments

Comments
 (0)