summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--extmod/mbedtls/mbedtls_config_common.h2
-rw-r--r--ports/mimxrt/mbedtls/mbedtls_config.h4
-rw-r--r--ports/renesas-ra/mbedtls/mbedtls_config.h4
-rw-r--r--ports/rp2/mbedtls/mbedtls_config.h2
-rw-r--r--ports/stm32/mbedtls/mbedtls_config.h4
-rw-r--r--ports/unix/mbedtls/mbedtls_config.h4
6 files changed, 2 insertions, 18 deletions
diff --git a/extmod/mbedtls/mbedtls_config_common.h b/extmod/mbedtls/mbedtls_config_common.h
index bfbc6f7ba2..95458f18da 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 4404987570..f264ed4ad2 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 <time.h>
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 006f5660fd..f036f536c2 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 <time.h>
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 1b6d3dd43a..81be6c111b 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 <time.h>
diff --git a/ports/stm32/mbedtls/mbedtls_config.h b/ports/stm32/mbedtls/mbedtls_config.h
index bdac073399..336fee0a19 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 <time.h>
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 f76a9cbf72..629064abcf 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