diff options
| author | Damien George <damien@micropython.org> | 2023-05-09 09:52:16 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-06-23 15:22:27 +1000 |
| commit | e7ae3ad92d7540cbe349cc05f5d62e0f63fce59b (patch) | |
| tree | e86a9530df1c949f02d1ab92d6d7fa6f1e0b634a /extmod/modhashlib.c | |
| parent | 41c91422f083aaf61036c8ead26bf0c43111ae00 (diff) | |
extmod: Update to support mbedtls 3.x.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/modhashlib.c')
| -rw-r--r-- | extmod/modhashlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/modhashlib.c b/extmod/modhashlib.c index 3fafe6316..4cdc23fdd 100644 --- a/extmod/modhashlib.c +++ b/extmod/modhashlib.c @@ -75,7 +75,7 @@ STATIC mp_obj_t hashlib_sha256_update(mp_obj_t self_in, mp_obj_t arg); #if MICROPY_SSL_MBEDTLS -#if MBEDTLS_VERSION_NUMBER < 0x02070000 +#if MBEDTLS_VERSION_NUMBER < 0x02070000 || MBEDTLS_VERSION_NUMBER >= 0x03000000 #define mbedtls_sha256_starts_ret mbedtls_sha256_starts #define mbedtls_sha256_update_ret mbedtls_sha256_update #define mbedtls_sha256_finish_ret mbedtls_sha256_finish @@ -203,7 +203,7 @@ STATIC mp_obj_t hashlib_sha1_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_sha1_starts_ret mbedtls_sha1_starts #define mbedtls_sha1_update_ret mbedtls_sha1_update #define mbedtls_sha1_finish_ret mbedtls_sha1_finish |
