Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
riot_mbedtls_config.h
Go to the documentation of this file.
1
14
/*
15
* Copyright The Mbed TLS Contributors
16
* SPDX-License-Identifier: Apache-2.0
17
*
18
* Licensed under the Apache License, Version 2.0 (the "License"); you may
19
* not use this file except in compliance with the License.
20
* You may obtain a copy of the License at
21
*
22
* http://www.apache.org/licenses/LICENSE-2.0
23
*
24
* Unless required by applicable law or agreed to in writing, software
25
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
26
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
* See the License for the specific language governing permissions and
28
* limitations under the License.
29
*/
30
31
#ifndef RIOT_MBEDTLS_CONFIG_H
32
#define RIOT_MBEDTLS_CONFIG_H
33
34
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
35
#define _CRT_SECURE_NO_DEPRECATE 1
36
#endif
37
38
#include "
kernel_defines.h
"
39
40
#ifdef __cplusplus
41
extern
"C"
{
42
#endif
43
44
#if !IS_ACTIVE(CONFIG_KCONFIG_USEPKG_MBEDTLS) || defined(DOXYGEN)
45
50
#ifndef CONFIG_MBEDTLS_SELF_TEST
51
#define CONFIG_MBEDTLS_SELF_TEST 1
52
#endif
53
65
#ifndef CONFIG_MBEDTLS_ENTROPY_C
66
#define CONFIG_MBEDTLS_ENTROPY_C 1
67
#endif
68
83
#ifndef CONFIG_MBEDTLS_SHA256_C
84
#define CONFIG_MBEDTLS_SHA256_C 1
85
#endif
86
111
#ifndef CONFIG_MBEDTLS_SHA256_ALT
112
#define CONFIG_MBEDTLS_SHA256_ALT 1
113
#endif
114
135
#ifndef CONFIG_MBEDTLS_THREADING_C
136
#define CONFIG_MBEDTLS_THREADING_C 1
137
#endif
138
146
#if !defined (CONFIG_MBEDTLS_THREADING_ALT) && defined (CONFIG_MBEDTLS_THREADING_C)
147
#define CONFIG_MBEDTLS_THREADING_ALT 1
148
#endif
149
150
#endif
/* !CONFIG_KCONFIG_USEPKG_MBEDTLS || DOXYGEN */
151
152
#if !IS_ACTIVE(CONFIG_KCONFIG_USEMODULE_MBEDTLS_ENTROPY) || defined(DOXYGEN)
153
164
#ifndef CONFIG_MBEDTLS_ENTROPY_HARDWARE_ALT
165
#define CONFIG_MBEDTLS_ENTROPY_HARDWARE_ALT 1
166
#endif
167
176
#ifndef CONFIG_MBEDTLS_NO_PLATFORM_ENTROPY
177
#define CONFIG_MBEDTLS_NO_PLATFORM_ENTROPY 1
178
#endif
179
193
#ifndef CONFIG_MBEDTLS_ENTROPY_FORCE_SHA256
194
#define CONFIG_MBEDTLS_ENTROPY_FORCE_SHA256 1
195
#endif
196
197
#endif
/* !CONFIG_KCONFIG_USEMODULE_MBEDTLS_ENTROPY || DOXYGEN */
198
203
#if CONFIG_MBEDTLS_SHA256_ALT
204
#define MBEDTLS_SHA256_ALT 1
205
#endif
206
#if CONFIG_MBEDTLS_ENTROPY_HARDWARE_ALT
207
#define MBEDTLS_ENTROPY_HARDWARE_ALT 1
208
#endif
209
#if CONFIG_MBEDTLS_NO_PLATFORM_ENTROPY
210
#define MBEDTLS_NO_PLATFORM_ENTROPY 1
211
#endif
212
#if CONFIG_MBEDTLS_ENTROPY_FORCE_SHA256
213
#define MBEDTLS_ENTROPY_FORCE_SHA256 1
214
#endif
215
#if CONFIG_MBEDTLS_THREADING_C
216
#define MBEDTLS_THREADING_C 1
217
#endif
218
#if CONFIG_MBEDTLS_THREADING_ALT
219
#define MBEDTLS_THREADING_ALT 1
220
#endif
221
#if CONFIG_MBEDTLS_SELF_TEST
222
#define MBEDTLS_SELF_TEST 1
223
#endif
224
#if CONFIG_MBEDTLS_ENTROPY_C
225
#define MBEDTLS_ENTROPY_C 1
226
#endif
227
#if CONFIG_MBEDTLS_SHA256_C
228
#define MBEDTLS_SHA256_C 1
229
#endif
232
#include "mbedtls/check_config.h"
233
234
#ifdef __cplusplus
235
}
236
#endif
237
238
#endif
/* RIOT_MBEDTLS_CONFIG_H */
kernel_defines.h
Common macros and compiler attributes/pragmas configuration.
Generated on Thu Nov 21 2024 13:53:01 by
1.9.8