diff --git a/extmod/mbedtls/mbedtls_config_common.h b/extmod/mbedtls/mbedtls_config_common.h index bfbc6f7ba298..95458f18daa3 100644 --- a/extmod/mbedtls/mbedtls_config_common.h +++ b/extmod/mbedtls/mbedtls_config_common.h @@ -31,6 +31,8 @@ // #define MBEDTLS_DEBUG_C // Set mbedtls configuration. +#define MBEDTLS_HAVE_TIME +#define MBEDTLS_HAVE_TIME_DATE #define MBEDTLS_DEPRECATED_REMOVED #define MBEDTLS_AES_ROM_TABLES #define MBEDTLS_CIPHER_MODE_CBC diff --git a/ports/mimxrt/mbedtls/mbedtls_config.h b/ports/mimxrt/mbedtls/mbedtls_config.h index 440498757085..f264ed4ad2eb 100644 --- a/ports/mimxrt/mbedtls/mbedtls_config.h +++ b/ports/mimxrt/mbedtls/mbedtls_config.h @@ -26,10 +26,6 @@ #ifndef MICROPY_INCLUDED_MBEDTLS_CONFIG_H #define MICROPY_INCLUDED_MBEDTLS_CONFIG_H -// Enable mbedtls modules. -#define MBEDTLS_HAVE_TIME -#define MBEDTLS_HAVE_TIME_DATE - // Time hook. #include extern time_t mimxrt_rtctime_seconds(time_t *timer); diff --git a/ports/renesas-ra/mbedtls/mbedtls_config.h b/ports/renesas-ra/mbedtls/mbedtls_config.h index 006f5660fdb5..f036f536c2ad 100644 --- a/ports/renesas-ra/mbedtls/mbedtls_config.h +++ b/ports/renesas-ra/mbedtls/mbedtls_config.h @@ -26,10 +26,6 @@ #ifndef MICROPY_INCLUDED_MBEDTLS_CONFIG_H #define MICROPY_INCLUDED_MBEDTLS_CONFIG_H -// Enable mbedtls modules. -#define MBEDTLS_HAVE_TIME -#define MBEDTLS_HAVE_TIME_DATE - // Time hook. #include extern time_t ra_rtctime_seconds(time_t *timer); diff --git a/ports/rp2/mbedtls/mbedtls_config.h b/ports/rp2/mbedtls/mbedtls_config.h index 1b6d3dd43a65..81be6c111b8d 100644 --- a/ports/rp2/mbedtls/mbedtls_config.h +++ b/ports/rp2/mbedtls/mbedtls_config.h @@ -32,8 +32,6 @@ // Enable mbedtls modules #define MBEDTLS_GCM_C -#define MBEDTLS_HAVE_TIME -#define MBEDTLS_HAVE_TIME_DATE // Time hook #include diff --git a/ports/stm32/mbedtls/mbedtls_config.h b/ports/stm32/mbedtls/mbedtls_config.h index bdac07339984..336fee0a199c 100644 --- a/ports/stm32/mbedtls/mbedtls_config.h +++ b/ports/stm32/mbedtls/mbedtls_config.h @@ -26,10 +26,6 @@ #ifndef MICROPY_INCLUDED_MBEDTLS_CONFIG_H #define MICROPY_INCLUDED_MBEDTLS_CONFIG_H -// Enable mbedtls modules. -#define MBEDTLS_HAVE_TIME -#define MBEDTLS_HAVE_TIME_DATE - // Time hook. #include extern time_t stm32_rtctime_seconds(time_t *timer); diff --git a/ports/unix/mbedtls/mbedtls_config.h b/ports/unix/mbedtls/mbedtls_config.h index f76a9cbf72de..629064abcf29 100644 --- a/ports/unix/mbedtls/mbedtls_config.h +++ b/ports/unix/mbedtls/mbedtls_config.h @@ -29,10 +29,6 @@ // Set mbedtls configuration #define MBEDTLS_CIPHER_MODE_CTR // needed for MICROPY_PY_CRYPTOLIB_CTR -// Cert time validation -#define MBEDTLS_HAVE_TIME -#define MBEDTLS_HAVE_TIME_DATE - // Enable mbedtls modules #define MBEDTLS_HAVEGE_C #define MBEDTLS_TIMING_C