summaryrefslogtreecommitdiffstatshomepage
path: root/ports/unix/mbedtls/mbedtls_config.h
diff options
context:
space:
mode:
authorCarlosgg <carlosgilglez@gmail.com>2023-11-30 18:25:44 +0000
committerDamien George <damien@micropython.org>2023-12-01 15:08:11 +1100
commit20ffbe1a414338c67cb531291aff647d001e878f (patch)
treef082505b84d863ecd2f8d8ed547418d3ffe55b75 /ports/unix/mbedtls/mbedtls_config.h
parentad806df857b52e9814dbd857b14f09b63eb847fe (diff)
downloadmicropython-20ffbe1a414338c67cb531291aff647d001e878f.tar.gz
micropython-20ffbe1a414338c67cb531291aff647d001e878f.zip
unix/mbedtls: Enable mbedtls cert time validation.
To match other ports. Signed-off-by: Carlos Gil <carlosgilglez@gmail.com>
Diffstat (limited to 'ports/unix/mbedtls/mbedtls_config.h')
-rw-r--r--ports/unix/mbedtls/mbedtls_config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/unix/mbedtls/mbedtls_config.h b/ports/unix/mbedtls/mbedtls_config.h
index 629064abcf..f76a9cbf72 100644
--- a/ports/unix/mbedtls/mbedtls_config.h
+++ b/ports/unix/mbedtls/mbedtls_config.h
@@ -29,6 +29,10 @@
// 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