PolarSSL v1.3.7
config.h
Go to the documentation of this file.
1 
31 #ifndef POLARSSL_CONFIG_H
32 #define POLARSSL_CONFIG_H
33 
34 #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
35 #define _CRT_SECURE_NO_DEPRECATE 1
36 #endif
37 
52 //#define POLARSSL_HAVE_INT8
53 
61 //#define POLARSSL_HAVE_INT16
62 
69 #define POLARSSL_HAVE_LONGLONG
70 
85 #define POLARSSL_HAVE_ASM
86 
94 //#define POLARSSL_HAVE_SSE2
95 
103 #define POLARSSL_HAVE_TIME
104 
115 #define POLARSSL_HAVE_IPV6
116 
133 //#define POLARSSL_PLATFORM_MEMORY
134 
151 //#define POLARSSL_PLATFORM_NO_STD_FUNCTIONS
152 
168 //#define POLARSSL_PLATFORM_PRINTF_ALT
169 //#define POLARSSL_PLATFORM_FPRINTF_ALT
170 /* \} name SECTION: System support */
171 
191 //#define POLARSSL_TIMING_ALT
192 
209 //#define POLARSSL_AES_ALT
210 //#define POLARSSL_ARC4_ALT
211 //#define POLARSSL_BLOWFISH_ALT
212 //#define POLARSSL_CAMELLIA_ALT
213 //#define POLARSSL_DES_ALT
214 //#define POLARSSL_XTEA_ALT
215 //#define POLARSSL_MD2_ALT
216 //#define POLARSSL_MD4_ALT
217 //#define POLARSSL_MD5_ALT
218 //#define POLARSSL_RIPEMD160_ALT
219 //#define POLARSSL_SHA1_ALT
220 //#define POLARSSL_SHA256_ALT
221 //#define POLARSSL_SHA512_ALT
222 
231 //#define POLARSSL_AES_ROM_TABLES
232 
238 #define POLARSSL_CIPHER_MODE_CBC
239 
245 #define POLARSSL_CIPHER_MODE_CFB
246 
252 #define POLARSSL_CIPHER_MODE_CTR
253 
285 //#define POLARSSL_CIPHER_NULL_CIPHER
286 
297 #define POLARSSL_CIPHER_PADDING_PKCS7
298 #define POLARSSL_CIPHER_PADDING_ONE_AND_ZEROS
299 #define POLARSSL_CIPHER_PADDING_ZEROS_AND_LEN
300 #define POLARSSL_CIPHER_PADDING_ZEROS
301 
315 //#define POLARSSL_ENABLE_WEAK_CIPHERSUITES
316 
325 #define POLARSSL_ECP_DP_SECP192R1_ENABLED
326 #define POLARSSL_ECP_DP_SECP224R1_ENABLED
327 #define POLARSSL_ECP_DP_SECP256R1_ENABLED
328 #define POLARSSL_ECP_DP_SECP384R1_ENABLED
329 #define POLARSSL_ECP_DP_SECP521R1_ENABLED
330 #define POLARSSL_ECP_DP_SECP192K1_ENABLED
331 #define POLARSSL_ECP_DP_SECP224K1_ENABLED
332 #define POLARSSL_ECP_DP_SECP256K1_ENABLED
333 #define POLARSSL_ECP_DP_BP256R1_ENABLED
334 #define POLARSSL_ECP_DP_BP384R1_ENABLED
335 #define POLARSSL_ECP_DP_BP512R1_ENABLED
336 //#define POLARSSL_ECP_DP_M221_ENABLED // Not implemented yet!
337 #define POLARSSL_ECP_DP_M255_ENABLED
338 //#define POLARSSL_ECP_DP_M383_ENABLED // Not implemented yet!
339 //#define POLARSSL_ECP_DP_M511_ENABLED // Not implemented yet!
340 
350 #define POLARSSL_ECP_NIST_OPTIM
351 
364 #define POLARSSL_ECDSA_DETERMINISTIC
365 
386 #define POLARSSL_KEY_EXCHANGE_PSK_ENABLED
387 
410 #define POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED
411 
430 #define POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED
431 
455 #define POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED
456 
483 #define POLARSSL_KEY_EXCHANGE_RSA_ENABLED
484 
509 #define POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED
510 
534 #define POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED
535 
558 #define POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
559 
582 #define POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
583 
606 #define POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED
607 
620 #define POLARSSL_PK_PARSE_EC_EXTENDED
621 
631 #define POLARSSL_ERROR_STRERROR_BC
632 
642 #define POLARSSL_ERROR_STRERROR_DUMMY
643 
651 #define POLARSSL_GENPRIME
652 
658 #define POLARSSL_FS_IO
659 
671 //#define POLARSSL_NO_DEFAULT_ENTROPY_SOURCES
672 
682 //#define POLARSSL_NO_PLATFORM_ENTROPY
683 
698 //#define POLARSSL_ENTROPY_FORCE_SHA256
699 
711 //#define POLARSSL_MEMORY_DEBUG
712 
723 //#define POLARSSL_MEMORY_BACKTRACE
724 
734 #define POLARSSL_PKCS1_V15
735 
745 #define POLARSSL_PKCS1_V21
746 
755 //#define POLARSSL_RSA_NO_CRT
756 
762 #define POLARSSL_SELF_TEST
763 
776 #define POLARSSL_SSL_ALERT_MESSAGES
777 
792 //#define POLARSSL_SSL_DEBUG_ALL
793 
802 //#define POLARSSL_SSL_HW_RECORD_ACCEL
803 
812 #define POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
813 
822 //#define POLARSSL_SSL_SRV_RESPECT_CLIENT_PREFERENCE
823 
831 #define POLARSSL_SSL_MAX_FRAGMENT_LENGTH
832 
843 #define POLARSSL_SSL_PROTO_SSL3
844 
855 #define POLARSSL_SSL_PROTO_TLS1
856 
867 #define POLARSSL_SSL_PROTO_TLS1_1
868 
879 #define POLARSSL_SSL_PROTO_TLS1_2
880 
889 #define POLARSSL_SSL_ALPN
890 
902 #define POLARSSL_SSL_SESSION_TICKETS
903 
911 #define POLARSSL_SSL_SERVER_NAME_INDICATION
912 
920 #define POLARSSL_SSL_TRUNCATED_HMAC
921 
934 //#define POLARSSL_SSL_SET_CURVES
935 
945 //#define POLARSSL_THREADING_ALT
946 
956 //#define POLARSSL_THREADING_PTHREAD
957 
969 #define POLARSSL_VERSION_FEATURES
970 
979 //#define POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3
980 
989 //#define POLARSSL_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
990 
1003 #define POLARSSL_X509_CHECK_KEY_USAGE
1004 
1016 #define POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE
1017 
1036 //#define POLARSSL_ZLIB_SUPPORT
1037 /* \} name SECTION: PolarSSL feature support */
1038 
1058 #define POLARSSL_AESNI_C
1059 
1133 #define POLARSSL_AES_C
1134 
1156 #define POLARSSL_ARC4_C
1157 
1170 #define POLARSSL_ASN1_PARSE_C
1171 
1184 #define POLARSSL_ASN1_WRITE_C
1185 
1196 #define POLARSSL_BASE64_C
1197 
1211 #define POLARSSL_BIGNUM_C
1212 
1220 #define POLARSSL_BLOWFISH_C
1221 
1275 #define POLARSSL_CAMELLIA_C
1276 
1289 #define POLARSSL_CERTS_C
1290 
1301 #define POLARSSL_CIPHER_C
1302 
1315 #define POLARSSL_CTR_DRBG_C
1316 
1329 #define POLARSSL_DEBUG_C
1330 
1355 #define POLARSSL_DES_C
1356 
1369 #define POLARSSL_DHM_C
1370 
1385 #define POLARSSL_ECDH_C
1386 
1400 #define POLARSSL_ECDSA_C
1401 
1413 #define POLARSSL_ECP_C
1414 
1427 #define POLARSSL_ENTROPY_C
1428 
1439 #define POLARSSL_ERROR_C
1440 
1453 #define POLARSSL_GCM_C
1454 
1476 //#define POLARSSL_HAVEGE_C
1477 
1490 #define POLARSSL_HMAC_DRBG_C
1491 
1502 #define POLARSSL_MD_C
1503 
1514 //#define POLARSSL_MD2_C
1515 
1526 //#define POLARSSL_MD4_C
1527 
1541 #define POLARSSL_MD5_C
1542 
1547 //#define POLARSSL_MEMORY_C
1548 
1563 //#define POLARSSL_MEMORY_BUFFER_ALLOC_C
1564 
1574 #define POLARSSL_NET_C
1575 
1597 #define POLARSSL_OID_C
1598 
1611 #define POLARSSL_PADLOCK_C
1612 
1625 #define POLARSSL_PBKDF2_C
1626 
1643 #define POLARSSL_PEM_PARSE_C
1644 
1659 #define POLARSSL_PEM_WRITE_C
1660 
1675 #define POLARSSL_PK_C
1676 
1690 #define POLARSSL_PK_PARSE_C
1691 
1704 #define POLARSSL_PK_WRITE_C
1705 
1717 #define POLARSSL_PKCS5_C
1718 
1732 //#define POLARSSL_PKCS11_C
1733 
1748 #define POLARSSL_PKCS12_C
1749 
1761 #define POLARSSL_PLATFORM_C
1762 
1772 #define POLARSSL_RIPEMD160_C
1773 
1790 #define POLARSSL_RSA_C
1791 
1806 #define POLARSSL_SHA1_C
1807 
1824 #define POLARSSL_SHA256_C
1825 
1840 #define POLARSSL_SHA512_C
1841 
1852 #define POLARSSL_SSL_CACHE_C
1853 
1866 #define POLARSSL_SSL_CLI_C
1867 
1880 #define POLARSSL_SSL_SRV_C
1881 
1896 #define POLARSSL_SSL_TLS_C
1897 
1917 //#define POLARSSL_THREADING_C
1918 
1929 #define POLARSSL_TIMING_C
1930 
1940 #define POLARSSL_VERSION_C
1941 
1957 #define POLARSSL_X509_USE_C
1958 
1973 #define POLARSSL_X509_CRT_PARSE_C
1974 
1987 #define POLARSSL_X509_CRL_PARSE_C
1988 
2001 #define POLARSSL_X509_CSR_PARSE_C
2002 
2014 #define POLARSSL_X509_CREATE_C
2015 
2027 #define POLARSSL_X509_CRT_WRITE_C
2028 
2040 #define POLARSSL_X509_CSR_WRITE_C
2041 
2050 #define POLARSSL_XTEA_C
2051 
2052 /* \} name SECTION: PolarSSL modules */
2053 
2069 /* MPI / BIGNUM options */
2070 //#define POLARSSL_MPI_WINDOW_SIZE 6 /**< Maximum windows size used. */
2071 //#define POLARSSL_MPI_MAX_SIZE 512 /**< Maximum number of bytes for usable MPIs. */
2072 
2073 /* CTR_DRBG options */
2074 //#define CTR_DRBG_ENTROPY_LEN 48 /**< Amount of entropy used per seed by default (48 with SHA-512, 32 with SHA-256) */
2075 //#define CTR_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
2076 //#define CTR_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
2077 //#define CTR_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
2078 //#define CTR_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
2079 
2080 /* HMAC_DRBG options */
2081 //#define POLARSSL_HMAC_DRBG_RESEED_INTERVAL 10000 /**< Interval before reseed is performed by default */
2082 //#define POLARSSL_HMAC_DRBG_MAX_INPUT 256 /**< Maximum number of additional input bytes */
2083 //#define POLARSSL_HMAC_DRBG_MAX_REQUEST 1024 /**< Maximum number of requested bytes per call */
2084 //#define POLARSSL_HMAC_DRBG_MAX_SEED_INPUT 384 /**< Maximum size of (re)seed buffer */
2085 
2086 /* ECP options */
2087 //#define POLARSSL_ECP_MAX_BITS 521 /**< Maximum bit size of groups */
2088 //#define POLARSSL_ECP_WINDOW_SIZE 6 /**< Maximum window size used */
2089 //#define POLARSSL_ECP_FIXED_POINT_OPTIM 1 /**< Enable fixed-point speed-up */
2090 
2091 /* Entropy options */
2092 //#define ENTROPY_MAX_SOURCES 20 /**< Maximum number of sources supported */
2093 //#define ENTROPY_MAX_GATHER 128 /**< Maximum amount requested from entropy sources */
2094 
2095 /* Memory buffer allocator options */
2096 //#define MEMORY_ALIGN_MULTIPLE 4 /**< Align on multiples of this value */
2097 
2098 /* Platform options */
2099 //#define POLARSSL_PLATFORM_STD_MEM_HDR <stdlib.h> /**< Header to include if POLARSSL_PLATFORM_NO_STD_FUNCTIONS is defined. Don't define if no header is needed. */
2100 //#define POLARSSL_PLATFORM_STD_MALLOC malloc /**< Default allocator to use, can be undefined */
2101 //#define POLARSSL_PLATFORM_STD_FREE free /**< Default free to use, can be undefined */
2102 //#define POLARSSL_PLATFORM_STD_PRINTF printf /**< Default printf to use, can be undefined */
2103 //#define POLARSSL_PLATFORM_STD_FPRINTF fprintf /**< Default fprintf to use, can be undefined */
2104 
2105 /* SSL Cache options */
2106 //#define SSL_CACHE_DEFAULT_TIMEOUT 86400 /**< 1 day */
2107 //#define SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /**< Maximum entries in cache */
2108 
2109 /* SSL options */
2110 //#define SSL_MAX_CONTENT_LEN 16384 /**< Size of the input / output buffer */
2111 //#define SSL_DEFAULT_TICKET_LIFETIME 86400 /**< Lifetime of session tickets (if enabled) */
2112 
2113 /* Debug options */
2114 //#define POLARSSL_DEBUG_DFL_MODE POLARSSL_DEBUG_LOG_FULL /**< Default log: Full or Raw */
2115 
2116 /* \} name SECTION: Module configuration options */
2117 
2118 #include "check_config.h"
2119 
2120 #endif /* POLARSSL_CONFIG_H */
Consistency checks for configuration options.