Skip to content

Commit

Permalink
extmod/modhashlib: Support MD5 with mbedtls 3.x.
Browse files Browse the repository at this point in the history
This change was missd in e7ae3ad.

Signed-off-by: IhorNehrutsa <Ihor.Nehrutsa@gmail.com>
  • Loading branch information
IhorNehrutsa authored and dpgeorge committed Dec 21, 2023
1 parent 74fd7b3 commit b31eef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extmod/modhashlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b31eef6

Please sign in to comment.