提交 fd4c708b 编写于 作者: H h00449031 提交者: public tcshversion

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/10227563Tested-by: Npublic jenkins <public_jenkins@notesmail.huawei.com>
Reviewed-by: Nwanghaixiang 00348538 <wanghaixiang@huawei.com>
Reviewed-by: Nhuxiuyin 00542495 <huxiuyin@huawei.com>
Reviewed-by: Nxiyuhao 00355835 <xiyuhao@huawei.com>
上级 3ba41ed2
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef MBEDTLS_CONFIG_H #ifndef MBEDTLS_CONFIG_H
#define MBEDTLS_CONFIG_H #define MBEDTLS_CONFIG_H
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
#define _CRT_SECURE_NO_DEPRECATE 1 #define _CRT_SECURE_NO_DEPRECATE 1
#endif #endif
...@@ -177,7 +178,7 @@ ...@@ -177,7 +178,7 @@
* *
* Enable this layer to allow use of alternative memory allocators. * Enable this layer to allow use of alternative memory allocators.
*/ */
// #define MBEDTLS_PLATFORM_MEMORY #define MBEDTLS_PLATFORM_MEMORY
/** /**
* \def MBEDTLS_PLATFORM_NO_STD_FUNCTIONS * \def MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
...@@ -196,7 +197,7 @@ ...@@ -196,7 +197,7 @@
* Uncomment to prevent default assignment of standard functions in the * Uncomment to prevent default assignment of standard functions in the
* platform layer. * platform layer.
*/ */
// #define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS #define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
/** /**
* \def MBEDTLS_PLATFORM_EXIT_ALT * \def MBEDTLS_PLATFORM_EXIT_ALT
...@@ -1160,7 +1161,7 @@ ...@@ -1160,7 +1161,7 @@
* *
* Uncomment this macro to disable the built-in platform entropy functions. * 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 * \def MBEDTLS_ENTROPY_FORCE_SHA256
...@@ -3076,8 +3077,8 @@ ...@@ -3076,8 +3077,8 @@
/* Platform options */ /* Platform options */
// #define MBEDTLS_PLATFORM_STD_MEM_HDR <stdlib.h> /**< Header to include if MBEDTLS_PLATFORM_NO_STD_FUNCTIONS is defined. Don't define if no header is needed. */ // #define MBEDTLS_PLATFORM_STD_MEM_HDR <stdlib.h> /**< 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_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_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_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_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 */ // #define MBEDTLS_PLATFORM_STD_FPRINTF fprintf /**< Default fprintf to use, can be undefined */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册