mbed TLS v2.16.0: config.h Source File

mbed TLS v2.16.0

config.h
Go to the documentation of this file.
1
10 /*
11 * Copyright (C) 2006-2018, ARM Limited, All Rights Reserved
12 * SPDX-License-Identifier: Apache-2.0
13 *
14 * Licensed under the Apache License, Version 2.0 (the "License"); you may
15 * not use this file except in compliance with the License.
16 * You may obtain a copy of the License at
17 *
18 * http://www.apache.org/licenses/LICENSE-2.0
19 *
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
22 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 * See the License for the specific language governing permissions and
24 * limitations under the License.
25 *
26 * This file is part of mbed TLS (https://tls.mbed.org)
27 */
28
29 #ifndef MBEDTLS_CONFIG_H
30 #define MBEDTLS_CONFIG_H
31
32 #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
33 #define _CRT_SECURE_NO_DEPRECATE 1
34 #endif
35
61 #define MBEDTLS_HAVE_ASM
62
89 //#define MBEDTLS_NO_UDBL_DIVISION
90
111 //#define MBEDTLS_NO_64BIT_MULTIPLICATION
112
120 //#define MBEDTLS_HAVE_SSE2
121
135 #define MBEDTLS_HAVE_TIME
136
156 #define MBEDTLS_HAVE_TIME_DATE
157
180 //#define MBEDTLS_PLATFORM_MEMORY
181
199 //#define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
200
224 //#define MBEDTLS_PLATFORM_EXIT_ALT
225 //#define MBEDTLS_PLATFORM_TIME_ALT
226 //#define MBEDTLS_PLATFORM_FPRINTF_ALT
227 //#define MBEDTLS_PLATFORM_PRINTF_ALT
228 //#define MBEDTLS_PLATFORM_SNPRINTF_ALT
229 //#define MBEDTLS_PLATFORM_NV_SEED_ALT
230 //#define MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT
231
245 //#define MBEDTLS_DEPRECATED_WARNING
246
257 //#define MBEDTLS_DEPRECATED_REMOVED
258
299 //#define MBEDTLS_CHECK_PARAMS
300
301 /* \} name SECTION: System support */
302
322 //#define MBEDTLS_TIMING_ALT
323
349 //#define MBEDTLS_AES_ALT
350 //#define MBEDTLS_ARC4_ALT
351 //#define MBEDTLS_ARIA_ALT
352 //#define MBEDTLS_BLOWFISH_ALT
353 //#define MBEDTLS_CAMELLIA_ALT
354 //#define MBEDTLS_CCM_ALT
355 //#define MBEDTLS_CHACHA20_ALT
356 //#define MBEDTLS_CHACHAPOLY_ALT
357 //#define MBEDTLS_CMAC_ALT
358 //#define MBEDTLS_DES_ALT
359 //#define MBEDTLS_DHM_ALT
360 //#define MBEDTLS_ECJPAKE_ALT
361 //#define MBEDTLS_GCM_ALT
362 //#define MBEDTLS_NIST_KW_ALT
363 //#define MBEDTLS_MD2_ALT
364 //#define MBEDTLS_MD4_ALT
365 //#define MBEDTLS_MD5_ALT
366 //#define MBEDTLS_POLY1305_ALT
367 //#define MBEDTLS_RIPEMD160_ALT
368 //#define MBEDTLS_RSA_ALT
369 //#define MBEDTLS_SHA1_ALT
370 //#define MBEDTLS_SHA256_ALT
371 //#define MBEDTLS_SHA512_ALT
372 //#define MBEDTLS_XTEA_ALT
373
374 /*
375 * When replacing the elliptic curve module, pleace consider, that it is
376 * implemented with two .c files:
377 * - ecp.c
378 * - ecp_curves.c
379 * You can replace them very much like all the other MBEDTLS__MODULE_NAME__ALT
380 * macros as described above. The only difference is that you have to make sure
381 * that you provide functionality for both .c files.
382 */
383 //#define MBEDTLS_ECP_ALT
384
420 //#define MBEDTLS_MD2_PROCESS_ALT
421 //#define MBEDTLS_MD4_PROCESS_ALT
422 //#define MBEDTLS_MD5_PROCESS_ALT
423 //#define MBEDTLS_RIPEMD160_PROCESS_ALT
424 //#define MBEDTLS_SHA1_PROCESS_ALT
425 //#define MBEDTLS_SHA256_PROCESS_ALT
426 //#define MBEDTLS_SHA512_PROCESS_ALT
427 //#define MBEDTLS_DES_SETKEY_ALT
428 //#define MBEDTLS_DES_CRYPT_ECB_ALT
429 //#define MBEDTLS_DES3_CRYPT_ECB_ALT
430 //#define MBEDTLS_AES_SETKEY_ENC_ALT
431 //#define MBEDTLS_AES_SETKEY_DEC_ALT
432 //#define MBEDTLS_AES_ENCRYPT_ALT
433 //#define MBEDTLS_AES_DECRYPT_ALT
434 //#define MBEDTLS_ECDH_GEN_PUBLIC_ALT
435 //#define MBEDTLS_ECDH_COMPUTE_SHARED_ALT
436 //#define MBEDTLS_ECDSA_VERIFY_ALT
437 //#define MBEDTLS_ECDSA_SIGN_ALT
438 //#define MBEDTLS_ECDSA_GENKEY_ALT
439
480 /* Required for all the functions in this section */
481 //#define MBEDTLS_ECP_INTERNAL_ALT
482 /* Support for Weierstrass curves with Jacobi representation */
483 //#define MBEDTLS_ECP_RANDOMIZE_JAC_ALT
484 //#define MBEDTLS_ECP_ADD_MIXED_ALT
485 //#define MBEDTLS_ECP_DOUBLE_JAC_ALT
486 //#define MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT
487 //#define MBEDTLS_ECP_NORMALIZE_JAC_ALT
488 /* Support for curves with Montgomery arithmetic */
489 //#define MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT
490 //#define MBEDTLS_ECP_RANDOMIZE_MXZ_ALT
491 //#define MBEDTLS_ECP_NORMALIZE_MXZ_ALT
492
508 //#define MBEDTLS_TEST_NULL_ENTROPY
509
521 //#define MBEDTLS_ENTROPY_HARDWARE_ALT
522
541 //#define MBEDTLS_AES_ROM_TABLES
542
563 //#define MBEDTLS_AES_FEWER_TABLES
564
572 //#define MBEDTLS_CAMELLIA_SMALL_MEMORY
573
579 #define MBEDTLS_CIPHER_MODE_CBC
580
586 #define MBEDTLS_CIPHER_MODE_CFB
587
593 #define MBEDTLS_CIPHER_MODE_CTR
594
600 #define MBEDTLS_CIPHER_MODE_OFB
601
607 #define MBEDTLS_CIPHER_MODE_XTS
608
640 //#define MBEDTLS_CIPHER_NULL_CIPHER
641
653 #define MBEDTLS_CIPHER_PADDING_PKCS7
654 #define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS
655 #define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN
656 #define MBEDTLS_CIPHER_PADDING_ZEROS
657
674 //#define MBEDTLS_ENABLE_WEAK_CIPHERSUITES
675
687 #define MBEDTLS_REMOVE_ARC4_CIPHERSUITES
688
697 #define MBEDTLS_ECP_DP_SECP192R1_ENABLED
698 #define MBEDTLS_ECP_DP_SECP224R1_ENABLED
699 #define MBEDTLS_ECP_DP_SECP256R1_ENABLED
700 #define MBEDTLS_ECP_DP_SECP384R1_ENABLED
701 #define MBEDTLS_ECP_DP_SECP521R1_ENABLED
702 #define MBEDTLS_ECP_DP_SECP192K1_ENABLED
703 #define MBEDTLS_ECP_DP_SECP224K1_ENABLED
704 #define MBEDTLS_ECP_DP_SECP256K1_ENABLED
705 #define MBEDTLS_ECP_DP_BP256R1_ENABLED
706 #define MBEDTLS_ECP_DP_BP384R1_ENABLED
707 #define MBEDTLS_ECP_DP_BP512R1_ENABLED
708 #define MBEDTLS_ECP_DP_CURVE25519_ENABLED
709 #define MBEDTLS_ECP_DP_CURVE448_ENABLED
710
720 #define MBEDTLS_ECP_NIST_OPTIM
721
744 //#define MBEDTLS_ECP_RESTARTABLE
745
758 #define MBEDTLS_ECDSA_DETERMINISTIC
759
780 #define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
781
811 #define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
812
831 #define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
832
856 #define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
857
884 #define MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
885
917 #define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
918
942 #define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
943
966 #define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
967
990 #define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
991
1014 #define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
1015
1033 //#define MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
1034
1047 #define MBEDTLS_PK_PARSE_EC_EXTENDED
1048
1062 #define MBEDTLS_ERROR_STRERROR_DUMMY
1063
1071 #define MBEDTLS_GENPRIME
1072
1078 #define MBEDTLS_FS_IO
1079
1091 //#define MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
1092
1102 //#define MBEDTLS_NO_PLATFORM_ENTROPY
1103
1118 //#define MBEDTLS_ENTROPY_FORCE_SHA256
1119
1146 //#define MBEDTLS_ENTROPY_NV_SEED
1147
1159 //#define MBEDTLS_MEMORY_DEBUG
1160
1171 //#define MBEDTLS_MEMORY_BACKTRACE
1172
1180 #define MBEDTLS_PK_RSA_ALT_SUPPORT
1181
1191 #define MBEDTLS_PKCS1_V15
1192
1202 #define MBEDTLS_PKCS1_V21
1203
1213 //#define MBEDTLS_RSA_NO_CRT
1214
1220 #define MBEDTLS_SELF_TEST
1221
1236 //#define MBEDTLS_SHA256_SMALLER
1237
1250 #define MBEDTLS_SSL_ALL_ALERT_MESSAGES
1251
1261 //#define MBEDTLS_SSL_ASYNC_PRIVATE
1262
1277 //#define MBEDTLS_SSL_DEBUG_ALL
1278
1295 #define MBEDTLS_SSL_ENCRYPT_THEN_MAC
1296
1313 #define MBEDTLS_SSL_EXTENDED_MASTER_SECRET
1314
1330 #define MBEDTLS_SSL_FALLBACK_SCSV
1331
1340 //#define MBEDTLS_SSL_HW_RECORD_ACCEL
1341
1352 #define MBEDTLS_SSL_CBC_RECORD_SPLITTING
1353
1374 #define MBEDTLS_SSL_RENEGOTIATION
1375
1384 //#define MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
1385
1394 //#define MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE
1395
1403 #define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
1404
1415 //#define MBEDTLS_SSL_PROTO_SSL3
1416
1427 #define MBEDTLS_SSL_PROTO_TLS1
1428
1439 #define MBEDTLS_SSL_PROTO_TLS1_1
1440
1451 #define MBEDTLS_SSL_PROTO_TLS1_2
1452
1466 #define MBEDTLS_SSL_PROTO_DTLS
1467
1475 #define MBEDTLS_SSL_ALPN
1476
1490 #define MBEDTLS_SSL_DTLS_ANTI_REPLAY
1491
1508 #define MBEDTLS_SSL_DTLS_HELLO_VERIFY
1509
1524 #define MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE
1525
1535 #define MBEDTLS_SSL_DTLS_BADMAC_LIMIT
1536
1549 #define MBEDTLS_SSL_SESSION_TICKETS
1550
1559 #define MBEDTLS_SSL_EXPORT_KEYS
1560
1570 #define MBEDTLS_SSL_SERVER_NAME_INDICATION
1571
1579 #define MBEDTLS_SSL_TRUNCATED_HMAC
1580
1603 //#define MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT
1604
1614 //#define MBEDTLS_THREADING_ALT
1615
1625 //#define MBEDTLS_THREADING_PTHREAD
1626
1638 #define MBEDTLS_VERSION_FEATURES
1639
1648 //#define MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3
1649
1660 //#define MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
1661
1674 #define MBEDTLS_X509_CHECK_KEY_USAGE
1675
1687 #define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE
1688
1697 #define MBEDTLS_X509_RSASSA_PSS_SUPPORT
1698
1722 //#define MBEDTLS_ZLIB_SUPPORT
1723 /* \} name SECTION: mbed TLS feature support */
1724
1744 #define MBEDTLS_AESNI_C
1745
1819 #define MBEDTLS_AES_C
1820
1847 #define MBEDTLS_ARC4_C
1848
1861 #define MBEDTLS_ASN1_PARSE_C
1862
1875 #define MBEDTLS_ASN1_WRITE_C
1876
1887 #define MBEDTLS_BASE64_C
1888
1904 #define MBEDTLS_BIGNUM_C
1905
1913 #define MBEDTLS_BLOWFISH_C
1914
1968 #define MBEDTLS_CAMELLIA_C
1969
2020 //#define MBEDTLS_ARIA_C
2021
2034 #define MBEDTLS_CCM_C
2035
2046 #define MBEDTLS_CERTS_C
2047
2055 #define MBEDTLS_CHACHA20_C
2056
2066 #define MBEDTLS_CHACHAPOLY_C
2067
2078 #define MBEDTLS_CIPHER_C
2079
2091 //#define MBEDTLS_CMAC_C
2092
2107 #define MBEDTLS_CTR_DRBG_C
2108
2121 #define MBEDTLS_DEBUG_C
2122
2150 #define MBEDTLS_DES_C
2151
2171 #define MBEDTLS_DHM_C
2172
2187 #define MBEDTLS_ECDH_C
2188
2202 #define MBEDTLS_ECDSA_C
2203
2221 //#define MBEDTLS_ECJPAKE_C
2222
2235 #define MBEDTLS_ECP_C
2236
2249 #define MBEDTLS_ENTROPY_C
2250
2261 #define MBEDTLS_ERROR_C
2262
2275 #define MBEDTLS_GCM_C
2276
2298 //#define MBEDTLS_HAVEGE_C
2299
2313 #define MBEDTLS_HKDF_C
2314
2327 #define MBEDTLS_HMAC_DRBG_C
2328
2340 //#define MBEDTLS_NIST_KW_C
2341
2352 #define MBEDTLS_MD_C
2353
2369 //#define MBEDTLS_MD2_C
2370
2386 //#define MBEDTLS_MD4_C
2387
2408 #define MBEDTLS_MD5_C
2409
2424 //#define MBEDTLS_MEMORY_BUFFER_ALLOC_C
2425
2443 #define MBEDTLS_NET_C
2444
2466 #define MBEDTLS_OID_C
2467
2480 #define MBEDTLS_PADLOCK_C
2481
2498 #define MBEDTLS_PEM_PARSE_C
2499
2514 #define MBEDTLS_PEM_WRITE_C
2515
2530 #define MBEDTLS_PK_C
2531
2545 #define MBEDTLS_PK_PARSE_C
2546
2559 #define MBEDTLS_PK_WRITE_C
2560
2572 #define MBEDTLS_PKCS5_C
2573
2587 //#define MBEDTLS_PKCS11_C
2588
2603 #define MBEDTLS_PKCS12_C
2604
2623 #define MBEDTLS_PLATFORM_C
2624
2633 #define MBEDTLS_POLY1305_C
2634
2644 #define MBEDTLS_RIPEMD160_C
2645
2663 #define MBEDTLS_RSA_C
2664
2685 #define MBEDTLS_SHA1_C
2686
2702 #define MBEDTLS_SHA256_C
2703
2717 #define MBEDTLS_SHA512_C
2718
2729 #define MBEDTLS_SSL_CACHE_C
2730
2739 #define MBEDTLS_SSL_COOKIE_C
2740
2751 #define MBEDTLS_SSL_TICKET_C
2752
2765 #define MBEDTLS_SSL_CLI_C
2766
2779 #define MBEDTLS_SSL_SRV_C
2780
2795 #define MBEDTLS_SSL_TLS_C
2796
2817 //#define MBEDTLS_THREADING_C
2818
2840 #define MBEDTLS_TIMING_C
2841
2851 #define MBEDTLS_VERSION_C
2852
2868 #define MBEDTLS_X509_USE_C
2869
2884 #define MBEDTLS_X509_CRT_PARSE_C
2885
2898 #define MBEDTLS_X509_CRL_PARSE_C
2899
2912 #define MBEDTLS_X509_CSR_PARSE_C
2913
2925 #define MBEDTLS_X509_CREATE_C
2926
2938 #define MBEDTLS_X509_CRT_WRITE_C
2939
2951 #define MBEDTLS_X509_CSR_WRITE_C
2952
2961 #define MBEDTLS_XTEA_C
2962
2963 /* \} name SECTION: mbed TLS modules */
2964
2980 /* MPI / BIGNUM options */
2981 //#define MBEDTLS_MPI_WINDOW_SIZE 6 /**< Maximum windows size used. */
2982 //#define MBEDTLS_MPI_MAX_SIZE 1024 /**< Maximum number of bytes for usable MPIs. */
2983
2984 /* CTR_DRBG options */
2985 //#define MBEDTLS_CTR_DRBG_ENTROPY_LEN 48 /**< Amount of entropy used per seed by default (48 with SHA-512, 32 with SHA-256) */
2986 //#define MBEDTLS_CTR_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
2987 //#define MBEDTLS_CTR_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
2988 //#define MBEDTLS_CTR_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
2989 //#define MBEDTLS_CTR_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
2990 //#define MBEDTLS_CTR_DRBG_USE_128_BIT_KEY /**< Use 128-bit key for CTR_DRBG - may reduce security (see ctr_drbg.h) */
2991
2992 /* HMAC_DRBG options */
2993 //#define MBEDTLS_HMAC_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
2994 //#define MBEDTLS_HMAC_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
2995 //#define MBEDTLS_HMAC_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
2996 //#define MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
2997
2998 /* ECP options */
2999 //#define MBEDTLS_ECP_MAX_BITS 521 /**< Maximum bit size of groups */
3000 //#define MBEDTLS_ECP_WINDOW_SIZE 6 /**< Maximum window size used */
3001 //#define MBEDTLS_ECP_FIXED_POINT_OPTIM 1 /**< Enable fixed-point speed-up */
3002
3003 /* Entropy options */
3004 //#define MBEDTLS_ENTROPY_MAX_SOURCES 20 /**< Maximum number of sources supported */
3005 //#define MBEDTLS_ENTROPY_MAX_GATHER 128 /**< Maximum amount requested from entropy sources */
3006 //#define MBEDTLS_ENTROPY_MIN_HARDWARE 32 /**< Default minimum number of bytes required for the hardware entropy source mbedtls_hardware_poll() before entropy is released */
3007
3008 /* Memory buffer allocator options */
3009 //#define MBEDTLS_MEMORY_ALIGN_MULTIPLE 4 /**< Align on multiples of this value */
3010
3011 /* Platform options */
3012 //#define MBEDTLS_PLATFORM_STD_MEM_HDR <stdlib.h> /**< Header to include if MBEDTLS_PLATFORM_NO_STD_FUNCTIONS is defined. Don't define if no header is needed. */
3013 //#define MBEDTLS_PLATFORM_STD_CALLOC calloc /**< Default allocator to use, can be undefined */
3014 //#define MBEDTLS_PLATFORM_STD_FREE free /**< Default free to use, can be undefined */
3015 //#define MBEDTLS_PLATFORM_STD_EXIT exit /**< Default exit to use, can be undefined */
3016 //#define MBEDTLS_PLATFORM_STD_TIME time /**< Default time to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
3017 //#define MBEDTLS_PLATFORM_STD_FPRINTF fprintf /**< Default fprintf to use, can be undefined */
3018 //#define MBEDTLS_PLATFORM_STD_PRINTF printf /**< Default printf to use, can be undefined */
3019 /* Note: your snprintf must correclty zero-terminate the buffer! */
3020 //#define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< Default snprintf to use, can be undefined */
3021 //#define MBEDTLS_PLATFORM_STD_EXIT_SUCCESS 0 /**< Default exit value to use, can be undefined */
3022 //#define MBEDTLS_PLATFORM_STD_EXIT_FAILURE 1 /**< Default exit value to use, can be undefined */
3023 //#define MBEDTLS_PLATFORM_STD_NV_SEED_READ mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
3024 //#define MBEDTLS_PLATFORM_STD_NV_SEED_WRITE mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
3025 //#define MBEDTLS_PLATFORM_STD_NV_SEED_FILE "seedfile" /**< Seed file to read/write with default implementation */
3026
3027 /* To Use Function Macros MBEDTLS_PLATFORM_C must be enabled */
3028 /* MBEDTLS_PLATFORM_XXX_MACRO and MBEDTLS_PLATFORM_XXX_ALT cannot both be defined */
3029 //#define MBEDTLS_PLATFORM_CALLOC_MACRO calloc /**< Default allocator macro to use, can be undefined */
3030 //#define MBEDTLS_PLATFORM_FREE_MACRO free /**< Default free macro to use, can be undefined */
3031 //#define MBEDTLS_PLATFORM_EXIT_MACRO exit /**< Default exit macro to use, can be undefined */
3032 //#define MBEDTLS_PLATFORM_TIME_MACRO time /**< Default time macro to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
3033 //#define MBEDTLS_PLATFORM_TIME_TYPE_MACRO time_t /**< Default time macro to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
3034 //#define MBEDTLS_PLATFORM_FPRINTF_MACRO fprintf /**< Default fprintf macro to use, can be undefined */
3035 //#define MBEDTLS_PLATFORM_PRINTF_MACRO printf /**< Default printf macro to use, can be undefined */
3036 /* Note: your snprintf must correclty zero-terminate the buffer! */
3037 //#define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf /**< Default snprintf macro to use, can be undefined */
3038 //#define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
3039 //#define MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
3040
3069 //#define MBEDTLS_PARAM_FAILED( cond ) assert( cond )
3070
3071 /* SSL Cache options */
3072 //#define MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT 86400 /**< 1 day */
3073 //#define MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /**< Maximum entries in cache */
3074
3075 /* SSL options */
3076
3101 //#define MBEDTLS_SSL_MAX_CONTENT_LEN 16384
3102
3126 //#define MBEDTLS_SSL_IN_CONTENT_LEN 16384
3127
3150 //#define MBEDTLS_SSL_OUT_CONTENT_LEN 16384
3151
3167 //#define MBEDTLS_SSL_DTLS_MAX_BUFFERING 32768
3168
3169 //#define MBEDTLS_SSL_DEFAULT_TICKET_LIFETIME 86400 /**< Lifetime of session tickets (if enabled) */
3170 //#define MBEDTLS_PSK_MAX_LEN 32 /**< Max size of TLS pre-shared keys, in bytes (default 256 bits) */
3171 //#define MBEDTLS_SSL_COOKIE_TIMEOUT 60 /**< Default expiration delay of DTLS cookies, in seconds if HAVE_TIME, or in number of cookies issued */
3172
3185 //#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
3186
3187 /* X509 options */
3188 //#define MBEDTLS_X509_MAX_INTERMEDIATE_CA 8 /**< Maximum number of intermediate CAs in a verification chain. */
3189 //#define MBEDTLS_X509_MAX_FILE_PATH_LEN 512 /**< Maximum length of a path/filename string in bytes including the null terminator character ('\0'). */
3190
3203 // #define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES
3204
3220 #define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE
3221
3240 //#define MBEDTLS_PLATFORM_ZEROIZE_ALT
3241
3259 //#define MBEDTLS_PLATFORM_GMTIME_R_ALT
3260
3261 /* \} name SECTION: Customisation configuration options */
3262
3263 /* Target and application specific configurations
3264 *
3265 * Allow user to override any previous default.
3266 *
3267 */
3268 #if defined(MBEDTLS_USER_CONFIG_FILE)
3269 #include MBEDTLS_USER_CONFIG_FILE
3270 #endif
3271
3272 #include "check_config.h"
3273
3274 #endif /* MBEDTLS_CONFIG_H */
check_config.h
Consistency checks for configuration options.