diff options
| author | IhorNehrutsa <IhorNehrutsa@gmail.com> | 2023-12-19 16:28:06 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-12-21 11:30:52 +1100 |
| commit | b31eef609497cd7e3c50841e1cf45f1610d39c73 (patch) | |
| tree | a7791ba916960e4c28e795a0ebb862b95ea016ec | |
| parent | 74fd7b3d32e19a0c15ec1202cf03c31aa353a9f7 (diff) | |
extmod/modhashlib: Support MD5 with mbedtls 3.x.
This change was missd in e7ae3ad92d7540cbe349cc05f5d62e0f63fce59b.
Signed-off-by: IhorNehrutsa <Ihor.Nehrutsa@gmail.com>
| -rw-r--r-- | extmod/modhashlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/modhashlib.c b/extmod/modhashlib.c index 4cdc23fdd..263144a5c 100644 --- a/extmod/modhashlib.c +++ b/extmod/modhashlib.c @@ -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 |
