From ac4c5c467b678148ba577d344501c6111aead35c Mon Sep 17 00:00:00 2001 From: pennam Date: Thu, 4 Apr 2024 12:41:07 +0200 Subject: [PATCH 1/2] Remove MBEDTLS_HAVE_TIME_DATE to align to other variants This will also avoid TLS connection to be closed because the certificate validity starts in the future --- variants/NICLA_VISION/conf/custom_mbedtls_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variants/NICLA_VISION/conf/custom_mbedtls_config.h b/variants/NICLA_VISION/conf/custom_mbedtls_config.h index cfea49137..b61b5a129 100644 --- a/variants/NICLA_VISION/conf/custom_mbedtls_config.h +++ b/variants/NICLA_VISION/conf/custom_mbedtls_config.h @@ -186,7 +186,7 @@ void * tstDoTraceAndCalloc( * mbedtls_platform_gmtime_r() at compile-time by using the macro * MBEDTLS_PLATFORM_GMTIME_R_ALT. */ -#define MBEDTLS_HAVE_TIME_DATE +//#define MBEDTLS_HAVE_TIME_DATE /** * \def MBEDTLS_PLATFORM_MEMORY From 89f1f03e58d17909dfee6697f0fcb1621abe481a Mon Sep 17 00:00:00 2001 From: pennam Date: Thu, 4 Apr 2024 12:43:17 +0200 Subject: [PATCH 2/2] Remove MBEDTLS_FS_IO and MBEDTLS_SHA1_C They are already defined in target.json file and causing redefinition warnings --- variants/NICLA_VISION/conf/custom_mbedtls_config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variants/NICLA_VISION/conf/custom_mbedtls_config.h b/variants/NICLA_VISION/conf/custom_mbedtls_config.h index b61b5a129..c2a399cc2 100644 --- a/variants/NICLA_VISION/conf/custom_mbedtls_config.h +++ b/variants/NICLA_VISION/conf/custom_mbedtls_config.h @@ -1163,7 +1163,7 @@ void * tstDoTraceAndCalloc( * * Enable functions that use the filesystem. */ -#define MBEDTLS_FS_IO +//#define MBEDTLS_FS_IO /** * \def MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES @@ -2770,7 +2770,7 @@ void * tstDoTraceAndCalloc( * on it, and considering stronger message digests instead. * */ -#define MBEDTLS_SHA1_C +//#define MBEDTLS_SHA1_C /** * \def MBEDTLS_SHA256_C