From fd4c708bcff56b535bef582d9982c19a6b2ff232 Mon Sep 17 00:00:00 2001 From: h00449031 Date: Thu, 13 Aug 2020 20:29:22 +0800 Subject: [PATCH] TicketNo: DTS2020081207507 Description: modify mbedtls config to fix huks func Team: OTHERS Feature or Bugfix:Feature Binary Source: NA PrivateCode(Yes/No):Yes Change-Id: If1e8c1a6a377d89c5506daf669ddf94c494c67d6 Reviewed-on: http://mgit-tm.rnd.huawei.com/10227563 Tested-by: public jenkins Reviewed-by: wanghaixiang 00348538 Reviewed-by: huxiuyin 00542495 Reviewed-by: xiyuhao 00355835 --- include/mbedtls/config.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/mbedtls/config.h b/include/mbedtls/config.h index 5737bb2..eed7943 100755 --- a/include/mbedtls/config.h +++ b/include/mbedtls/config.h @@ -29,6 +29,7 @@ #ifndef MBEDTLS_CONFIG_H #define MBEDTLS_CONFIG_H #include +#include #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) #define _CRT_SECURE_NO_DEPRECATE 1 #endif @@ -177,7 +178,7 @@ * * Enable this layer to allow use of alternative memory allocators. */ -// #define MBEDTLS_PLATFORM_MEMORY +#define MBEDTLS_PLATFORM_MEMORY /** * \def MBEDTLS_PLATFORM_NO_STD_FUNCTIONS @@ -196,7 +197,7 @@ * Uncomment to prevent default assignment of standard functions in the * platform layer. */ -// #define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS +#define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS /** * \def MBEDTLS_PLATFORM_EXIT_ALT @@ -1160,7 +1161,7 @@ * * Uncomment this macro to disable the built-in platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY +// #define MBEDTLS_NO_PLATFORM_ENTROPY /** * \def MBEDTLS_ENTROPY_FORCE_SHA256 @@ -3076,8 +3077,8 @@ /* Platform options */ // #define MBEDTLS_PLATFORM_STD_MEM_HDR /**< Header to include if MBEDTLS_PLATFORM_NO_STD_FUNCTIONS is defined. Don't define if no header is needed. */ -// #define MBEDTLS_PLATFORM_STD_CALLOC calloc /**< Default allocator to use, can be undefined */ -// #define MBEDTLS_PLATFORM_STD_FREE free /**< Default free to use, can be undefined */ + #define MBEDTLS_PLATFORM_STD_CALLOC calloc /**< Default allocator to use, can be undefined */ + #define MBEDTLS_PLATFORM_STD_FREE free /**< Default free to use, can be undefined */ // #define MBEDTLS_PLATFORM_STD_EXIT exit /**< Default exit to use, can be undefined */ // #define MBEDTLS_PLATFORM_STD_TIME time /**< Default time to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */ // #define MBEDTLS_PLATFORM_STD_FPRINTF fprintf /**< Default fprintf to use, can be undefined */ -- GitLab