Fix missing include in some files

Add it in all files that use mbedtls_plaform_memset() but didn't already
include platfom_util.h.

In some configurations it just happened to work, either because it was
included indirectly or because the part of the code that used that function
was disabled, but it some configurations it broke, so let's fix it properly.
This commit is contained in:
Manuel Pégourié-Gonnard 2019-10-02 15:55:23 +02:00
parent 7a346b866c
commit 5220781b98
8 changed files with 8 additions and 0 deletions

View File

@ -42,6 +42,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "mbedtls/platform_util.h"
#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \
!defined(inline) && !defined(__cplusplus)

View File

@ -31,6 +31,7 @@
#endif
#include <string.h>
#include "mbedtls/platform_util.h"
#if defined(MBEDTLS_ENTROPY_C)

View File

@ -28,6 +28,7 @@
#if defined(MBEDTLS_ERROR_C) || defined(MBEDTLS_ERROR_STRERROR_DUMMY)
#include "mbedtls/error.h"
#include <string.h>
#include "mbedtls/platform_util.h"
#endif
#if defined(MBEDTLS_PLATFORM_C)

View File

@ -47,6 +47,7 @@
#include "mbedtls/net_sockets.h"
#include <string.h>
#include "mbedtls/platform_util.h"
#if (defined(_WIN32) || defined(_WIN32_WCE)) && !defined(EFIX64) && \
!defined(EFI32)

View File

@ -40,6 +40,7 @@
#endif
#include <string.h>
#include "mbedtls/platform_util.h"
void mbedtls_pkcs11_init( mbedtls_pkcs11_context *ctx )
{

View File

@ -46,6 +46,7 @@
#endif /* MBEDTLS_ASN1_PARSE_C */
#include <string.h>
#include "mbedtls/platform_util.h"
#if defined(MBEDTLS_PLATFORM_C)
#include "mbedtls/platform.h"

View File

@ -43,6 +43,7 @@
#include "mbedtls/ssl_internal.h"
#include <string.h>
#include "mbedtls/platform_util.h"
void mbedtls_ssl_cache_init( mbedtls_ssl_cache_context *cache )
{

View File

@ -28,6 +28,7 @@
#if defined(MBEDTLS_ERROR_C) || defined(MBEDTLS_ERROR_STRERROR_DUMMY)
#include "mbedtls/error.h"
#include <string.h>
#include "mbedtls/platform_util.h"
#endif
#if defined(MBEDTLS_PLATFORM_C)