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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy