Skip to content

Commit b871ab6

Browse files
[platform][mcxw71] Remove unused openthread dep in mbedtls config file
Signed-off-by: marius-alex-tache <marius.tache@nxp.com>
1 parent ab0568a commit b871ab6

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

src/platform/nxp/mcxw71_k32w1/k32w1-chip-mbedtls-config.h

-35
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,9 @@
1919
#ifndef MBEDTLS_CONFIG_H
2020
#define MBEDTLS_CONFIG_H
2121

22-
#include "openthread-core-config.h"
23-
2422
#include <stdio.h>
2523
#include <stdlib.h>
2624

27-
#include <openthread/config.h>
28-
#include <openthread/platform/logging.h>
29-
#include <openthread/platform/memory.h>
30-
3125
#undef MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
3226
#define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf
3327

@@ -67,16 +61,6 @@
6761
#define MBEDTLS_SSL_PROTO_DTLS
6862
#define MBEDTLS_SSL_TLS_C
6963

70-
#if OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE || OPENTHREAD_CONFIG_COMMISSIONER_ENABLE || OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE
71-
#define MBEDTLS_SSL_COOKIE_C
72-
#define MBEDTLS_SSL_SRV_C
73-
#endif
74-
75-
#if OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE
76-
#define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
77-
#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
78-
#endif
79-
8064
#ifdef MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
8165
#define MBEDTLS_BASE64_C
8266
#define MBEDTLS_ECDH_C
@@ -87,15 +71,6 @@
8771
#define MBEDTLS_X509_CRT_PARSE_C
8872
#endif
8973

90-
#if OPENTHREAD_CONFIG_ECDSA_ENABLE
91-
#define MBEDTLS_BASE64_C
92-
#define MBEDTLS_ECDH_C
93-
#define MBEDTLS_ECDSA_C
94-
#define MBEDTLS_ECDSA_DETERMINISTIC
95-
#define MBEDTLS_OID_C
96-
#define MBEDTLS_PEM_PARSE_C
97-
#define MBEDTLS_PK_WRITE_C
98-
#endif
9974

10075
#define MBEDTLS_MPI_WINDOW_SIZE 1 /**< Maximum windows size used. */
10176
#define MBEDTLS_MPI_MAX_SIZE 32 /**< Maximum number of bytes for usable MPIs. */
@@ -104,19 +79,9 @@
10479
#define MBEDTLS_ECP_FIXED_POINT_OPTIM 0 /**< Enable fixed-point speed-up */
10580
#define MBEDTLS_ENTROPY_MAX_SOURCES 2 /**< Maximum number of sources supported */
10681

107-
#if OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE
108-
#define MBEDTLS_PLATFORM_STD_CALLOC otPlatCAlloc /**< Default allocator to use, can be undefined */
109-
#define MBEDTLS_PLATFORM_STD_FREE otPlatFree /**< Default free to use, can be undefined */
110-
#else
11182
#define MBEDTLS_MEMORY_BUFFER_ALLOC_C
112-
#endif
11383

114-
#if OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE
115-
#define MBEDTLS_SSL_MAX_CONTENT_LEN 900 /**< Maxium fragment length in bytes */
116-
#else
11784
#define MBEDTLS_SSL_MAX_CONTENT_LEN 768 /**< Maxium fragment length in bytes */
118-
#endif
119-
12085
#define MBEDTLS_SSL_IN_CONTENT_LEN MBEDTLS_SSL_MAX_CONTENT_LEN
12186
#define MBEDTLS_SSL_OUT_CONTENT_LEN MBEDTLS_SSL_MAX_CONTENT_LEN
12287
#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8

0 commit comments

Comments
 (0)