From 9ca11fc8929790f5a600ec062c82c57d9eac66ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 28 Nov 2019 12:07:01 +0100 Subject: [PATCH] Fix issues found by the CI - MSVC doesn't like -1u - We need to include platform.h for MBEDTLS_ERR_PLATFORM_FAULT_DETECTED - in some configurations it was already included indirectly, but not in all configurations, so better include it directly. --- library/x509_crt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/x509_crt.c b/library/x509_crt.c index b90ec72e8..fd3fa1a04 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -43,6 +43,7 @@ #include "mbedtls/x509_internal.h" #include "mbedtls/oid.h" #include "mbedtls/platform_util.h" +#include "mbedtls/platform.h" #include @@ -3780,7 +3781,7 @@ int mbedtls_x509_crt_verify_restartable( mbedtls_x509_crt *crt, int ret; mbedtls_x509_crt_verify_chain ver_chain; uint32_t ee_flags; - volatile uint32_t flags_fi = -1u; + volatile uint32_t flags_fi = (uint32_t) -1; *flags = 0; ee_flags = 0;