extmod/modhashlib: Support MD5 with mbedtls 3.x.

This change was missd in e7ae3ad92d.

Signed-off-by: IhorNehrutsa <Ihor.Nehrutsa@gmail.com>
pull/13230/head
IhorNehrutsa 2023-12-19 16:28:06 +02:00 zatwierdzone przez Damien George
rodzic 74fd7b3d32
commit b31eef6094
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -297,7 +297,7 @@ STATIC mp_obj_t hashlib_md5_digest(mp_obj_t self_in) {
#if MICROPY_SSL_MBEDTLS
#if MBEDTLS_VERSION_NUMBER < 0x02070000
#if MBEDTLS_VERSION_NUMBER < 0x02070000 || MBEDTLS_VERSION_NUMBER >= 0x03000000
#define mbedtls_md5_starts_ret mbedtls_md5_starts
#define mbedtls_md5_update_ret mbedtls_md5_update
#define mbedtls_md5_finish_ret mbedtls_md5_finish