blob: f560943e4b43853fafcc2714ce3caa84618a8675 [file] [log] [blame]
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001/*
Andres Amaya Garcia5547a402018-10-29 18:58:41 +00002 * Query Mbed TLS compile time configurations from config.h
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01003 *
4 * Copyright (C) 2018, Arm Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may
8 * not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 * This file is part of Mbed TLS (https://tls.mbed.org)
20 */
21
22#if !defined(MBEDTLS_CONFIG_FILE)
23#include "mbedtls/config.h"
24#else
25#include MBEDTLS_CONFIG_FILE
26#endif
27
28#if defined(MBEDTLS_PLATFORM_C)
29#include "mbedtls/platform.h"
30#else
Andres AGb6ff1842018-10-26 18:37:38 +010031#include <stdio.h>
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +010032#define mbedtls_printf printf
33#endif /* MBEDTLS_PLATFORM_C */
34
Andres Amaya Garcia5547a402018-10-29 18:58:41 +000035/*
36 * Include all the headers with public APIs in case they define a macro to its
37 * default value when that configuration is not set in the config.h.
38 */
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +010039#include "mbedtls/aes.h"
40#include "mbedtls/aesni.h"
41#include "mbedtls/arc4.h"
42#include "mbedtls/aria.h"
43#include "mbedtls/asn1.h"
44#include "mbedtls/asn1write.h"
45#include "mbedtls/base64.h"
46#include "mbedtls/bignum.h"
47#include "mbedtls/blowfish.h"
48#include "mbedtls/camellia.h"
49#include "mbedtls/ccm.h"
50#include "mbedtls/certs.h"
51#include "mbedtls/chacha20.h"
52#include "mbedtls/chachapoly.h"
53#include "mbedtls/cipher.h"
54#include "mbedtls/cmac.h"
55#include "mbedtls/ctr_drbg.h"
56#include "mbedtls/debug.h"
57#include "mbedtls/des.h"
58#include "mbedtls/dhm.h"
59#include "mbedtls/ecdh.h"
60#include "mbedtls/ecdsa.h"
61#include "mbedtls/ecjpake.h"
62#include "mbedtls/ecp.h"
63#include "mbedtls/entropy.h"
64#include "mbedtls/entropy_poll.h"
65#include "mbedtls/error.h"
66#include "mbedtls/gcm.h"
67#include "mbedtls/havege.h"
68#include "mbedtls/hkdf.h"
69#include "mbedtls/hmac_drbg.h"
70#include "mbedtls/md.h"
71#include "mbedtls/md2.h"
72#include "mbedtls/md4.h"
73#include "mbedtls/md5.h"
74#include "mbedtls/memory_buffer_alloc.h"
75#include "mbedtls/net_sockets.h"
76#include "mbedtls/nist_kw.h"
77#include "mbedtls/oid.h"
78#include "mbedtls/padlock.h"
79#include "mbedtls/pem.h"
80#include "mbedtls/pk.h"
81#include "mbedtls/pkcs11.h"
82#include "mbedtls/pkcs12.h"
83#include "mbedtls/pkcs5.h"
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +010084#include "mbedtls/platform_time.h"
85#include "mbedtls/platform_util.h"
86#include "mbedtls/poly1305.h"
87#include "mbedtls/ripemd160.h"
88#include "mbedtls/rsa.h"
89#include "mbedtls/sha1.h"
90#include "mbedtls/sha256.h"
91#include "mbedtls/sha512.h"
92#include "mbedtls/ssl.h"
93#include "mbedtls/ssl_cache.h"
94#include "mbedtls/ssl_ciphersuites.h"
95#include "mbedtls/ssl_cookie.h"
96#include "mbedtls/ssl_internal.h"
97#include "mbedtls/ssl_ticket.h"
98#include "mbedtls/threading.h"
99#include "mbedtls/timing.h"
100#include "mbedtls/version.h"
101#include "mbedtls/x509.h"
102#include "mbedtls/x509_crl.h"
103#include "mbedtls/x509_crt.h"
104#include "mbedtls/x509_csr.h"
105#include "mbedtls/xtea.h"
106
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100107#include <string.h>
108
109/* Helper macros to convert a macro or its expansion into a string */
Andres Amaya Garciac46ea382018-10-30 21:52:53 +0000110#if defined(_MSC_VER)
111#define MACRO_EXPANSION_TO_STR(macro) strlen( #macro ) > 0 ? #macro "\n" : ""
112#else
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100113#define MACRO_EXPANSION_TO_STR(macro) MACRO_NAME_TO_STR(macro)
114#define MACRO_NAME_TO_STR(macro) strlen( #macro ) > 0 ? #macro "\n" : ""
Andres Amaya Garciac46ea382018-10-30 21:52:53 +0000115#endif /* _MSC_VER */
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100116
117int query_config( const char *config )
118{
119#if defined(MBEDTLS_HAVE_ASM)
120 if( strcmp( "MBEDTLS_HAVE_ASM", config ) == 0 )
121 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000122 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_HAVE_ASM ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100123 return( 0 );
124 }
125#endif /* MBEDTLS_HAVE_ASM */
126
127#if defined(MBEDTLS_NO_UDBL_DIVISION)
128 if( strcmp( "MBEDTLS_NO_UDBL_DIVISION", config ) == 0 )
129 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000130 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_NO_UDBL_DIVISION ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100131 return( 0 );
132 }
133#endif /* MBEDTLS_NO_UDBL_DIVISION */
134
135#if defined(MBEDTLS_NO_64BIT_MULTIPLICATION)
136 if( strcmp( "MBEDTLS_NO_64BIT_MULTIPLICATION", config ) == 0 )
137 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000138 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_NO_64BIT_MULTIPLICATION ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100139 return( 0 );
140 }
141#endif /* MBEDTLS_NO_64BIT_MULTIPLICATION */
142
143#if defined(MBEDTLS_HAVE_SSE2)
144 if( strcmp( "MBEDTLS_HAVE_SSE2", config ) == 0 )
145 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000146 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_HAVE_SSE2 ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100147 return( 0 );
148 }
149#endif /* MBEDTLS_HAVE_SSE2 */
150
151#if defined(MBEDTLS_HAVE_TIME)
152 if( strcmp( "MBEDTLS_HAVE_TIME", config ) == 0 )
153 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000154 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_HAVE_TIME ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100155 return( 0 );
156 }
157#endif /* MBEDTLS_HAVE_TIME */
158
159#if defined(MBEDTLS_HAVE_TIME_DATE)
160 if( strcmp( "MBEDTLS_HAVE_TIME_DATE", config ) == 0 )
161 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000162 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_HAVE_TIME_DATE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100163 return( 0 );
164 }
165#endif /* MBEDTLS_HAVE_TIME_DATE */
166
167#if defined(MBEDTLS_PLATFORM_MEMORY)
168 if( strcmp( "MBEDTLS_PLATFORM_MEMORY", config ) == 0 )
169 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000170 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_MEMORY ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100171 return( 0 );
172 }
173#endif /* MBEDTLS_PLATFORM_MEMORY */
174
175#if defined(MBEDTLS_PLATFORM_NO_STD_FUNCTIONS)
176 if( strcmp( "MBEDTLS_PLATFORM_NO_STD_FUNCTIONS", config ) == 0 )
177 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000178 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_NO_STD_FUNCTIONS ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100179 return( 0 );
180 }
181#endif /* MBEDTLS_PLATFORM_NO_STD_FUNCTIONS */
182
183#if defined(MBEDTLS_PLATFORM_EXIT_ALT)
184 if( strcmp( "MBEDTLS_PLATFORM_EXIT_ALT", config ) == 0 )
185 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000186 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_EXIT_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100187 return( 0 );
188 }
189#endif /* MBEDTLS_PLATFORM_EXIT_ALT */
190
191#if defined(MBEDTLS_PLATFORM_TIME_ALT)
192 if( strcmp( "MBEDTLS_PLATFORM_TIME_ALT", config ) == 0 )
193 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000194 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_TIME_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100195 return( 0 );
196 }
197#endif /* MBEDTLS_PLATFORM_TIME_ALT */
198
199#if defined(MBEDTLS_PLATFORM_FPRINTF_ALT)
200 if( strcmp( "MBEDTLS_PLATFORM_FPRINTF_ALT", config ) == 0 )
201 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000202 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_FPRINTF_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100203 return( 0 );
204 }
205#endif /* MBEDTLS_PLATFORM_FPRINTF_ALT */
206
207#if defined(MBEDTLS_PLATFORM_PRINTF_ALT)
208 if( strcmp( "MBEDTLS_PLATFORM_PRINTF_ALT", config ) == 0 )
209 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000210 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_PRINTF_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100211 return( 0 );
212 }
213#endif /* MBEDTLS_PLATFORM_PRINTF_ALT */
214
215#if defined(MBEDTLS_PLATFORM_SNPRINTF_ALT)
216 if( strcmp( "MBEDTLS_PLATFORM_SNPRINTF_ALT", config ) == 0 )
217 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000218 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_SNPRINTF_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100219 return( 0 );
220 }
221#endif /* MBEDTLS_PLATFORM_SNPRINTF_ALT */
222
223#if defined(MBEDTLS_PLATFORM_NV_SEED_ALT)
224 if( strcmp( "MBEDTLS_PLATFORM_NV_SEED_ALT", config ) == 0 )
225 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000226 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_NV_SEED_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100227 return( 0 );
228 }
229#endif /* MBEDTLS_PLATFORM_NV_SEED_ALT */
230
231#if defined(MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT)
232 if( strcmp( "MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT", config ) == 0 )
233 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000234 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100235 return( 0 );
236 }
237#endif /* MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT */
238
239#if defined(MBEDTLS_DEPRECATED_WARNING)
240 if( strcmp( "MBEDTLS_DEPRECATED_WARNING", config ) == 0 )
241 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000242 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_DEPRECATED_WARNING ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100243 return( 0 );
244 }
245#endif /* MBEDTLS_DEPRECATED_WARNING */
246
247#if defined(MBEDTLS_DEPRECATED_REMOVED)
248 if( strcmp( "MBEDTLS_DEPRECATED_REMOVED", config ) == 0 )
249 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000250 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_DEPRECATED_REMOVED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100251 return( 0 );
252 }
253#endif /* MBEDTLS_DEPRECATED_REMOVED */
254
255#if defined(MBEDTLS_TIMING_ALT)
256 if( strcmp( "MBEDTLS_TIMING_ALT", config ) == 0 )
257 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000258 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_TIMING_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100259 return( 0 );
260 }
261#endif /* MBEDTLS_TIMING_ALT */
262
263#if defined(MBEDTLS_AES_ALT)
264 if( strcmp( "MBEDTLS_AES_ALT", config ) == 0 )
265 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000266 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_AES_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100267 return( 0 );
268 }
269#endif /* MBEDTLS_AES_ALT */
270
271#if defined(MBEDTLS_ARC4_ALT)
272 if( strcmp( "MBEDTLS_ARC4_ALT", config ) == 0 )
273 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000274 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ARC4_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100275 return( 0 );
276 }
277#endif /* MBEDTLS_ARC4_ALT */
278
279#if defined(MBEDTLS_ARIA_ALT)
280 if( strcmp( "MBEDTLS_ARIA_ALT", config ) == 0 )
281 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000282 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ARIA_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100283 return( 0 );
284 }
285#endif /* MBEDTLS_ARIA_ALT */
286
287#if defined(MBEDTLS_BLOWFISH_ALT)
288 if( strcmp( "MBEDTLS_BLOWFISH_ALT", config ) == 0 )
289 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000290 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_BLOWFISH_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100291 return( 0 );
292 }
293#endif /* MBEDTLS_BLOWFISH_ALT */
294
295#if defined(MBEDTLS_CAMELLIA_ALT)
296 if( strcmp( "MBEDTLS_CAMELLIA_ALT", config ) == 0 )
297 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000298 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CAMELLIA_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100299 return( 0 );
300 }
301#endif /* MBEDTLS_CAMELLIA_ALT */
302
303#if defined(MBEDTLS_CCM_ALT)
304 if( strcmp( "MBEDTLS_CCM_ALT", config ) == 0 )
305 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000306 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CCM_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100307 return( 0 );
308 }
309#endif /* MBEDTLS_CCM_ALT */
310
311#if defined(MBEDTLS_CHACHA20_ALT)
312 if( strcmp( "MBEDTLS_CHACHA20_ALT", config ) == 0 )
313 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000314 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CHACHA20_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100315 return( 0 );
316 }
317#endif /* MBEDTLS_CHACHA20_ALT */
318
319#if defined(MBEDTLS_CHACHAPOLY_ALT)
320 if( strcmp( "MBEDTLS_CHACHAPOLY_ALT", config ) == 0 )
321 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000322 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CHACHAPOLY_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100323 return( 0 );
324 }
325#endif /* MBEDTLS_CHACHAPOLY_ALT */
326
327#if defined(MBEDTLS_CMAC_ALT)
328 if( strcmp( "MBEDTLS_CMAC_ALT", config ) == 0 )
329 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000330 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CMAC_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100331 return( 0 );
332 }
333#endif /* MBEDTLS_CMAC_ALT */
334
335#if defined(MBEDTLS_DES_ALT)
336 if( strcmp( "MBEDTLS_DES_ALT", config ) == 0 )
337 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000338 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_DES_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100339 return( 0 );
340 }
341#endif /* MBEDTLS_DES_ALT */
342
343#if defined(MBEDTLS_DHM_ALT)
344 if( strcmp( "MBEDTLS_DHM_ALT", config ) == 0 )
345 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000346 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_DHM_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100347 return( 0 );
348 }
349#endif /* MBEDTLS_DHM_ALT */
350
351#if defined(MBEDTLS_ECJPAKE_ALT)
352 if( strcmp( "MBEDTLS_ECJPAKE_ALT", config ) == 0 )
353 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000354 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECJPAKE_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100355 return( 0 );
356 }
357#endif /* MBEDTLS_ECJPAKE_ALT */
358
359#if defined(MBEDTLS_GCM_ALT)
360 if( strcmp( "MBEDTLS_GCM_ALT", config ) == 0 )
361 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000362 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_GCM_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100363 return( 0 );
364 }
365#endif /* MBEDTLS_GCM_ALT */
366
367#if defined(MBEDTLS_NIST_KW_ALT)
368 if( strcmp( "MBEDTLS_NIST_KW_ALT", config ) == 0 )
369 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000370 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_NIST_KW_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100371 return( 0 );
372 }
373#endif /* MBEDTLS_NIST_KW_ALT */
374
375#if defined(MBEDTLS_MD2_ALT)
376 if( strcmp( "MBEDTLS_MD2_ALT", config ) == 0 )
377 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000378 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MD2_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100379 return( 0 );
380 }
381#endif /* MBEDTLS_MD2_ALT */
382
383#if defined(MBEDTLS_MD4_ALT)
384 if( strcmp( "MBEDTLS_MD4_ALT", config ) == 0 )
385 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000386 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MD4_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100387 return( 0 );
388 }
389#endif /* MBEDTLS_MD4_ALT */
390
391#if defined(MBEDTLS_MD5_ALT)
392 if( strcmp( "MBEDTLS_MD5_ALT", config ) == 0 )
393 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000394 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MD5_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100395 return( 0 );
396 }
397#endif /* MBEDTLS_MD5_ALT */
398
399#if defined(MBEDTLS_POLY1305_ALT)
400 if( strcmp( "MBEDTLS_POLY1305_ALT", config ) == 0 )
401 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000402 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_POLY1305_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100403 return( 0 );
404 }
405#endif /* MBEDTLS_POLY1305_ALT */
406
407#if defined(MBEDTLS_RIPEMD160_ALT)
408 if( strcmp( "MBEDTLS_RIPEMD160_ALT", config ) == 0 )
409 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000410 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_RIPEMD160_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100411 return( 0 );
412 }
413#endif /* MBEDTLS_RIPEMD160_ALT */
414
415#if defined(MBEDTLS_RSA_ALT)
416 if( strcmp( "MBEDTLS_RSA_ALT", config ) == 0 )
417 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000418 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_RSA_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100419 return( 0 );
420 }
421#endif /* MBEDTLS_RSA_ALT */
422
423#if defined(MBEDTLS_SHA1_ALT)
424 if( strcmp( "MBEDTLS_SHA1_ALT", config ) == 0 )
425 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000426 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SHA1_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100427 return( 0 );
428 }
429#endif /* MBEDTLS_SHA1_ALT */
430
431#if defined(MBEDTLS_SHA256_ALT)
432 if( strcmp( "MBEDTLS_SHA256_ALT", config ) == 0 )
433 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000434 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SHA256_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100435 return( 0 );
436 }
437#endif /* MBEDTLS_SHA256_ALT */
438
439#if defined(MBEDTLS_SHA512_ALT)
440 if( strcmp( "MBEDTLS_SHA512_ALT", config ) == 0 )
441 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000442 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SHA512_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100443 return( 0 );
444 }
445#endif /* MBEDTLS_SHA512_ALT */
446
447#if defined(MBEDTLS_XTEA_ALT)
448 if( strcmp( "MBEDTLS_XTEA_ALT", config ) == 0 )
449 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000450 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_XTEA_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100451 return( 0 );
452 }
453#endif /* MBEDTLS_XTEA_ALT */
454
455#if defined(MBEDTLS_ECP_ALT)
456 if( strcmp( "MBEDTLS_ECP_ALT", config ) == 0 )
457 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000458 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100459 return( 0 );
460 }
461#endif /* MBEDTLS_ECP_ALT */
462
463#if defined(MBEDTLS_MD2_PROCESS_ALT)
464 if( strcmp( "MBEDTLS_MD2_PROCESS_ALT", config ) == 0 )
465 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000466 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MD2_PROCESS_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100467 return( 0 );
468 }
469#endif /* MBEDTLS_MD2_PROCESS_ALT */
470
471#if defined(MBEDTLS_MD4_PROCESS_ALT)
472 if( strcmp( "MBEDTLS_MD4_PROCESS_ALT", config ) == 0 )
473 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000474 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MD4_PROCESS_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100475 return( 0 );
476 }
477#endif /* MBEDTLS_MD4_PROCESS_ALT */
478
479#if defined(MBEDTLS_MD5_PROCESS_ALT)
480 if( strcmp( "MBEDTLS_MD5_PROCESS_ALT", config ) == 0 )
481 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000482 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MD5_PROCESS_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100483 return( 0 );
484 }
485#endif /* MBEDTLS_MD5_PROCESS_ALT */
486
487#if defined(MBEDTLS_RIPEMD160_PROCESS_ALT)
488 if( strcmp( "MBEDTLS_RIPEMD160_PROCESS_ALT", config ) == 0 )
489 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000490 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_RIPEMD160_PROCESS_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100491 return( 0 );
492 }
493#endif /* MBEDTLS_RIPEMD160_PROCESS_ALT */
494
495#if defined(MBEDTLS_SHA1_PROCESS_ALT)
496 if( strcmp( "MBEDTLS_SHA1_PROCESS_ALT", config ) == 0 )
497 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000498 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SHA1_PROCESS_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100499 return( 0 );
500 }
501#endif /* MBEDTLS_SHA1_PROCESS_ALT */
502
503#if defined(MBEDTLS_SHA256_PROCESS_ALT)
504 if( strcmp( "MBEDTLS_SHA256_PROCESS_ALT", config ) == 0 )
505 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000506 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SHA256_PROCESS_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100507 return( 0 );
508 }
509#endif /* MBEDTLS_SHA256_PROCESS_ALT */
510
511#if defined(MBEDTLS_SHA512_PROCESS_ALT)
512 if( strcmp( "MBEDTLS_SHA512_PROCESS_ALT", config ) == 0 )
513 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000514 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SHA512_PROCESS_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100515 return( 0 );
516 }
517#endif /* MBEDTLS_SHA512_PROCESS_ALT */
518
519#if defined(MBEDTLS_DES_SETKEY_ALT)
520 if( strcmp( "MBEDTLS_DES_SETKEY_ALT", config ) == 0 )
521 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000522 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_DES_SETKEY_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100523 return( 0 );
524 }
525#endif /* MBEDTLS_DES_SETKEY_ALT */
526
527#if defined(MBEDTLS_DES_CRYPT_ECB_ALT)
528 if( strcmp( "MBEDTLS_DES_CRYPT_ECB_ALT", config ) == 0 )
529 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000530 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_DES_CRYPT_ECB_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100531 return( 0 );
532 }
533#endif /* MBEDTLS_DES_CRYPT_ECB_ALT */
534
535#if defined(MBEDTLS_DES3_CRYPT_ECB_ALT)
536 if( strcmp( "MBEDTLS_DES3_CRYPT_ECB_ALT", config ) == 0 )
537 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000538 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_DES3_CRYPT_ECB_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100539 return( 0 );
540 }
541#endif /* MBEDTLS_DES3_CRYPT_ECB_ALT */
542
543#if defined(MBEDTLS_AES_SETKEY_ENC_ALT)
544 if( strcmp( "MBEDTLS_AES_SETKEY_ENC_ALT", config ) == 0 )
545 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000546 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_AES_SETKEY_ENC_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100547 return( 0 );
548 }
549#endif /* MBEDTLS_AES_SETKEY_ENC_ALT */
550
551#if defined(MBEDTLS_AES_SETKEY_DEC_ALT)
552 if( strcmp( "MBEDTLS_AES_SETKEY_DEC_ALT", config ) == 0 )
553 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000554 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_AES_SETKEY_DEC_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100555 return( 0 );
556 }
557#endif /* MBEDTLS_AES_SETKEY_DEC_ALT */
558
559#if defined(MBEDTLS_AES_ENCRYPT_ALT)
560 if( strcmp( "MBEDTLS_AES_ENCRYPT_ALT", config ) == 0 )
561 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000562 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_AES_ENCRYPT_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100563 return( 0 );
564 }
565#endif /* MBEDTLS_AES_ENCRYPT_ALT */
566
567#if defined(MBEDTLS_AES_DECRYPT_ALT)
568 if( strcmp( "MBEDTLS_AES_DECRYPT_ALT", config ) == 0 )
569 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000570 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_AES_DECRYPT_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100571 return( 0 );
572 }
573#endif /* MBEDTLS_AES_DECRYPT_ALT */
574
575#if defined(MBEDTLS_ECDH_GEN_PUBLIC_ALT)
576 if( strcmp( "MBEDTLS_ECDH_GEN_PUBLIC_ALT", config ) == 0 )
577 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000578 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECDH_GEN_PUBLIC_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100579 return( 0 );
580 }
581#endif /* MBEDTLS_ECDH_GEN_PUBLIC_ALT */
582
583#if defined(MBEDTLS_ECDH_COMPUTE_SHARED_ALT)
584 if( strcmp( "MBEDTLS_ECDH_COMPUTE_SHARED_ALT", config ) == 0 )
585 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000586 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECDH_COMPUTE_SHARED_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100587 return( 0 );
588 }
589#endif /* MBEDTLS_ECDH_COMPUTE_SHARED_ALT */
590
591#if defined(MBEDTLS_ECDSA_VERIFY_ALT)
592 if( strcmp( "MBEDTLS_ECDSA_VERIFY_ALT", config ) == 0 )
593 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000594 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECDSA_VERIFY_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100595 return( 0 );
596 }
597#endif /* MBEDTLS_ECDSA_VERIFY_ALT */
598
599#if defined(MBEDTLS_ECDSA_SIGN_ALT)
600 if( strcmp( "MBEDTLS_ECDSA_SIGN_ALT", config ) == 0 )
601 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000602 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECDSA_SIGN_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100603 return( 0 );
604 }
605#endif /* MBEDTLS_ECDSA_SIGN_ALT */
606
607#if defined(MBEDTLS_ECDSA_GENKEY_ALT)
608 if( strcmp( "MBEDTLS_ECDSA_GENKEY_ALT", config ) == 0 )
609 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000610 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECDSA_GENKEY_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100611 return( 0 );
612 }
613#endif /* MBEDTLS_ECDSA_GENKEY_ALT */
614
615#if defined(MBEDTLS_ECP_INTERNAL_ALT)
616 if( strcmp( "MBEDTLS_ECP_INTERNAL_ALT", config ) == 0 )
617 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000618 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_INTERNAL_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100619 return( 0 );
620 }
621#endif /* MBEDTLS_ECP_INTERNAL_ALT */
622
623#if defined(MBEDTLS_ECP_RANDOMIZE_JAC_ALT)
624 if( strcmp( "MBEDTLS_ECP_RANDOMIZE_JAC_ALT", config ) == 0 )
625 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000626 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_RANDOMIZE_JAC_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100627 return( 0 );
628 }
629#endif /* MBEDTLS_ECP_RANDOMIZE_JAC_ALT */
630
631#if defined(MBEDTLS_ECP_ADD_MIXED_ALT)
632 if( strcmp( "MBEDTLS_ECP_ADD_MIXED_ALT", config ) == 0 )
633 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000634 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_ADD_MIXED_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100635 return( 0 );
636 }
637#endif /* MBEDTLS_ECP_ADD_MIXED_ALT */
638
639#if defined(MBEDTLS_ECP_DOUBLE_JAC_ALT)
640 if( strcmp( "MBEDTLS_ECP_DOUBLE_JAC_ALT", config ) == 0 )
641 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000642 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DOUBLE_JAC_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100643 return( 0 );
644 }
645#endif /* MBEDTLS_ECP_DOUBLE_JAC_ALT */
646
647#if defined(MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT)
648 if( strcmp( "MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT", config ) == 0 )
649 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000650 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100651 return( 0 );
652 }
653#endif /* MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT */
654
655#if defined(MBEDTLS_ECP_NORMALIZE_JAC_ALT)
656 if( strcmp( "MBEDTLS_ECP_NORMALIZE_JAC_ALT", config ) == 0 )
657 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000658 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_NORMALIZE_JAC_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100659 return( 0 );
660 }
661#endif /* MBEDTLS_ECP_NORMALIZE_JAC_ALT */
662
663#if defined(MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT)
664 if( strcmp( "MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT", config ) == 0 )
665 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000666 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100667 return( 0 );
668 }
669#endif /* MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT */
670
671#if defined(MBEDTLS_ECP_RANDOMIZE_MXZ_ALT)
672 if( strcmp( "MBEDTLS_ECP_RANDOMIZE_MXZ_ALT", config ) == 0 )
673 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000674 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_RANDOMIZE_MXZ_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100675 return( 0 );
676 }
677#endif /* MBEDTLS_ECP_RANDOMIZE_MXZ_ALT */
678
679#if defined(MBEDTLS_ECP_NORMALIZE_MXZ_ALT)
680 if( strcmp( "MBEDTLS_ECP_NORMALIZE_MXZ_ALT", config ) == 0 )
681 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000682 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_NORMALIZE_MXZ_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100683 return( 0 );
684 }
685#endif /* MBEDTLS_ECP_NORMALIZE_MXZ_ALT */
686
687#if defined(MBEDTLS_TEST_NULL_ENTROPY)
688 if( strcmp( "MBEDTLS_TEST_NULL_ENTROPY", config ) == 0 )
689 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000690 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_TEST_NULL_ENTROPY ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100691 return( 0 );
692 }
693#endif /* MBEDTLS_TEST_NULL_ENTROPY */
694
695#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
696 if( strcmp( "MBEDTLS_ENTROPY_HARDWARE_ALT", config ) == 0 )
697 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000698 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ENTROPY_HARDWARE_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100699 return( 0 );
700 }
701#endif /* MBEDTLS_ENTROPY_HARDWARE_ALT */
702
703#if defined(MBEDTLS_AES_ROM_TABLES)
704 if( strcmp( "MBEDTLS_AES_ROM_TABLES", config ) == 0 )
705 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000706 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_AES_ROM_TABLES ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100707 return( 0 );
708 }
709#endif /* MBEDTLS_AES_ROM_TABLES */
710
711#if defined(MBEDTLS_AES_FEWER_TABLES)
712 if( strcmp( "MBEDTLS_AES_FEWER_TABLES", config ) == 0 )
713 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000714 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_AES_FEWER_TABLES ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100715 return( 0 );
716 }
717#endif /* MBEDTLS_AES_FEWER_TABLES */
718
719#if defined(MBEDTLS_CAMELLIA_SMALL_MEMORY)
720 if( strcmp( "MBEDTLS_CAMELLIA_SMALL_MEMORY", config ) == 0 )
721 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000722 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CAMELLIA_SMALL_MEMORY ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100723 return( 0 );
724 }
725#endif /* MBEDTLS_CAMELLIA_SMALL_MEMORY */
726
727#if defined(MBEDTLS_CIPHER_MODE_CBC)
728 if( strcmp( "MBEDTLS_CIPHER_MODE_CBC", config ) == 0 )
729 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000730 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_MODE_CBC ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100731 return( 0 );
732 }
733#endif /* MBEDTLS_CIPHER_MODE_CBC */
734
735#if defined(MBEDTLS_CIPHER_MODE_CFB)
736 if( strcmp( "MBEDTLS_CIPHER_MODE_CFB", config ) == 0 )
737 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000738 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_MODE_CFB ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100739 return( 0 );
740 }
741#endif /* MBEDTLS_CIPHER_MODE_CFB */
742
743#if defined(MBEDTLS_CIPHER_MODE_CTR)
744 if( strcmp( "MBEDTLS_CIPHER_MODE_CTR", config ) == 0 )
745 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000746 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_MODE_CTR ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100747 return( 0 );
748 }
749#endif /* MBEDTLS_CIPHER_MODE_CTR */
750
751#if defined(MBEDTLS_CIPHER_MODE_OFB)
752 if( strcmp( "MBEDTLS_CIPHER_MODE_OFB", config ) == 0 )
753 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000754 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_MODE_OFB ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100755 return( 0 );
756 }
757#endif /* MBEDTLS_CIPHER_MODE_OFB */
758
759#if defined(MBEDTLS_CIPHER_MODE_XTS)
760 if( strcmp( "MBEDTLS_CIPHER_MODE_XTS", config ) == 0 )
761 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000762 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_MODE_XTS ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100763 return( 0 );
764 }
765#endif /* MBEDTLS_CIPHER_MODE_XTS */
766
767#if defined(MBEDTLS_CIPHER_NULL_CIPHER)
768 if( strcmp( "MBEDTLS_CIPHER_NULL_CIPHER", config ) == 0 )
769 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000770 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_NULL_CIPHER ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100771 return( 0 );
772 }
773#endif /* MBEDTLS_CIPHER_NULL_CIPHER */
774
775#if defined(MBEDTLS_CIPHER_PADDING_PKCS7)
776 if( strcmp( "MBEDTLS_CIPHER_PADDING_PKCS7", config ) == 0 )
777 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000778 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_PADDING_PKCS7 ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100779 return( 0 );
780 }
781#endif /* MBEDTLS_CIPHER_PADDING_PKCS7 */
782
783#if defined(MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS)
784 if( strcmp( "MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS", config ) == 0 )
785 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000786 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100787 return( 0 );
788 }
789#endif /* MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS */
790
791#if defined(MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN)
792 if( strcmp( "MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN", config ) == 0 )
793 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000794 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100795 return( 0 );
796 }
797#endif /* MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN */
798
799#if defined(MBEDTLS_CIPHER_PADDING_ZEROS)
800 if( strcmp( "MBEDTLS_CIPHER_PADDING_ZEROS", config ) == 0 )
801 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000802 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_PADDING_ZEROS ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100803 return( 0 );
804 }
805#endif /* MBEDTLS_CIPHER_PADDING_ZEROS */
806
807#if defined(MBEDTLS_ENABLE_WEAK_CIPHERSUITES)
808 if( strcmp( "MBEDTLS_ENABLE_WEAK_CIPHERSUITES", config ) == 0 )
809 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000810 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ENABLE_WEAK_CIPHERSUITES ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100811 return( 0 );
812 }
813#endif /* MBEDTLS_ENABLE_WEAK_CIPHERSUITES */
814
815#if defined(MBEDTLS_REMOVE_ARC4_CIPHERSUITES)
816 if( strcmp( "MBEDTLS_REMOVE_ARC4_CIPHERSUITES", config ) == 0 )
817 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000818 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_REMOVE_ARC4_CIPHERSUITES ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100819 return( 0 );
820 }
821#endif /* MBEDTLS_REMOVE_ARC4_CIPHERSUITES */
822
823#if defined(MBEDTLS_ECP_DP_SECP192R1_ENABLED)
824 if( strcmp( "MBEDTLS_ECP_DP_SECP192R1_ENABLED", config ) == 0 )
825 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000826 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP192R1_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100827 return( 0 );
828 }
829#endif /* MBEDTLS_ECP_DP_SECP192R1_ENABLED */
830
831#if defined(MBEDTLS_ECP_DP_SECP224R1_ENABLED)
832 if( strcmp( "MBEDTLS_ECP_DP_SECP224R1_ENABLED", config ) == 0 )
833 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000834 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP224R1_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100835 return( 0 );
836 }
837#endif /* MBEDTLS_ECP_DP_SECP224R1_ENABLED */
838
839#if defined(MBEDTLS_ECP_DP_SECP256R1_ENABLED)
840 if( strcmp( "MBEDTLS_ECP_DP_SECP256R1_ENABLED", config ) == 0 )
841 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000842 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP256R1_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100843 return( 0 );
844 }
845#endif /* MBEDTLS_ECP_DP_SECP256R1_ENABLED */
846
847#if defined(MBEDTLS_ECP_DP_SECP384R1_ENABLED)
848 if( strcmp( "MBEDTLS_ECP_DP_SECP384R1_ENABLED", config ) == 0 )
849 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000850 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP384R1_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100851 return( 0 );
852 }
853#endif /* MBEDTLS_ECP_DP_SECP384R1_ENABLED */
854
855#if defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED)
856 if( strcmp( "MBEDTLS_ECP_DP_SECP521R1_ENABLED", config ) == 0 )
857 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000858 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP521R1_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100859 return( 0 );
860 }
861#endif /* MBEDTLS_ECP_DP_SECP521R1_ENABLED */
862
863#if defined(MBEDTLS_ECP_DP_SECP192K1_ENABLED)
864 if( strcmp( "MBEDTLS_ECP_DP_SECP192K1_ENABLED", config ) == 0 )
865 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000866 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP192K1_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100867 return( 0 );
868 }
869#endif /* MBEDTLS_ECP_DP_SECP192K1_ENABLED */
870
871#if defined(MBEDTLS_ECP_DP_SECP224K1_ENABLED)
872 if( strcmp( "MBEDTLS_ECP_DP_SECP224K1_ENABLED", config ) == 0 )
873 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000874 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP224K1_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100875 return( 0 );
876 }
877#endif /* MBEDTLS_ECP_DP_SECP224K1_ENABLED */
878
879#if defined(MBEDTLS_ECP_DP_SECP256K1_ENABLED)
880 if( strcmp( "MBEDTLS_ECP_DP_SECP256K1_ENABLED", config ) == 0 )
881 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000882 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_SECP256K1_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100883 return( 0 );
884 }
885#endif /* MBEDTLS_ECP_DP_SECP256K1_ENABLED */
886
887#if defined(MBEDTLS_ECP_DP_BP256R1_ENABLED)
888 if( strcmp( "MBEDTLS_ECP_DP_BP256R1_ENABLED", config ) == 0 )
889 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000890 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_BP256R1_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100891 return( 0 );
892 }
893#endif /* MBEDTLS_ECP_DP_BP256R1_ENABLED */
894
895#if defined(MBEDTLS_ECP_DP_BP384R1_ENABLED)
896 if( strcmp( "MBEDTLS_ECP_DP_BP384R1_ENABLED", config ) == 0 )
897 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000898 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_BP384R1_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100899 return( 0 );
900 }
901#endif /* MBEDTLS_ECP_DP_BP384R1_ENABLED */
902
903#if defined(MBEDTLS_ECP_DP_BP512R1_ENABLED)
904 if( strcmp( "MBEDTLS_ECP_DP_BP512R1_ENABLED", config ) == 0 )
905 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000906 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_BP512R1_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100907 return( 0 );
908 }
909#endif /* MBEDTLS_ECP_DP_BP512R1_ENABLED */
910
911#if defined(MBEDTLS_ECP_DP_CURVE25519_ENABLED)
912 if( strcmp( "MBEDTLS_ECP_DP_CURVE25519_ENABLED", config ) == 0 )
913 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000914 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_CURVE25519_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100915 return( 0 );
916 }
917#endif /* MBEDTLS_ECP_DP_CURVE25519_ENABLED */
918
919#if defined(MBEDTLS_ECP_DP_CURVE448_ENABLED)
920 if( strcmp( "MBEDTLS_ECP_DP_CURVE448_ENABLED", config ) == 0 )
921 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000922 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_DP_CURVE448_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100923 return( 0 );
924 }
925#endif /* MBEDTLS_ECP_DP_CURVE448_ENABLED */
926
927#if defined(MBEDTLS_ECP_NIST_OPTIM)
928 if( strcmp( "MBEDTLS_ECP_NIST_OPTIM", config ) == 0 )
929 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000930 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_NIST_OPTIM ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100931 return( 0 );
932 }
933#endif /* MBEDTLS_ECP_NIST_OPTIM */
934
935#if defined(MBEDTLS_ECDSA_DETERMINISTIC)
936 if( strcmp( "MBEDTLS_ECDSA_DETERMINISTIC", config ) == 0 )
937 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000938 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECDSA_DETERMINISTIC ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100939 return( 0 );
940 }
941#endif /* MBEDTLS_ECDSA_DETERMINISTIC */
942
943#if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
944 if( strcmp( "MBEDTLS_KEY_EXCHANGE_PSK_ENABLED", config ) == 0 )
945 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000946 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_PSK_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100947 return( 0 );
948 }
949#endif /* MBEDTLS_KEY_EXCHANGE_PSK_ENABLED */
950
951#if defined(MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED)
952 if( strcmp( "MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED", config ) == 0 )
953 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000954 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100955 return( 0 );
956 }
957#endif /* MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED */
958
959#if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
960 if( strcmp( "MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED", config ) == 0 )
961 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000962 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100963 return( 0 );
964 }
965#endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED */
966
967#if defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED)
968 if( strcmp( "MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED", config ) == 0 )
969 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000970 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100971 return( 0 );
972 }
973#endif /* MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED */
974
975#if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
976 if( strcmp( "MBEDTLS_KEY_EXCHANGE_RSA_ENABLED", config ) == 0 )
977 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000978 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_RSA_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100979 return( 0 );
980 }
981#endif /* MBEDTLS_KEY_EXCHANGE_RSA_ENABLED */
982
983#if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED)
984 if( strcmp( "MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED", config ) == 0 )
985 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000986 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100987 return( 0 );
988 }
989#endif /* MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED */
990
991#if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED)
992 if( strcmp( "MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED", config ) == 0 )
993 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +0000994 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +0100995 return( 0 );
996 }
997#endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED */
998
999#if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED)
1000 if( strcmp( "MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED", config ) == 0 )
1001 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001002 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001003 return( 0 );
1004 }
1005#endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED */
1006
1007#if defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED)
1008 if( strcmp( "MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED", config ) == 0 )
1009 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001010 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001011 return( 0 );
1012 }
1013#endif /* MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED */
1014
1015#if defined(MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED)
1016 if( strcmp( "MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED", config ) == 0 )
1017 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001018 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001019 return( 0 );
1020 }
1021#endif /* MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED */
1022
1023#if defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED)
1024 if( strcmp( "MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED", config ) == 0 )
1025 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001026 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001027 return( 0 );
1028 }
1029#endif /* MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED */
1030
1031#if defined(MBEDTLS_PK_PARSE_EC_EXTENDED)
1032 if( strcmp( "MBEDTLS_PK_PARSE_EC_EXTENDED", config ) == 0 )
1033 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001034 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PK_PARSE_EC_EXTENDED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001035 return( 0 );
1036 }
1037#endif /* MBEDTLS_PK_PARSE_EC_EXTENDED */
1038
1039#if defined(MBEDTLS_ERROR_STRERROR_DUMMY)
1040 if( strcmp( "MBEDTLS_ERROR_STRERROR_DUMMY", config ) == 0 )
1041 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001042 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ERROR_STRERROR_DUMMY ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001043 return( 0 );
1044 }
1045#endif /* MBEDTLS_ERROR_STRERROR_DUMMY */
1046
1047#if defined(MBEDTLS_GENPRIME)
1048 if( strcmp( "MBEDTLS_GENPRIME", config ) == 0 )
1049 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001050 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_GENPRIME ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001051 return( 0 );
1052 }
1053#endif /* MBEDTLS_GENPRIME */
1054
1055#if defined(MBEDTLS_FS_IO)
1056 if( strcmp( "MBEDTLS_FS_IO", config ) == 0 )
1057 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001058 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_FS_IO ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001059 return( 0 );
1060 }
1061#endif /* MBEDTLS_FS_IO */
1062
1063#if defined(MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES)
1064 if( strcmp( "MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES", config ) == 0 )
1065 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001066 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001067 return( 0 );
1068 }
1069#endif /* MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES */
1070
1071#if defined(MBEDTLS_NO_PLATFORM_ENTROPY)
1072 if( strcmp( "MBEDTLS_NO_PLATFORM_ENTROPY", config ) == 0 )
1073 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001074 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_NO_PLATFORM_ENTROPY ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001075 return( 0 );
1076 }
1077#endif /* MBEDTLS_NO_PLATFORM_ENTROPY */
1078
1079#if defined(MBEDTLS_ENTROPY_FORCE_SHA256)
1080 if( strcmp( "MBEDTLS_ENTROPY_FORCE_SHA256", config ) == 0 )
1081 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001082 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ENTROPY_FORCE_SHA256 ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001083 return( 0 );
1084 }
1085#endif /* MBEDTLS_ENTROPY_FORCE_SHA256 */
1086
1087#if defined(MBEDTLS_ENTROPY_NV_SEED)
1088 if( strcmp( "MBEDTLS_ENTROPY_NV_SEED", config ) == 0 )
1089 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001090 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ENTROPY_NV_SEED ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001091 return( 0 );
1092 }
1093#endif /* MBEDTLS_ENTROPY_NV_SEED */
1094
1095#if defined(MBEDTLS_MEMORY_DEBUG)
1096 if( strcmp( "MBEDTLS_MEMORY_DEBUG", config ) == 0 )
1097 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001098 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MEMORY_DEBUG ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001099 return( 0 );
1100 }
1101#endif /* MBEDTLS_MEMORY_DEBUG */
1102
1103#if defined(MBEDTLS_MEMORY_BACKTRACE)
1104 if( strcmp( "MBEDTLS_MEMORY_BACKTRACE", config ) == 0 )
1105 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001106 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MEMORY_BACKTRACE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001107 return( 0 );
1108 }
1109#endif /* MBEDTLS_MEMORY_BACKTRACE */
1110
1111#if defined(MBEDTLS_PK_RSA_ALT_SUPPORT)
1112 if( strcmp( "MBEDTLS_PK_RSA_ALT_SUPPORT", config ) == 0 )
1113 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001114 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PK_RSA_ALT_SUPPORT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001115 return( 0 );
1116 }
1117#endif /* MBEDTLS_PK_RSA_ALT_SUPPORT */
1118
1119#if defined(MBEDTLS_PKCS1_V15)
1120 if( strcmp( "MBEDTLS_PKCS1_V15", config ) == 0 )
1121 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001122 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PKCS1_V15 ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001123 return( 0 );
1124 }
1125#endif /* MBEDTLS_PKCS1_V15 */
1126
1127#if defined(MBEDTLS_PKCS1_V21)
1128 if( strcmp( "MBEDTLS_PKCS1_V21", config ) == 0 )
1129 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001130 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PKCS1_V21 ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001131 return( 0 );
1132 }
1133#endif /* MBEDTLS_PKCS1_V21 */
1134
1135#if defined(MBEDTLS_RSA_NO_CRT)
1136 if( strcmp( "MBEDTLS_RSA_NO_CRT", config ) == 0 )
1137 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001138 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_RSA_NO_CRT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001139 return( 0 );
1140 }
1141#endif /* MBEDTLS_RSA_NO_CRT */
1142
1143#if defined(MBEDTLS_SELF_TEST)
1144 if( strcmp( "MBEDTLS_SELF_TEST", config ) == 0 )
1145 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001146 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SELF_TEST ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001147 return( 0 );
1148 }
1149#endif /* MBEDTLS_SELF_TEST */
1150
1151#if defined(MBEDTLS_SHA256_SMALLER)
1152 if( strcmp( "MBEDTLS_SHA256_SMALLER", config ) == 0 )
1153 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001154 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SHA256_SMALLER ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001155 return( 0 );
1156 }
1157#endif /* MBEDTLS_SHA256_SMALLER */
1158
1159#if defined(MBEDTLS_SSL_ALL_ALERT_MESSAGES)
1160 if( strcmp( "MBEDTLS_SSL_ALL_ALERT_MESSAGES", config ) == 0 )
1161 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001162 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_ALL_ALERT_MESSAGES ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001163 return( 0 );
1164 }
1165#endif /* MBEDTLS_SSL_ALL_ALERT_MESSAGES */
1166
1167#if defined(MBEDTLS_SSL_ASYNC_PRIVATE)
1168 if( strcmp( "MBEDTLS_SSL_ASYNC_PRIVATE", config ) == 0 )
1169 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001170 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_ASYNC_PRIVATE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001171 return( 0 );
1172 }
1173#endif /* MBEDTLS_SSL_ASYNC_PRIVATE */
1174
1175#if defined(MBEDTLS_SSL_DEBUG_ALL)
1176 if( strcmp( "MBEDTLS_SSL_DEBUG_ALL", config ) == 0 )
1177 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001178 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DEBUG_ALL ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001179 return( 0 );
1180 }
1181#endif /* MBEDTLS_SSL_DEBUG_ALL */
1182
1183#if defined(MBEDTLS_SSL_ENCRYPT_THEN_MAC)
1184 if( strcmp( "MBEDTLS_SSL_ENCRYPT_THEN_MAC", config ) == 0 )
1185 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001186 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_ENCRYPT_THEN_MAC ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001187 return( 0 );
1188 }
1189#endif /* MBEDTLS_SSL_ENCRYPT_THEN_MAC */
1190
1191#if defined(MBEDTLS_SSL_EXTENDED_MASTER_SECRET)
1192 if( strcmp( "MBEDTLS_SSL_EXTENDED_MASTER_SECRET", config ) == 0 )
1193 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001194 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_EXTENDED_MASTER_SECRET ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001195 return( 0 );
1196 }
1197#endif /* MBEDTLS_SSL_EXTENDED_MASTER_SECRET */
1198
1199#if defined(MBEDTLS_SSL_FALLBACK_SCSV)
1200 if( strcmp( "MBEDTLS_SSL_FALLBACK_SCSV", config ) == 0 )
1201 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001202 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_FALLBACK_SCSV ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001203 return( 0 );
1204 }
1205#endif /* MBEDTLS_SSL_FALLBACK_SCSV */
1206
1207#if defined(MBEDTLS_SSL_HW_RECORD_ACCEL)
1208 if( strcmp( "MBEDTLS_SSL_HW_RECORD_ACCEL", config ) == 0 )
1209 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001210 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_HW_RECORD_ACCEL ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001211 return( 0 );
1212 }
1213#endif /* MBEDTLS_SSL_HW_RECORD_ACCEL */
1214
1215#if defined(MBEDTLS_SSL_CBC_RECORD_SPLITTING)
1216 if( strcmp( "MBEDTLS_SSL_CBC_RECORD_SPLITTING", config ) == 0 )
1217 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001218 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CBC_RECORD_SPLITTING ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001219 return( 0 );
1220 }
1221#endif /* MBEDTLS_SSL_CBC_RECORD_SPLITTING */
1222
1223#if defined(MBEDTLS_SSL_RENEGOTIATION)
1224 if( strcmp( "MBEDTLS_SSL_RENEGOTIATION", config ) == 0 )
1225 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001226 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_RENEGOTIATION ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001227 return( 0 );
1228 }
1229#endif /* MBEDTLS_SSL_RENEGOTIATION */
1230
1231#if defined(MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO)
1232 if( strcmp( "MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO", config ) == 0 )
1233 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001234 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001235 return( 0 );
1236 }
1237#endif /* MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO */
1238
1239#if defined(MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE)
1240 if( strcmp( "MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE", config ) == 0 )
1241 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001242 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001243 return( 0 );
1244 }
1245#endif /* MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE */
1246
1247#if defined(MBEDTLS_SSL_MAX_FRAGMENT_LENGTH)
1248 if( strcmp( "MBEDTLS_SSL_MAX_FRAGMENT_LENGTH", config ) == 0 )
1249 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001250 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_MAX_FRAGMENT_LENGTH ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001251 return( 0 );
1252 }
1253#endif /* MBEDTLS_SSL_MAX_FRAGMENT_LENGTH */
1254
1255#if defined(MBEDTLS_SSL_PROTO_SSL3)
1256 if( strcmp( "MBEDTLS_SSL_PROTO_SSL3", config ) == 0 )
1257 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001258 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_PROTO_SSL3 ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001259 return( 0 );
1260 }
1261#endif /* MBEDTLS_SSL_PROTO_SSL3 */
1262
1263#if defined(MBEDTLS_SSL_PROTO_TLS1)
1264 if( strcmp( "MBEDTLS_SSL_PROTO_TLS1", config ) == 0 )
1265 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001266 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_PROTO_TLS1 ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001267 return( 0 );
1268 }
1269#endif /* MBEDTLS_SSL_PROTO_TLS1 */
1270
1271#if defined(MBEDTLS_SSL_PROTO_TLS1_1)
1272 if( strcmp( "MBEDTLS_SSL_PROTO_TLS1_1", config ) == 0 )
1273 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001274 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_PROTO_TLS1_1 ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001275 return( 0 );
1276 }
1277#endif /* MBEDTLS_SSL_PROTO_TLS1_1 */
1278
1279#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
1280 if( strcmp( "MBEDTLS_SSL_PROTO_TLS1_2", config ) == 0 )
1281 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001282 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_PROTO_TLS1_2 ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001283 return( 0 );
1284 }
1285#endif /* MBEDTLS_SSL_PROTO_TLS1_2 */
1286
1287#if defined(MBEDTLS_SSL_PROTO_DTLS)
1288 if( strcmp( "MBEDTLS_SSL_PROTO_DTLS", config ) == 0 )
1289 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001290 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_PROTO_DTLS ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001291 return( 0 );
1292 }
1293#endif /* MBEDTLS_SSL_PROTO_DTLS */
1294
1295#if defined(MBEDTLS_SSL_ALPN)
1296 if( strcmp( "MBEDTLS_SSL_ALPN", config ) == 0 )
1297 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001298 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_ALPN ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001299 return( 0 );
1300 }
1301#endif /* MBEDTLS_SSL_ALPN */
1302
1303#if defined(MBEDTLS_SSL_DTLS_ANTI_REPLAY)
1304 if( strcmp( "MBEDTLS_SSL_DTLS_ANTI_REPLAY", config ) == 0 )
1305 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001306 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DTLS_ANTI_REPLAY ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001307 return( 0 );
1308 }
1309#endif /* MBEDTLS_SSL_DTLS_ANTI_REPLAY */
1310
1311#if defined(MBEDTLS_SSL_DTLS_HELLO_VERIFY)
1312 if( strcmp( "MBEDTLS_SSL_DTLS_HELLO_VERIFY", config ) == 0 )
1313 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001314 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DTLS_HELLO_VERIFY ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001315 return( 0 );
1316 }
1317#endif /* MBEDTLS_SSL_DTLS_HELLO_VERIFY */
1318
1319#if defined(MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE)
1320 if( strcmp( "MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE", config ) == 0 )
1321 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001322 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001323 return( 0 );
1324 }
1325#endif /* MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE */
1326
1327#if defined(MBEDTLS_SSL_DTLS_BADMAC_LIMIT)
1328 if( strcmp( "MBEDTLS_SSL_DTLS_BADMAC_LIMIT", config ) == 0 )
1329 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001330 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DTLS_BADMAC_LIMIT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001331 return( 0 );
1332 }
1333#endif /* MBEDTLS_SSL_DTLS_BADMAC_LIMIT */
1334
1335#if defined(MBEDTLS_SSL_SESSION_TICKETS)
1336 if( strcmp( "MBEDTLS_SSL_SESSION_TICKETS", config ) == 0 )
1337 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001338 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_SESSION_TICKETS ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001339 return( 0 );
1340 }
1341#endif /* MBEDTLS_SSL_SESSION_TICKETS */
1342
1343#if defined(MBEDTLS_SSL_EXPORT_KEYS)
1344 if( strcmp( "MBEDTLS_SSL_EXPORT_KEYS", config ) == 0 )
1345 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001346 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_EXPORT_KEYS ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001347 return( 0 );
1348 }
1349#endif /* MBEDTLS_SSL_EXPORT_KEYS */
1350
1351#if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION)
1352 if( strcmp( "MBEDTLS_SSL_SERVER_NAME_INDICATION", config ) == 0 )
1353 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001354 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_SERVER_NAME_INDICATION ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001355 return( 0 );
1356 }
1357#endif /* MBEDTLS_SSL_SERVER_NAME_INDICATION */
1358
1359#if defined(MBEDTLS_SSL_TRUNCATED_HMAC)
1360 if( strcmp( "MBEDTLS_SSL_TRUNCATED_HMAC", config ) == 0 )
1361 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001362 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_TRUNCATED_HMAC ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001363 return( 0 );
1364 }
1365#endif /* MBEDTLS_SSL_TRUNCATED_HMAC */
1366
1367#if defined(MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT)
1368 if( strcmp( "MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT", config ) == 0 )
1369 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001370 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001371 return( 0 );
1372 }
1373#endif /* MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT */
1374
1375#if defined(MBEDTLS_THREADING_ALT)
1376 if( strcmp( "MBEDTLS_THREADING_ALT", config ) == 0 )
1377 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001378 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_THREADING_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001379 return( 0 );
1380 }
1381#endif /* MBEDTLS_THREADING_ALT */
1382
1383#if defined(MBEDTLS_THREADING_PTHREAD)
1384 if( strcmp( "MBEDTLS_THREADING_PTHREAD", config ) == 0 )
1385 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001386 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_THREADING_PTHREAD ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001387 return( 0 );
1388 }
1389#endif /* MBEDTLS_THREADING_PTHREAD */
1390
1391#if defined(MBEDTLS_VERSION_FEATURES)
1392 if( strcmp( "MBEDTLS_VERSION_FEATURES", config ) == 0 )
1393 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001394 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_VERSION_FEATURES ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001395 return( 0 );
1396 }
1397#endif /* MBEDTLS_VERSION_FEATURES */
1398
1399#if defined(MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3)
1400 if( strcmp( "MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3", config ) == 0 )
1401 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001402 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3 ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001403 return( 0 );
1404 }
1405#endif /* MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3 */
1406
1407#if defined(MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION)
1408 if( strcmp( "MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION", config ) == 0 )
1409 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001410 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001411 return( 0 );
1412 }
1413#endif /* MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION */
1414
1415#if defined(MBEDTLS_X509_CHECK_KEY_USAGE)
1416 if( strcmp( "MBEDTLS_X509_CHECK_KEY_USAGE", config ) == 0 )
1417 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001418 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CHECK_KEY_USAGE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001419 return( 0 );
1420 }
1421#endif /* MBEDTLS_X509_CHECK_KEY_USAGE */
1422
1423#if defined(MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE)
1424 if( strcmp( "MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE", config ) == 0 )
1425 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001426 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001427 return( 0 );
1428 }
1429#endif /* MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE */
1430
1431#if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT)
1432 if( strcmp( "MBEDTLS_X509_RSASSA_PSS_SUPPORT", config ) == 0 )
1433 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001434 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_X509_RSASSA_PSS_SUPPORT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001435 return( 0 );
1436 }
1437#endif /* MBEDTLS_X509_RSASSA_PSS_SUPPORT */
1438
1439#if defined(MBEDTLS_ZLIB_SUPPORT)
1440 if( strcmp( "MBEDTLS_ZLIB_SUPPORT", config ) == 0 )
1441 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001442 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ZLIB_SUPPORT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001443 return( 0 );
1444 }
1445#endif /* MBEDTLS_ZLIB_SUPPORT */
1446
1447#if defined(MBEDTLS_AESNI_C)
1448 if( strcmp( "MBEDTLS_AESNI_C", config ) == 0 )
1449 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001450 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_AESNI_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001451 return( 0 );
1452 }
1453#endif /* MBEDTLS_AESNI_C */
1454
1455#if defined(MBEDTLS_AES_C)
1456 if( strcmp( "MBEDTLS_AES_C", config ) == 0 )
1457 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001458 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_AES_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001459 return( 0 );
1460 }
1461#endif /* MBEDTLS_AES_C */
1462
1463#if defined(MBEDTLS_ARC4_C)
1464 if( strcmp( "MBEDTLS_ARC4_C", config ) == 0 )
1465 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001466 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ARC4_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001467 return( 0 );
1468 }
1469#endif /* MBEDTLS_ARC4_C */
1470
1471#if defined(MBEDTLS_ASN1_PARSE_C)
1472 if( strcmp( "MBEDTLS_ASN1_PARSE_C", config ) == 0 )
1473 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001474 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ASN1_PARSE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001475 return( 0 );
1476 }
1477#endif /* MBEDTLS_ASN1_PARSE_C */
1478
1479#if defined(MBEDTLS_ASN1_WRITE_C)
1480 if( strcmp( "MBEDTLS_ASN1_WRITE_C", config ) == 0 )
1481 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001482 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ASN1_WRITE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001483 return( 0 );
1484 }
1485#endif /* MBEDTLS_ASN1_WRITE_C */
1486
1487#if defined(MBEDTLS_BASE64_C)
1488 if( strcmp( "MBEDTLS_BASE64_C", config ) == 0 )
1489 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001490 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_BASE64_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001491 return( 0 );
1492 }
1493#endif /* MBEDTLS_BASE64_C */
1494
1495#if defined(MBEDTLS_BIGNUM_C)
1496 if( strcmp( "MBEDTLS_BIGNUM_C", config ) == 0 )
1497 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001498 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_BIGNUM_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001499 return( 0 );
1500 }
1501#endif /* MBEDTLS_BIGNUM_C */
1502
1503#if defined(MBEDTLS_BLOWFISH_C)
1504 if( strcmp( "MBEDTLS_BLOWFISH_C", config ) == 0 )
1505 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001506 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_BLOWFISH_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001507 return( 0 );
1508 }
1509#endif /* MBEDTLS_BLOWFISH_C */
1510
1511#if defined(MBEDTLS_CAMELLIA_C)
1512 if( strcmp( "MBEDTLS_CAMELLIA_C", config ) == 0 )
1513 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001514 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CAMELLIA_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001515 return( 0 );
1516 }
1517#endif /* MBEDTLS_CAMELLIA_C */
1518
1519#if defined(MBEDTLS_ARIA_C)
1520 if( strcmp( "MBEDTLS_ARIA_C", config ) == 0 )
1521 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001522 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ARIA_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001523 return( 0 );
1524 }
1525#endif /* MBEDTLS_ARIA_C */
1526
1527#if defined(MBEDTLS_CCM_C)
1528 if( strcmp( "MBEDTLS_CCM_C", config ) == 0 )
1529 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001530 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CCM_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001531 return( 0 );
1532 }
1533#endif /* MBEDTLS_CCM_C */
1534
1535#if defined(MBEDTLS_CERTS_C)
1536 if( strcmp( "MBEDTLS_CERTS_C", config ) == 0 )
1537 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001538 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CERTS_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001539 return( 0 );
1540 }
1541#endif /* MBEDTLS_CERTS_C */
1542
1543#if defined(MBEDTLS_CHACHA20_C)
1544 if( strcmp( "MBEDTLS_CHACHA20_C", config ) == 0 )
1545 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001546 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CHACHA20_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001547 return( 0 );
1548 }
1549#endif /* MBEDTLS_CHACHA20_C */
1550
1551#if defined(MBEDTLS_CHACHAPOLY_C)
1552 if( strcmp( "MBEDTLS_CHACHAPOLY_C", config ) == 0 )
1553 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001554 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CHACHAPOLY_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001555 return( 0 );
1556 }
1557#endif /* MBEDTLS_CHACHAPOLY_C */
1558
1559#if defined(MBEDTLS_CIPHER_C)
1560 if( strcmp( "MBEDTLS_CIPHER_C", config ) == 0 )
1561 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001562 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CIPHER_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001563 return( 0 );
1564 }
1565#endif /* MBEDTLS_CIPHER_C */
1566
1567#if defined(MBEDTLS_CMAC_C)
1568 if( strcmp( "MBEDTLS_CMAC_C", config ) == 0 )
1569 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001570 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CMAC_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001571 return( 0 );
1572 }
1573#endif /* MBEDTLS_CMAC_C */
1574
1575#if defined(MBEDTLS_CTR_DRBG_C)
1576 if( strcmp( "MBEDTLS_CTR_DRBG_C", config ) == 0 )
1577 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001578 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CTR_DRBG_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001579 return( 0 );
1580 }
1581#endif /* MBEDTLS_CTR_DRBG_C */
1582
1583#if defined(MBEDTLS_DEBUG_C)
1584 if( strcmp( "MBEDTLS_DEBUG_C", config ) == 0 )
1585 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001586 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_DEBUG_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001587 return( 0 );
1588 }
1589#endif /* MBEDTLS_DEBUG_C */
1590
1591#if defined(MBEDTLS_DES_C)
1592 if( strcmp( "MBEDTLS_DES_C", config ) == 0 )
1593 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001594 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_DES_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001595 return( 0 );
1596 }
1597#endif /* MBEDTLS_DES_C */
1598
1599#if defined(MBEDTLS_DHM_C)
1600 if( strcmp( "MBEDTLS_DHM_C", config ) == 0 )
1601 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001602 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_DHM_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001603 return( 0 );
1604 }
1605#endif /* MBEDTLS_DHM_C */
1606
1607#if defined(MBEDTLS_ECDH_C)
1608 if( strcmp( "MBEDTLS_ECDH_C", config ) == 0 )
1609 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001610 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECDH_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001611 return( 0 );
1612 }
1613#endif /* MBEDTLS_ECDH_C */
1614
1615#if defined(MBEDTLS_ECDSA_C)
1616 if( strcmp( "MBEDTLS_ECDSA_C", config ) == 0 )
1617 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001618 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECDSA_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001619 return( 0 );
1620 }
1621#endif /* MBEDTLS_ECDSA_C */
1622
1623#if defined(MBEDTLS_ECJPAKE_C)
1624 if( strcmp( "MBEDTLS_ECJPAKE_C", config ) == 0 )
1625 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001626 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECJPAKE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001627 return( 0 );
1628 }
1629#endif /* MBEDTLS_ECJPAKE_C */
1630
1631#if defined(MBEDTLS_ECP_C)
1632 if( strcmp( "MBEDTLS_ECP_C", config ) == 0 )
1633 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001634 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001635 return( 0 );
1636 }
1637#endif /* MBEDTLS_ECP_C */
1638
1639#if defined(MBEDTLS_ENTROPY_C)
1640 if( strcmp( "MBEDTLS_ENTROPY_C", config ) == 0 )
1641 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001642 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ENTROPY_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001643 return( 0 );
1644 }
1645#endif /* MBEDTLS_ENTROPY_C */
1646
1647#if defined(MBEDTLS_ERROR_C)
1648 if( strcmp( "MBEDTLS_ERROR_C", config ) == 0 )
1649 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001650 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ERROR_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001651 return( 0 );
1652 }
1653#endif /* MBEDTLS_ERROR_C */
1654
1655#if defined(MBEDTLS_GCM_C)
1656 if( strcmp( "MBEDTLS_GCM_C", config ) == 0 )
1657 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001658 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_GCM_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001659 return( 0 );
1660 }
1661#endif /* MBEDTLS_GCM_C */
1662
1663#if defined(MBEDTLS_HAVEGE_C)
1664 if( strcmp( "MBEDTLS_HAVEGE_C", config ) == 0 )
1665 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001666 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_HAVEGE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001667 return( 0 );
1668 }
1669#endif /* MBEDTLS_HAVEGE_C */
1670
1671#if defined(MBEDTLS_HKDF_C)
1672 if( strcmp( "MBEDTLS_HKDF_C", config ) == 0 )
1673 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001674 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_HKDF_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001675 return( 0 );
1676 }
1677#endif /* MBEDTLS_HKDF_C */
1678
1679#if defined(MBEDTLS_HMAC_DRBG_C)
1680 if( strcmp( "MBEDTLS_HMAC_DRBG_C", config ) == 0 )
1681 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001682 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_HMAC_DRBG_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001683 return( 0 );
1684 }
1685#endif /* MBEDTLS_HMAC_DRBG_C */
1686
1687#if defined(MBEDTLS_NIST_KW_C)
1688 if( strcmp( "MBEDTLS_NIST_KW_C", config ) == 0 )
1689 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001690 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_NIST_KW_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001691 return( 0 );
1692 }
1693#endif /* MBEDTLS_NIST_KW_C */
1694
1695#if defined(MBEDTLS_MD_C)
1696 if( strcmp( "MBEDTLS_MD_C", config ) == 0 )
1697 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001698 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MD_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001699 return( 0 );
1700 }
1701#endif /* MBEDTLS_MD_C */
1702
1703#if defined(MBEDTLS_MD2_C)
1704 if( strcmp( "MBEDTLS_MD2_C", config ) == 0 )
1705 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001706 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MD2_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001707 return( 0 );
1708 }
1709#endif /* MBEDTLS_MD2_C */
1710
1711#if defined(MBEDTLS_MD4_C)
1712 if( strcmp( "MBEDTLS_MD4_C", config ) == 0 )
1713 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001714 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MD4_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001715 return( 0 );
1716 }
1717#endif /* MBEDTLS_MD4_C */
1718
1719#if defined(MBEDTLS_MD5_C)
1720 if( strcmp( "MBEDTLS_MD5_C", config ) == 0 )
1721 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001722 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MD5_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001723 return( 0 );
1724 }
1725#endif /* MBEDTLS_MD5_C */
1726
1727#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
1728 if( strcmp( "MBEDTLS_MEMORY_BUFFER_ALLOC_C", config ) == 0 )
1729 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001730 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MEMORY_BUFFER_ALLOC_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001731 return( 0 );
1732 }
1733#endif /* MBEDTLS_MEMORY_BUFFER_ALLOC_C */
1734
1735#if defined(MBEDTLS_NET_C)
1736 if( strcmp( "MBEDTLS_NET_C", config ) == 0 )
1737 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001738 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_NET_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001739 return( 0 );
1740 }
1741#endif /* MBEDTLS_NET_C */
1742
1743#if defined(MBEDTLS_OID_C)
1744 if( strcmp( "MBEDTLS_OID_C", config ) == 0 )
1745 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001746 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_OID_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001747 return( 0 );
1748 }
1749#endif /* MBEDTLS_OID_C */
1750
1751#if defined(MBEDTLS_PADLOCK_C)
1752 if( strcmp( "MBEDTLS_PADLOCK_C", config ) == 0 )
1753 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001754 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PADLOCK_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001755 return( 0 );
1756 }
1757#endif /* MBEDTLS_PADLOCK_C */
1758
1759#if defined(MBEDTLS_PEM_PARSE_C)
1760 if( strcmp( "MBEDTLS_PEM_PARSE_C", config ) == 0 )
1761 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001762 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PEM_PARSE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001763 return( 0 );
1764 }
1765#endif /* MBEDTLS_PEM_PARSE_C */
1766
1767#if defined(MBEDTLS_PEM_WRITE_C)
1768 if( strcmp( "MBEDTLS_PEM_WRITE_C", config ) == 0 )
1769 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001770 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PEM_WRITE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001771 return( 0 );
1772 }
1773#endif /* MBEDTLS_PEM_WRITE_C */
1774
1775#if defined(MBEDTLS_PK_C)
1776 if( strcmp( "MBEDTLS_PK_C", config ) == 0 )
1777 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001778 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PK_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001779 return( 0 );
1780 }
1781#endif /* MBEDTLS_PK_C */
1782
1783#if defined(MBEDTLS_PK_PARSE_C)
1784 if( strcmp( "MBEDTLS_PK_PARSE_C", config ) == 0 )
1785 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001786 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PK_PARSE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001787 return( 0 );
1788 }
1789#endif /* MBEDTLS_PK_PARSE_C */
1790
1791#if defined(MBEDTLS_PK_WRITE_C)
1792 if( strcmp( "MBEDTLS_PK_WRITE_C", config ) == 0 )
1793 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001794 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PK_WRITE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001795 return( 0 );
1796 }
1797#endif /* MBEDTLS_PK_WRITE_C */
1798
1799#if defined(MBEDTLS_PKCS5_C)
1800 if( strcmp( "MBEDTLS_PKCS5_C", config ) == 0 )
1801 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001802 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PKCS5_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001803 return( 0 );
1804 }
1805#endif /* MBEDTLS_PKCS5_C */
1806
1807#if defined(MBEDTLS_PKCS11_C)
1808 if( strcmp( "MBEDTLS_PKCS11_C", config ) == 0 )
1809 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001810 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PKCS11_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001811 return( 0 );
1812 }
1813#endif /* MBEDTLS_PKCS11_C */
1814
1815#if defined(MBEDTLS_PKCS12_C)
1816 if( strcmp( "MBEDTLS_PKCS12_C", config ) == 0 )
1817 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001818 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PKCS12_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001819 return( 0 );
1820 }
1821#endif /* MBEDTLS_PKCS12_C */
1822
1823#if defined(MBEDTLS_PLATFORM_C)
1824 if( strcmp( "MBEDTLS_PLATFORM_C", config ) == 0 )
1825 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001826 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001827 return( 0 );
1828 }
1829#endif /* MBEDTLS_PLATFORM_C */
1830
1831#if defined(MBEDTLS_POLY1305_C)
1832 if( strcmp( "MBEDTLS_POLY1305_C", config ) == 0 )
1833 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001834 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_POLY1305_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001835 return( 0 );
1836 }
1837#endif /* MBEDTLS_POLY1305_C */
1838
1839#if defined(MBEDTLS_RIPEMD160_C)
1840 if( strcmp( "MBEDTLS_RIPEMD160_C", config ) == 0 )
1841 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001842 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_RIPEMD160_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001843 return( 0 );
1844 }
1845#endif /* MBEDTLS_RIPEMD160_C */
1846
1847#if defined(MBEDTLS_RSA_C)
1848 if( strcmp( "MBEDTLS_RSA_C", config ) == 0 )
1849 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001850 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_RSA_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001851 return( 0 );
1852 }
1853#endif /* MBEDTLS_RSA_C */
1854
1855#if defined(MBEDTLS_SHA1_C)
1856 if( strcmp( "MBEDTLS_SHA1_C", config ) == 0 )
1857 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001858 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SHA1_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001859 return( 0 );
1860 }
1861#endif /* MBEDTLS_SHA1_C */
1862
1863#if defined(MBEDTLS_SHA256_C)
1864 if( strcmp( "MBEDTLS_SHA256_C", config ) == 0 )
1865 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001866 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SHA256_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001867 return( 0 );
1868 }
1869#endif /* MBEDTLS_SHA256_C */
1870
1871#if defined(MBEDTLS_SHA512_C)
1872 if( strcmp( "MBEDTLS_SHA512_C", config ) == 0 )
1873 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001874 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SHA512_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001875 return( 0 );
1876 }
1877#endif /* MBEDTLS_SHA512_C */
1878
1879#if defined(MBEDTLS_SSL_CACHE_C)
1880 if( strcmp( "MBEDTLS_SSL_CACHE_C", config ) == 0 )
1881 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001882 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CACHE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001883 return( 0 );
1884 }
1885#endif /* MBEDTLS_SSL_CACHE_C */
1886
1887#if defined(MBEDTLS_SSL_COOKIE_C)
1888 if( strcmp( "MBEDTLS_SSL_COOKIE_C", config ) == 0 )
1889 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001890 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_COOKIE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001891 return( 0 );
1892 }
1893#endif /* MBEDTLS_SSL_COOKIE_C */
1894
1895#if defined(MBEDTLS_SSL_TICKET_C)
1896 if( strcmp( "MBEDTLS_SSL_TICKET_C", config ) == 0 )
1897 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001898 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_TICKET_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001899 return( 0 );
1900 }
1901#endif /* MBEDTLS_SSL_TICKET_C */
1902
1903#if defined(MBEDTLS_SSL_CLI_C)
1904 if( strcmp( "MBEDTLS_SSL_CLI_C", config ) == 0 )
1905 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001906 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CLI_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001907 return( 0 );
1908 }
1909#endif /* MBEDTLS_SSL_CLI_C */
1910
1911#if defined(MBEDTLS_SSL_SRV_C)
1912 if( strcmp( "MBEDTLS_SSL_SRV_C", config ) == 0 )
1913 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001914 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_SRV_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001915 return( 0 );
1916 }
1917#endif /* MBEDTLS_SSL_SRV_C */
1918
1919#if defined(MBEDTLS_SSL_TLS_C)
1920 if( strcmp( "MBEDTLS_SSL_TLS_C", config ) == 0 )
1921 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001922 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_TLS_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001923 return( 0 );
1924 }
1925#endif /* MBEDTLS_SSL_TLS_C */
1926
1927#if defined(MBEDTLS_THREADING_C)
1928 if( strcmp( "MBEDTLS_THREADING_C", config ) == 0 )
1929 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001930 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_THREADING_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001931 return( 0 );
1932 }
1933#endif /* MBEDTLS_THREADING_C */
1934
1935#if defined(MBEDTLS_TIMING_C)
1936 if( strcmp( "MBEDTLS_TIMING_C", config ) == 0 )
1937 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001938 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_TIMING_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001939 return( 0 );
1940 }
1941#endif /* MBEDTLS_TIMING_C */
1942
1943#if defined(MBEDTLS_VERSION_C)
1944 if( strcmp( "MBEDTLS_VERSION_C", config ) == 0 )
1945 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001946 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_VERSION_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001947 return( 0 );
1948 }
1949#endif /* MBEDTLS_VERSION_C */
1950
1951#if defined(MBEDTLS_X509_USE_C)
1952 if( strcmp( "MBEDTLS_X509_USE_C", config ) == 0 )
1953 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001954 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_X509_USE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001955 return( 0 );
1956 }
1957#endif /* MBEDTLS_X509_USE_C */
1958
1959#if defined(MBEDTLS_X509_CRT_PARSE_C)
1960 if( strcmp( "MBEDTLS_X509_CRT_PARSE_C", config ) == 0 )
1961 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001962 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CRT_PARSE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001963 return( 0 );
1964 }
1965#endif /* MBEDTLS_X509_CRT_PARSE_C */
1966
1967#if defined(MBEDTLS_X509_CRL_PARSE_C)
1968 if( strcmp( "MBEDTLS_X509_CRL_PARSE_C", config ) == 0 )
1969 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001970 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CRL_PARSE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001971 return( 0 );
1972 }
1973#endif /* MBEDTLS_X509_CRL_PARSE_C */
1974
1975#if defined(MBEDTLS_X509_CSR_PARSE_C)
1976 if( strcmp( "MBEDTLS_X509_CSR_PARSE_C", config ) == 0 )
1977 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001978 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CSR_PARSE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001979 return( 0 );
1980 }
1981#endif /* MBEDTLS_X509_CSR_PARSE_C */
1982
1983#if defined(MBEDTLS_X509_CREATE_C)
1984 if( strcmp( "MBEDTLS_X509_CREATE_C", config ) == 0 )
1985 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001986 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CREATE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001987 return( 0 );
1988 }
1989#endif /* MBEDTLS_X509_CREATE_C */
1990
1991#if defined(MBEDTLS_X509_CRT_WRITE_C)
1992 if( strcmp( "MBEDTLS_X509_CRT_WRITE_C", config ) == 0 )
1993 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00001994 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CRT_WRITE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01001995 return( 0 );
1996 }
1997#endif /* MBEDTLS_X509_CRT_WRITE_C */
1998
1999#if defined(MBEDTLS_X509_CSR_WRITE_C)
2000 if( strcmp( "MBEDTLS_X509_CSR_WRITE_C", config ) == 0 )
2001 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002002 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_X509_CSR_WRITE_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002003 return( 0 );
2004 }
2005#endif /* MBEDTLS_X509_CSR_WRITE_C */
2006
2007#if defined(MBEDTLS_XTEA_C)
2008 if( strcmp( "MBEDTLS_XTEA_C", config ) == 0 )
2009 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002010 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_XTEA_C ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002011 return( 0 );
2012 }
2013#endif /* MBEDTLS_XTEA_C */
2014
2015#if defined(MBEDTLS_MPI_WINDOW_SIZE)
2016 if( strcmp( "MBEDTLS_MPI_WINDOW_SIZE", config ) == 0 )
2017 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002018 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MPI_WINDOW_SIZE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002019 return( 0 );
2020 }
2021#endif /* MBEDTLS_MPI_WINDOW_SIZE */
2022
2023#if defined(MBEDTLS_MPI_MAX_SIZE)
2024 if( strcmp( "MBEDTLS_MPI_MAX_SIZE", config ) == 0 )
2025 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002026 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MPI_MAX_SIZE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002027 return( 0 );
2028 }
2029#endif /* MBEDTLS_MPI_MAX_SIZE */
2030
2031#if defined(MBEDTLS_CTR_DRBG_ENTROPY_LEN)
2032 if( strcmp( "MBEDTLS_CTR_DRBG_ENTROPY_LEN", config ) == 0 )
2033 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002034 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CTR_DRBG_ENTROPY_LEN ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002035 return( 0 );
2036 }
2037#endif /* MBEDTLS_CTR_DRBG_ENTROPY_LEN */
2038
2039#if defined(MBEDTLS_CTR_DRBG_RESEED_INTERVAL)
2040 if( strcmp( "MBEDTLS_CTR_DRBG_RESEED_INTERVAL", config ) == 0 )
2041 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002042 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CTR_DRBG_RESEED_INTERVAL ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002043 return( 0 );
2044 }
2045#endif /* MBEDTLS_CTR_DRBG_RESEED_INTERVAL */
2046
2047#if defined(MBEDTLS_CTR_DRBG_MAX_INPUT)
2048 if( strcmp( "MBEDTLS_CTR_DRBG_MAX_INPUT", config ) == 0 )
2049 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002050 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CTR_DRBG_MAX_INPUT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002051 return( 0 );
2052 }
2053#endif /* MBEDTLS_CTR_DRBG_MAX_INPUT */
2054
2055#if defined(MBEDTLS_CTR_DRBG_MAX_REQUEST)
2056 if( strcmp( "MBEDTLS_CTR_DRBG_MAX_REQUEST", config ) == 0 )
2057 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002058 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CTR_DRBG_MAX_REQUEST ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002059 return( 0 );
2060 }
2061#endif /* MBEDTLS_CTR_DRBG_MAX_REQUEST */
2062
2063#if defined(MBEDTLS_CTR_DRBG_MAX_SEED_INPUT)
2064 if( strcmp( "MBEDTLS_CTR_DRBG_MAX_SEED_INPUT", config ) == 0 )
2065 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002066 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_CTR_DRBG_MAX_SEED_INPUT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002067 return( 0 );
2068 }
2069#endif /* MBEDTLS_CTR_DRBG_MAX_SEED_INPUT */
2070
2071#if defined(MBEDTLS_HMAC_DRBG_RESEED_INTERVAL)
2072 if( strcmp( "MBEDTLS_HMAC_DRBG_RESEED_INTERVAL", config ) == 0 )
2073 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002074 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_HMAC_DRBG_RESEED_INTERVAL ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002075 return( 0 );
2076 }
2077#endif /* MBEDTLS_HMAC_DRBG_RESEED_INTERVAL */
2078
2079#if defined(MBEDTLS_HMAC_DRBG_MAX_INPUT)
2080 if( strcmp( "MBEDTLS_HMAC_DRBG_MAX_INPUT", config ) == 0 )
2081 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002082 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_HMAC_DRBG_MAX_INPUT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002083 return( 0 );
2084 }
2085#endif /* MBEDTLS_HMAC_DRBG_MAX_INPUT */
2086
2087#if defined(MBEDTLS_HMAC_DRBG_MAX_REQUEST)
2088 if( strcmp( "MBEDTLS_HMAC_DRBG_MAX_REQUEST", config ) == 0 )
2089 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002090 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_HMAC_DRBG_MAX_REQUEST ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002091 return( 0 );
2092 }
2093#endif /* MBEDTLS_HMAC_DRBG_MAX_REQUEST */
2094
2095#if defined(MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT)
2096 if( strcmp( "MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT", config ) == 0 )
2097 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002098 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002099 return( 0 );
2100 }
2101#endif /* MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT */
2102
2103#if defined(MBEDTLS_ECP_MAX_BITS)
2104 if( strcmp( "MBEDTLS_ECP_MAX_BITS", config ) == 0 )
2105 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002106 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_MAX_BITS ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002107 return( 0 );
2108 }
2109#endif /* MBEDTLS_ECP_MAX_BITS */
2110
2111#if defined(MBEDTLS_ECP_WINDOW_SIZE)
2112 if( strcmp( "MBEDTLS_ECP_WINDOW_SIZE", config ) == 0 )
2113 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002114 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_WINDOW_SIZE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002115 return( 0 );
2116 }
2117#endif /* MBEDTLS_ECP_WINDOW_SIZE */
2118
2119#if defined(MBEDTLS_ECP_FIXED_POINT_OPTIM)
2120 if( strcmp( "MBEDTLS_ECP_FIXED_POINT_OPTIM", config ) == 0 )
2121 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002122 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ECP_FIXED_POINT_OPTIM ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002123 return( 0 );
2124 }
2125#endif /* MBEDTLS_ECP_FIXED_POINT_OPTIM */
2126
2127#if defined(MBEDTLS_ENTROPY_MAX_SOURCES)
2128 if( strcmp( "MBEDTLS_ENTROPY_MAX_SOURCES", config ) == 0 )
2129 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002130 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ENTROPY_MAX_SOURCES ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002131 return( 0 );
2132 }
2133#endif /* MBEDTLS_ENTROPY_MAX_SOURCES */
2134
2135#if defined(MBEDTLS_ENTROPY_MAX_GATHER)
2136 if( strcmp( "MBEDTLS_ENTROPY_MAX_GATHER", config ) == 0 )
2137 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002138 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ENTROPY_MAX_GATHER ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002139 return( 0 );
2140 }
2141#endif /* MBEDTLS_ENTROPY_MAX_GATHER */
2142
2143#if defined(MBEDTLS_ENTROPY_MIN_HARDWARE)
2144 if( strcmp( "MBEDTLS_ENTROPY_MIN_HARDWARE", config ) == 0 )
2145 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002146 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_ENTROPY_MIN_HARDWARE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002147 return( 0 );
2148 }
2149#endif /* MBEDTLS_ENTROPY_MIN_HARDWARE */
2150
2151#if defined(MBEDTLS_MEMORY_ALIGN_MULTIPLE)
2152 if( strcmp( "MBEDTLS_MEMORY_ALIGN_MULTIPLE", config ) == 0 )
2153 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002154 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_MEMORY_ALIGN_MULTIPLE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002155 return( 0 );
2156 }
2157#endif /* MBEDTLS_MEMORY_ALIGN_MULTIPLE */
2158
2159#if defined(MBEDTLS_PLATFORM_STD_MEM_HDR)
2160 if( strcmp( "MBEDTLS_PLATFORM_STD_MEM_HDR", config ) == 0 )
2161 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002162 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_MEM_HDR ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002163 return( 0 );
2164 }
2165#endif /* MBEDTLS_PLATFORM_STD_MEM_HDR */
2166
2167#if defined(MBEDTLS_PLATFORM_STD_CALLOC)
2168 if( strcmp( "MBEDTLS_PLATFORM_STD_CALLOC", config ) == 0 )
2169 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002170 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_CALLOC ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002171 return( 0 );
2172 }
2173#endif /* MBEDTLS_PLATFORM_STD_CALLOC */
2174
2175#if defined(MBEDTLS_PLATFORM_STD_FREE)
2176 if( strcmp( "MBEDTLS_PLATFORM_STD_FREE", config ) == 0 )
2177 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002178 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_FREE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002179 return( 0 );
2180 }
2181#endif /* MBEDTLS_PLATFORM_STD_FREE */
2182
2183#if defined(MBEDTLS_PLATFORM_STD_EXIT)
2184 if( strcmp( "MBEDTLS_PLATFORM_STD_EXIT", config ) == 0 )
2185 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002186 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_EXIT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002187 return( 0 );
2188 }
2189#endif /* MBEDTLS_PLATFORM_STD_EXIT */
2190
2191#if defined(MBEDTLS_PLATFORM_STD_TIME)
2192 if( strcmp( "MBEDTLS_PLATFORM_STD_TIME", config ) == 0 )
2193 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002194 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_TIME ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002195 return( 0 );
2196 }
2197#endif /* MBEDTLS_PLATFORM_STD_TIME */
2198
2199#if defined(MBEDTLS_PLATFORM_STD_FPRINTF)
2200 if( strcmp( "MBEDTLS_PLATFORM_STD_FPRINTF", config ) == 0 )
2201 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002202 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_FPRINTF ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002203 return( 0 );
2204 }
2205#endif /* MBEDTLS_PLATFORM_STD_FPRINTF */
2206
2207#if defined(MBEDTLS_PLATFORM_STD_PRINTF)
2208 if( strcmp( "MBEDTLS_PLATFORM_STD_PRINTF", config ) == 0 )
2209 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002210 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_PRINTF ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002211 return( 0 );
2212 }
2213#endif /* MBEDTLS_PLATFORM_STD_PRINTF */
2214
2215#if defined(MBEDTLS_PLATFORM_STD_SNPRINTF)
2216 if( strcmp( "MBEDTLS_PLATFORM_STD_SNPRINTF", config ) == 0 )
2217 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002218 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_SNPRINTF ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002219 return( 0 );
2220 }
2221#endif /* MBEDTLS_PLATFORM_STD_SNPRINTF */
2222
2223#if defined(MBEDTLS_PLATFORM_STD_EXIT_SUCCESS)
2224 if( strcmp( "MBEDTLS_PLATFORM_STD_EXIT_SUCCESS", config ) == 0 )
2225 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002226 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_EXIT_SUCCESS ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002227 return( 0 );
2228 }
2229#endif /* MBEDTLS_PLATFORM_STD_EXIT_SUCCESS */
2230
2231#if defined(MBEDTLS_PLATFORM_STD_EXIT_FAILURE)
2232 if( strcmp( "MBEDTLS_PLATFORM_STD_EXIT_FAILURE", config ) == 0 )
2233 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002234 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_EXIT_FAILURE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002235 return( 0 );
2236 }
2237#endif /* MBEDTLS_PLATFORM_STD_EXIT_FAILURE */
2238
2239#if defined(MBEDTLS_PLATFORM_STD_NV_SEED_READ)
2240 if( strcmp( "MBEDTLS_PLATFORM_STD_NV_SEED_READ", config ) == 0 )
2241 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002242 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_NV_SEED_READ ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002243 return( 0 );
2244 }
2245#endif /* MBEDTLS_PLATFORM_STD_NV_SEED_READ */
2246
2247#if defined(MBEDTLS_PLATFORM_STD_NV_SEED_WRITE)
2248 if( strcmp( "MBEDTLS_PLATFORM_STD_NV_SEED_WRITE", config ) == 0 )
2249 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002250 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_NV_SEED_WRITE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002251 return( 0 );
2252 }
2253#endif /* MBEDTLS_PLATFORM_STD_NV_SEED_WRITE */
2254
2255#if defined(MBEDTLS_PLATFORM_STD_NV_SEED_FILE)
2256 if( strcmp( "MBEDTLS_PLATFORM_STD_NV_SEED_FILE", config ) == 0 )
2257 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002258 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_STD_NV_SEED_FILE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002259 return( 0 );
2260 }
2261#endif /* MBEDTLS_PLATFORM_STD_NV_SEED_FILE */
2262
2263#if defined(MBEDTLS_PLATFORM_CALLOC_MACRO)
2264 if( strcmp( "MBEDTLS_PLATFORM_CALLOC_MACRO", config ) == 0 )
2265 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002266 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_CALLOC_MACRO ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002267 return( 0 );
2268 }
2269#endif /* MBEDTLS_PLATFORM_CALLOC_MACRO */
2270
2271#if defined(MBEDTLS_PLATFORM_FREE_MACRO)
2272 if( strcmp( "MBEDTLS_PLATFORM_FREE_MACRO", config ) == 0 )
2273 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002274 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_FREE_MACRO ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002275 return( 0 );
2276 }
2277#endif /* MBEDTLS_PLATFORM_FREE_MACRO */
2278
2279#if defined(MBEDTLS_PLATFORM_EXIT_MACRO)
2280 if( strcmp( "MBEDTLS_PLATFORM_EXIT_MACRO", config ) == 0 )
2281 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002282 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_EXIT_MACRO ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002283 return( 0 );
2284 }
2285#endif /* MBEDTLS_PLATFORM_EXIT_MACRO */
2286
2287#if defined(MBEDTLS_PLATFORM_TIME_MACRO)
2288 if( strcmp( "MBEDTLS_PLATFORM_TIME_MACRO", config ) == 0 )
2289 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002290 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_TIME_MACRO ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002291 return( 0 );
2292 }
2293#endif /* MBEDTLS_PLATFORM_TIME_MACRO */
2294
2295#if defined(MBEDTLS_PLATFORM_TIME_TYPE_MACRO)
2296 if( strcmp( "MBEDTLS_PLATFORM_TIME_TYPE_MACRO", config ) == 0 )
2297 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002298 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_TIME_TYPE_MACRO ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002299 return( 0 );
2300 }
2301#endif /* MBEDTLS_PLATFORM_TIME_TYPE_MACRO */
2302
2303#if defined(MBEDTLS_PLATFORM_FPRINTF_MACRO)
2304 if( strcmp( "MBEDTLS_PLATFORM_FPRINTF_MACRO", config ) == 0 )
2305 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002306 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_FPRINTF_MACRO ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002307 return( 0 );
2308 }
2309#endif /* MBEDTLS_PLATFORM_FPRINTF_MACRO */
2310
2311#if defined(MBEDTLS_PLATFORM_PRINTF_MACRO)
2312 if( strcmp( "MBEDTLS_PLATFORM_PRINTF_MACRO", config ) == 0 )
2313 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002314 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_PRINTF_MACRO ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002315 return( 0 );
2316 }
2317#endif /* MBEDTLS_PLATFORM_PRINTF_MACRO */
2318
2319#if defined(MBEDTLS_PLATFORM_SNPRINTF_MACRO)
2320 if( strcmp( "MBEDTLS_PLATFORM_SNPRINTF_MACRO", config ) == 0 )
2321 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002322 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_SNPRINTF_MACRO ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002323 return( 0 );
2324 }
2325#endif /* MBEDTLS_PLATFORM_SNPRINTF_MACRO */
2326
2327#if defined(MBEDTLS_PLATFORM_NV_SEED_READ_MACRO)
2328 if( strcmp( "MBEDTLS_PLATFORM_NV_SEED_READ_MACRO", config ) == 0 )
2329 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002330 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_NV_SEED_READ_MACRO ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002331 return( 0 );
2332 }
2333#endif /* MBEDTLS_PLATFORM_NV_SEED_READ_MACRO */
2334
2335#if defined(MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO)
2336 if( strcmp( "MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO", config ) == 0 )
2337 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002338 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002339 return( 0 );
2340 }
2341#endif /* MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO */
2342
2343#if defined(MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT)
2344 if( strcmp( "MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT", config ) == 0 )
2345 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002346 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002347 return( 0 );
2348 }
2349#endif /* MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT */
2350
2351#if defined(MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES)
2352 if( strcmp( "MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES", config ) == 0 )
2353 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002354 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002355 return( 0 );
2356 }
2357#endif /* MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES */
2358
2359#if defined(MBEDTLS_SSL_MAX_CONTENT_LEN)
2360 if( strcmp( "MBEDTLS_SSL_MAX_CONTENT_LEN", config ) == 0 )
2361 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002362 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_MAX_CONTENT_LEN ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002363 return( 0 );
2364 }
2365#endif /* MBEDTLS_SSL_MAX_CONTENT_LEN */
2366
2367#if defined(MBEDTLS_SSL_IN_CONTENT_LEN)
2368 if( strcmp( "MBEDTLS_SSL_IN_CONTENT_LEN", config ) == 0 )
2369 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002370 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_IN_CONTENT_LEN ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002371 return( 0 );
2372 }
2373#endif /* MBEDTLS_SSL_IN_CONTENT_LEN */
2374
2375#if defined(MBEDTLS_SSL_OUT_CONTENT_LEN)
2376 if( strcmp( "MBEDTLS_SSL_OUT_CONTENT_LEN", config ) == 0 )
2377 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002378 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_OUT_CONTENT_LEN ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002379 return( 0 );
2380 }
2381#endif /* MBEDTLS_SSL_OUT_CONTENT_LEN */
2382
2383#if defined(MBEDTLS_SSL_DTLS_MAX_BUFFERING)
2384 if( strcmp( "MBEDTLS_SSL_DTLS_MAX_BUFFERING", config ) == 0 )
2385 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002386 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DTLS_MAX_BUFFERING ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002387 return( 0 );
2388 }
2389#endif /* MBEDTLS_SSL_DTLS_MAX_BUFFERING */
2390
2391#if defined(MBEDTLS_SSL_DEFAULT_TICKET_LIFETIME)
2392 if( strcmp( "MBEDTLS_SSL_DEFAULT_TICKET_LIFETIME", config ) == 0 )
2393 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002394 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DEFAULT_TICKET_LIFETIME ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002395 return( 0 );
2396 }
2397#endif /* MBEDTLS_SSL_DEFAULT_TICKET_LIFETIME */
2398
2399#if defined(MBEDTLS_PSK_MAX_LEN)
2400 if( strcmp( "MBEDTLS_PSK_MAX_LEN", config ) == 0 )
2401 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002402 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PSK_MAX_LEN ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002403 return( 0 );
2404 }
2405#endif /* MBEDTLS_PSK_MAX_LEN */
2406
2407#if defined(MBEDTLS_SSL_COOKIE_TIMEOUT)
2408 if( strcmp( "MBEDTLS_SSL_COOKIE_TIMEOUT", config ) == 0 )
2409 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002410 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_COOKIE_TIMEOUT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002411 return( 0 );
2412 }
2413#endif /* MBEDTLS_SSL_COOKIE_TIMEOUT */
2414
2415#if defined(MBEDTLS_SSL_CIPHERSUITES)
2416 if( strcmp( "MBEDTLS_SSL_CIPHERSUITES", config ) == 0 )
2417 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002418 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_CIPHERSUITES ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002419 return( 0 );
2420 }
2421#endif /* MBEDTLS_SSL_CIPHERSUITES */
2422
2423#if defined(MBEDTLS_X509_MAX_INTERMEDIATE_CA)
2424 if( strcmp( "MBEDTLS_X509_MAX_INTERMEDIATE_CA", config ) == 0 )
2425 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002426 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_X509_MAX_INTERMEDIATE_CA ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002427 return( 0 );
2428 }
2429#endif /* MBEDTLS_X509_MAX_INTERMEDIATE_CA */
2430
2431#if defined(MBEDTLS_X509_MAX_FILE_PATH_LEN)
2432 if( strcmp( "MBEDTLS_X509_MAX_FILE_PATH_LEN", config ) == 0 )
2433 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002434 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_X509_MAX_FILE_PATH_LEN ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002435 return( 0 );
2436 }
2437#endif /* MBEDTLS_X509_MAX_FILE_PATH_LEN */
2438
2439#if defined(MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES)
2440 if( strcmp( "MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES", config ) == 0 )
2441 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002442 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002443 return( 0 );
2444 }
2445#endif /* MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES */
2446
2447#if defined(MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE)
2448 if( strcmp( "MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE", config ) == 0 )
2449 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002450 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002451 return( 0 );
2452 }
2453#endif /* MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE */
2454
2455#if defined(MBEDTLS_PLATFORM_ZEROIZE_ALT)
2456 if( strcmp( "MBEDTLS_PLATFORM_ZEROIZE_ALT", config ) == 0 )
2457 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002458 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_ZEROIZE_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002459 return( 0 );
2460 }
2461#endif /* MBEDTLS_PLATFORM_ZEROIZE_ALT */
2462
2463#if defined(MBEDTLS_PLATFORM_GMTIME_R_ALT)
2464 if( strcmp( "MBEDTLS_PLATFORM_GMTIME_R_ALT", config ) == 0 )
2465 {
Andres Amaya Garciad2689e32018-10-29 18:52:59 +00002466 mbedtls_printf( "%s", MACRO_EXPANSION_TO_STR( MBEDTLS_PLATFORM_GMTIME_R_ALT ) );
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002467 return( 0 );
2468 }
2469#endif /* MBEDTLS_PLATFORM_GMTIME_R_ALT */
2470
Andres Amaya Garcia5547a402018-10-29 18:58:41 +00002471 /* If the symbol is not found, return an error */
Andres Amaya Garciabfa3e092018-10-16 21:08:38 +01002472 return( 1 );
2473}