From 20ffbe1a414338c67cb531291aff647d001e878f Mon Sep 17 00:00:00 2001 From: Carlosgg Date: Thu, 30 Nov 2023 18:25:44 +0000 Subject: [PATCH] unix/mbedtls: Enable mbedtls cert time validation. To match other ports. Signed-off-by: Carlos Gil --- ports/unix/mbedtls/mbedtls_config.h | 4 ++++ 1 file changed, 4 insertions(+) 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