mbed TLS v2.16.5

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
309 //#define MBEDTLS_CHECK_PARAMS
310
323 //#define MBEDTLS_CHECK_PARAMS_ASSERT
324
325 /* \} name SECTION: System support */
326
346 //#define MBEDTLS_TIMING_ALT
347
373 //#define MBEDTLS_AES_ALT
374 //#define MBEDTLS_ARC4_ALT
375 //#define MBEDTLS_ARIA_ALT
376 //#define MBEDTLS_BLOWFISH_ALT
377 //#define MBEDTLS_CAMELLIA_ALT
378 //#define MBEDTLS_CCM_ALT
379 //#define MBEDTLS_CHACHA20_ALT
380 //#define MBEDTLS_CHACHAPOLY_ALT
381 //#define MBEDTLS_CMAC_ALT
382 //#define MBEDTLS_DES_ALT
383 //#define MBEDTLS_DHM_ALT
384 //#define MBEDTLS_ECJPAKE_ALT
385 //#define MBEDTLS_GCM_ALT
386 //#define MBEDTLS_NIST_KW_ALT
387 //#define MBEDTLS_MD2_ALT
388 //#define MBEDTLS_MD4_ALT
389 //#define MBEDTLS_MD5_ALT
390 //#define MBEDTLS_POLY1305_ALT
391 //#define MBEDTLS_RIPEMD160_ALT
392 //#define MBEDTLS_RSA_ALT
393 //#define MBEDTLS_SHA1_ALT
394 //#define MBEDTLS_SHA256_ALT
395 //#define MBEDTLS_SHA512_ALT
396 //#define MBEDTLS_XTEA_ALT
397
398 /*
399 * When replacing the elliptic curve module, pleace consider, that it is
400 * implemented with two .c files:
401 * - ecp.c
402 * - ecp_curves.c
403 * You can replace them very much like all the other MBEDTLS__MODULE_NAME__ALT
404 * macros as described above. The only difference is that you have to make sure
405 * that you provide functionality for both .c files.
406 */
407 //#define MBEDTLS_ECP_ALT
408
454 //#define MBEDTLS_MD2_PROCESS_ALT
455 //#define MBEDTLS_MD4_PROCESS_ALT
456 //#define MBEDTLS_MD5_PROCESS_ALT
457 //#define MBEDTLS_RIPEMD160_PROCESS_ALT
458 //#define MBEDTLS_SHA1_PROCESS_ALT
459 //#define MBEDTLS_SHA256_PROCESS_ALT
460 //#define MBEDTLS_SHA512_PROCESS_ALT
461 //#define MBEDTLS_DES_SETKEY_ALT
462 //#define MBEDTLS_DES_CRYPT_ECB_ALT
463 //#define MBEDTLS_DES3_CRYPT_ECB_ALT
464 //#define MBEDTLS_AES_SETKEY_ENC_ALT
465 //#define MBEDTLS_AES_SETKEY_DEC_ALT
466 //#define MBEDTLS_AES_ENCRYPT_ALT
467 //#define MBEDTLS_AES_DECRYPT_ALT
468 //#define MBEDTLS_ECDH_GEN_PUBLIC_ALT
469 //#define MBEDTLS_ECDH_COMPUTE_SHARED_ALT
470 //#define MBEDTLS_ECDSA_VERIFY_ALT
471 //#define MBEDTLS_ECDSA_SIGN_ALT
472 //#define MBEDTLS_ECDSA_GENKEY_ALT
473
514 /* Required for all the functions in this section */
515 //#define MBEDTLS_ECP_INTERNAL_ALT
516 /* Support for Weierstrass curves with Jacobi representation */
517 //#define MBEDTLS_ECP_RANDOMIZE_JAC_ALT
518 //#define MBEDTLS_ECP_ADD_MIXED_ALT
519 //#define MBEDTLS_ECP_DOUBLE_JAC_ALT
520 //#define MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT
521 //#define MBEDTLS_ECP_NORMALIZE_JAC_ALT
522 /* Support for curves with Montgomery arithmetic */
523 //#define MBEDTLS_ECP_DOUBLE_ADD_MXZ_ALT
524 //#define MBEDTLS_ECP_RANDOMIZE_MXZ_ALT
525 //#define MBEDTLS_ECP_NORMALIZE_MXZ_ALT
526
542 //#define MBEDTLS_TEST_NULL_ENTROPY
543
555 //#define MBEDTLS_ENTROPY_HARDWARE_ALT
556
575 //#define MBEDTLS_AES_ROM_TABLES
576
597 //#define MBEDTLS_AES_FEWER_TABLES
598
606 //#define MBEDTLS_CAMELLIA_SMALL_MEMORY
607
613 #define MBEDTLS_CIPHER_MODE_CBC
614
620 #define MBEDTLS_CIPHER_MODE_CFB
621
627 #define MBEDTLS_CIPHER_MODE_CTR
628
634 #define MBEDTLS_CIPHER_MODE_OFB
635
641 #define MBEDTLS_CIPHER_MODE_XTS
642
674 //#define MBEDTLS_CIPHER_NULL_CIPHER
675
687 #define MBEDTLS_CIPHER_PADDING_PKCS7
688 #define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS
689 #define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN
690 #define MBEDTLS_CIPHER_PADDING_ZEROS
691
697 //#define MBEDTLS_CTR_DRBG_USE_128_BIT_KEY
698
715 //#define MBEDTLS_ENABLE_WEAK_CIPHERSUITES
716
728 #define MBEDTLS_REMOVE_ARC4_CIPHERSUITES
729
748 #define MBEDTLS_REMOVE_3DES_CIPHERSUITES
749
758 #define MBEDTLS_ECP_DP_SECP192R1_ENABLED
759 #define MBEDTLS_ECP_DP_SECP224R1_ENABLED
760 #define MBEDTLS_ECP_DP_SECP256R1_ENABLED
761 #define MBEDTLS_ECP_DP_SECP384R1_ENABLED
762 #define MBEDTLS_ECP_DP_SECP521R1_ENABLED
763 #define MBEDTLS_ECP_DP_SECP192K1_ENABLED
764 #define MBEDTLS_ECP_DP_SECP224K1_ENABLED
765 #define MBEDTLS_ECP_DP_SECP256K1_ENABLED
766 #define MBEDTLS_ECP_DP_BP256R1_ENABLED
767 #define MBEDTLS_ECP_DP_BP384R1_ENABLED
768 #define MBEDTLS_ECP_DP_BP512R1_ENABLED
769 #define MBEDTLS_ECP_DP_CURVE25519_ENABLED
770 #define MBEDTLS_ECP_DP_CURVE448_ENABLED
771
781 #define MBEDTLS_ECP_NIST_OPTIM
782
805 //#define MBEDTLS_ECP_RESTARTABLE
806
819 #define MBEDTLS_ECDSA_DETERMINISTIC
820
841 #define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
842
872 #define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
873
892 #define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
893
917 #define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
918
945 #define MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
946
978 #define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
979
1003 #define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
1004
1027 #define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
1028
1051 #define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
1052
1075 #define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
1076
1094 //#define MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
1095
1108 #define MBEDTLS_PK_PARSE_EC_EXTENDED
1109
1123 //#define MBEDTLS_ERROR_STRERROR_DUMMY
1124
1132 #define MBEDTLS_GENPRIME
1133
1139 #define MBEDTLS_FS_IO
1140
1152 //#define MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
1153
1163 //#define MBEDTLS_NO_PLATFORM_ENTROPY
1164
1179 //#define MBEDTLS_ENTROPY_FORCE_SHA256
1180
1207 //#define MBEDTLS_ENTROPY_NV_SEED
1208
1220 //#define MBEDTLS_MEMORY_DEBUG
1221
1232 //#define MBEDTLS_MEMORY_BACKTRACE
1233
1241 #define MBEDTLS_PK_RSA_ALT_SUPPORT
1242
1252 #define MBEDTLS_PKCS1_V15
1253
1263 #define MBEDTLS_PKCS1_V21
1264
1274 //#define MBEDTLS_RSA_NO_CRT
1275
1281 #define MBEDTLS_SELF_TEST
1282
1297 //#define MBEDTLS_SHA256_SMALLER
1298
1311 #define MBEDTLS_SSL_ALL_ALERT_MESSAGES
1312
1322 //#define MBEDTLS_SSL_ASYNC_PRIVATE
1323
1338 //#define MBEDTLS_SSL_DEBUG_ALL
1339
1356 #define MBEDTLS_SSL_ENCRYPT_THEN_MAC
1357
1374 #define MBEDTLS_SSL_EXTENDED_MASTER_SECRET
1375
1391 #define MBEDTLS_SSL_FALLBACK_SCSV
1392
1401 //#define MBEDTLS_SSL_HW_RECORD_ACCEL
1402
1413 #define MBEDTLS_SSL_CBC_RECORD_SPLITTING
1414
1435 #define MBEDTLS_SSL_RENEGOTIATION
1436
1445 //#define MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
1446
1455 //#define MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE
1456
1464 #define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
1465
1476 //#define MBEDTLS_SSL_PROTO_SSL3
1477
1488 #define MBEDTLS_SSL_PROTO_TLS1
1489
1500 #define MBEDTLS_SSL_PROTO_TLS1_1
1501
1512 #define MBEDTLS_SSL_PROTO_TLS1_2
1513
1527 #define MBEDTLS_SSL_PROTO_DTLS
1528
1536 #define MBEDTLS_SSL_ALPN
1537
1551 #define MBEDTLS_SSL_DTLS_ANTI_REPLAY
1552
1569 #define MBEDTLS_SSL_DTLS_HELLO_VERIFY
1570
1585 #define MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE
1586
1596 #define MBEDTLS_SSL_DTLS_BADMAC_LIMIT
1597
1610 #define MBEDTLS_SSL_SESSION_TICKETS
1611
1620 #define MBEDTLS_SSL_EXPORT_KEYS
1621
1631 #define MBEDTLS_SSL_SERVER_NAME_INDICATION
1632
1640 #define MBEDTLS_SSL_TRUNCATED_HMAC
1641
1664 //#define MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT
1665
1675 //#define MBEDTLS_THREADING_ALT
1676
1686 #define MBEDTLS_THREADING_PTHREAD
1687
1699 #define MBEDTLS_VERSION_FEATURES
1700
1709 //#define MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3
1710
1721 //#define MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
1722
1735 #define MBEDTLS_X509_CHECK_KEY_USAGE
1736
1748 #define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE
1749
1758 #define MBEDTLS_X509_RSASSA_PSS_SUPPORT
1759
1783 //#define MBEDTLS_ZLIB_SUPPORT
1784 /* \} name SECTION: mbed TLS feature support */
1785
1805 #define MBEDTLS_AESNI_C
1806
1880 #define MBEDTLS_AES_C
1881
1908 #define MBEDTLS_ARC4_C
1909
1922 #define MBEDTLS_ASN1_PARSE_C
1923
1936 #define MBEDTLS_ASN1_WRITE_C
1937
1948 #define MBEDTLS_BASE64_C
1949
1965 #define MBEDTLS_BIGNUM_C
1966
1974 #define MBEDTLS_BLOWFISH_C
1975
2029 #define MBEDTLS_CAMELLIA_C
2030
2081 //#define MBEDTLS_ARIA_C
2082
2095 #define MBEDTLS_CCM_C
2096
2107 #define MBEDTLS_CERTS_C
2108
2116 #define MBEDTLS_CHACHA20_C
2117
2127 #define MBEDTLS_CHACHAPOLY_C
2128
2139 #define MBEDTLS_CIPHER_C
2140
2152 //#define MBEDTLS_CMAC_C
2153
2172 #define MBEDTLS_CTR_DRBG_C
2173
2186 #define MBEDTLS_DEBUG_C
2187
2215 #define MBEDTLS_DES_C
2216
2236 #define MBEDTLS_DHM_C
2237
2252 #define MBEDTLS_ECDH_C
2253
2267 #define MBEDTLS_ECDSA_C
2268
2286 //#define MBEDTLS_ECJPAKE_C
2287
2300 #define MBEDTLS_ECP_C
2301
2314 #define MBEDTLS_ENTROPY_C
2315
2326 #define MBEDTLS_ERROR_C
2327
2340 #define MBEDTLS_GCM_C
2341
2363 //#define MBEDTLS_HAVEGE_C
2364
2378 #define MBEDTLS_HKDF_C
2379
2392 #define MBEDTLS_HMAC_DRBG_C
2393
2405 //#define MBEDTLS_NIST_KW_C
2406
2417 #define MBEDTLS_MD_C
2418
2434 //#define MBEDTLS_MD2_C
2435
2451 //#define MBEDTLS_MD4_C
2452
2473 #define MBEDTLS_MD5_C
2474
2489 //#define MBEDTLS_MEMORY_BUFFER_ALLOC_C
2490
2508 #define MBEDTLS_NET_C
2509
2531 #define MBEDTLS_OID_C
2532
2545 #define MBEDTLS_PADLOCK_C
2546
2563 #define MBEDTLS_PEM_PARSE_C
2564
2579 #define MBEDTLS_PEM_WRITE_C
2580
2595 #define MBEDTLS_PK_C
2596
2610 #define MBEDTLS_PK_PARSE_C
2611
2624 #define MBEDTLS_PK_WRITE_C
2625
2637 #define MBEDTLS_PKCS5_C
2638
2652 //#define MBEDTLS_PKCS11_C
2653
2668 #define MBEDTLS_PKCS12_C
2669
2688 #define MBEDTLS_PLATFORM_C
2689
2698 #define MBEDTLS_POLY1305_C
2699
2709 #define MBEDTLS_RIPEMD160_C
2710
2728 #define MBEDTLS_RSA_C
2729
2750 #define MBEDTLS_SHA1_C
2751
2767 #define MBEDTLS_SHA256_C
2768
2782 #define MBEDTLS_SHA512_C
2783
2794 #define MBEDTLS_SSL_CACHE_C
2795
2804 #define MBEDTLS_SSL_COOKIE_C
2805
2816 #define MBEDTLS_SSL_TICKET_C
2817
2830 #define MBEDTLS_SSL_CLI_C
2831
2844 #define MBEDTLS_SSL_SRV_C
2845
2860 #define MBEDTLS_SSL_TLS_C
2861
2882 #define MBEDTLS_THREADING_C
2883
2905 #define MBEDTLS_TIMING_C
2906
2916 #define MBEDTLS_VERSION_C
2917
2933 #define MBEDTLS_X509_USE_C
2934
2949 #define MBEDTLS_X509_CRT_PARSE_C
2950
2963 #define MBEDTLS_X509_CRL_PARSE_C
2964
2977 #define MBEDTLS_X509_CSR_PARSE_C
2978
2990 #define MBEDTLS_X509_CREATE_C
2991
3003 #define MBEDTLS_X509_CRT_WRITE_C
3004
3016 #define MBEDTLS_X509_CSR_WRITE_C
3017
3026 #define MBEDTLS_XTEA_C
3027
3028 /* \} name SECTION: mbed TLS modules */
3029
3045 /* MPI / BIGNUM options */
3046 //#define MBEDTLS_MPI_WINDOW_SIZE 6 /**< Maximum windows size used. */
3047 //#define MBEDTLS_MPI_MAX_SIZE 1024 /**< Maximum number of bytes for usable MPIs. */
3048
3049 /* CTR_DRBG options */
3050 //#define MBEDTLS_CTR_DRBG_ENTROPY_LEN 48 /**< Amount of entropy used per seed by default (48 with SHA-512, 32 with SHA-256) */
3051 //#define MBEDTLS_CTR_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
3052 //#define MBEDTLS_CTR_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
3053 //#define MBEDTLS_CTR_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
3054 //#define MBEDTLS_CTR_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
3055
3056 /* HMAC_DRBG options */
3057 //#define MBEDTLS_HMAC_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
3058 //#define MBEDTLS_HMAC_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
3059 //#define MBEDTLS_HMAC_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
3060 //#define MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
3061
3062 /* ECP options */
3063 //#define MBEDTLS_ECP_MAX_BITS 521 /**< Maximum bit size of groups */
3064 //#define MBEDTLS_ECP_WINDOW_SIZE 6 /**< Maximum window size used */
3065 //#define MBEDTLS_ECP_FIXED_POINT_OPTIM 1 /**< Enable fixed-point speed-up */
3066
3067 /* Entropy options */
3068 //#define MBEDTLS_ENTROPY_MAX_SOURCES 20 /**< Maximum number of sources supported */
3069 //#define MBEDTLS_ENTROPY_MAX_GATHER 128 /**< Maximum amount requested from entropy sources */
3070 //#define MBEDTLS_ENTROPY_MIN_HARDWARE 32 /**< Default minimum number of bytes required for the hardware entropy source mbedtls_hardware_poll() before entropy is released */
3071
3072 /* Memory buffer allocator options */
3073 //#define MBEDTLS_MEMORY_ALIGN_MULTIPLE 4 /**< Align on multiples of this value */
3074
3075 /* Platform options */
3076 //#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. */
3077 //#define MBEDTLS_PLATFORM_STD_CALLOC calloc /**< Default allocator to use, can be undefined */
3078 //#define MBEDTLS_PLATFORM_STD_FREE free /**< Default free to use, can be undefined */
3079 //#define MBEDTLS_PLATFORM_STD_EXIT exit /**< Default exit to use, can be undefined */
3080 //#define MBEDTLS_PLATFORM_STD_TIME time /**< Default time to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
3081 //#define MBEDTLS_PLATFORM_STD_FPRINTF fprintf /**< Default fprintf to use, can be undefined */
3082 //#define MBEDTLS_PLATFORM_STD_PRINTF printf /**< Default printf to use, can be undefined */
3083 /* Note: your snprintf must correctly zero-terminate the buffer! */
3084 //#define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< Default snprintf to use, can be undefined */
3085 //#define MBEDTLS_PLATFORM_STD_EXIT_SUCCESS 0 /**< Default exit value to use, can be undefined */
3086 //#define MBEDTLS_PLATFORM_STD_EXIT_FAILURE 1 /**< Default exit value to use, can be undefined */
3087 //#define MBEDTLS_PLATFORM_STD_NV_SEED_READ mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
3088 //#define MBEDTLS_PLATFORM_STD_NV_SEED_WRITE mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
3089 //#define MBEDTLS_PLATFORM_STD_NV_SEED_FILE "seedfile" /**< Seed file to read/write with default implementation */
3090
3091 /* To Use Function Macros MBEDTLS_PLATFORM_C must be enabled */
3092 /* MBEDTLS_PLATFORM_XXX_MACRO and MBEDTLS_PLATFORM_XXX_ALT cannot both be defined */
3093 //#define MBEDTLS_PLATFORM_CALLOC_MACRO calloc /**< Default allocator macro to use, can be undefined */
3094 //#define MBEDTLS_PLATFORM_FREE_MACRO free /**< Default free macro to use, can be undefined */
3095 //#define MBEDTLS_PLATFORM_EXIT_MACRO exit /**< Default exit macro to use, can be undefined */
3096 //#define MBEDTLS_PLATFORM_TIME_MACRO time /**< Default time macro to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
3097 //#define MBEDTLS_PLATFORM_TIME_TYPE_MACRO time_t /**< Default time macro to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
3098 //#define MBEDTLS_PLATFORM_FPRINTF_MACRO fprintf /**< Default fprintf macro to use, can be undefined */
3099 //#define MBEDTLS_PLATFORM_PRINTF_MACRO printf /**< Default printf macro to use, can be undefined */
3100 /* Note: your snprintf must correctly zero-terminate the buffer! */
3101 //#define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf /**< Default snprintf macro to use, can be undefined */
3102 //#define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
3103 //#define MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
3104
3139 //#define MBEDTLS_PARAM_FAILED( cond ) assert( cond )
3140
3141 /* SSL Cache options */
3142 //#define MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT 86400 /**< 1 day */
3143 //#define MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /**< Maximum entries in cache */
3144
3145 /* SSL options */
3146
3171 //#define MBEDTLS_SSL_MAX_CONTENT_LEN 16384
3172
3196 //#define MBEDTLS_SSL_IN_CONTENT_LEN 16384
3197
3220 //#define MBEDTLS_SSL_OUT_CONTENT_LEN 16384
3221
3237 //#define MBEDTLS_SSL_DTLS_MAX_BUFFERING 32768
3238
3239 //#define MBEDTLS_SSL_DEFAULT_TICKET_LIFETIME 86400 /**< Lifetime of session tickets (if enabled) */
3240 //#define MBEDTLS_PSK_MAX_LEN 32 /**< Max size of TLS pre-shared keys, in bytes (default 256 bits) */
3241 //#define MBEDTLS_SSL_COOKIE_TIMEOUT 60 /**< Default expiration delay of DTLS cookies, in seconds if HAVE_TIME, or in number of cookies issued */
3242
3255 //#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
3256
3257 /* X509 options */
3258 //#define MBEDTLS_X509_MAX_INTERMEDIATE_CA 8 /**< Maximum number of intermediate CAs in a verification chain. */
3259 //#define MBEDTLS_X509_MAX_FILE_PATH_LEN 512 /**< Maximum length of a path/filename string in bytes including the null terminator character ('\0'). */
3260
3273 // #define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES
3274
3290 #define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE
3291
3310 //#define MBEDTLS_PLATFORM_ZEROIZE_ALT
3311
3329 //#define MBEDTLS_PLATFORM_GMTIME_R_ALT
3330
3331 /* \} name SECTION: Customisation configuration options */
3332
3333 /* Target and application specific configurations
3334 *
3335 * Allow user to override any previous default.
3336 *
3337 */
3338 #if defined(MBEDTLS_USER_CONFIG_FILE)
3339 #include MBEDTLS_USER_CONFIG_FILE
3340 #endif
3341
3342 #include "check_config.h"
3343
3344 #endif /* MBEDTLS_CONFIG_H */
check_config.h
Consistency checks for configuration options.