Skip to content

Commit b31eef6

Browse files
IhorNehrutsadpgeorge
authored andcommitted
extmod/modhashlib: Support MD5 with mbedtls 3.x.
This change was missd in e7ae3ad. Signed-off-by: IhorNehrutsa <Ihor.Nehrutsa@gmail.com>
1 parent 74fd7b3 commit b31eef6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extmod/modhashlib.c

Lines changed: 1 addition & 1 deletion
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)