00001 00008 #ifndef XYSSL_CONFIG_H 00009 #define XYSSL_CONFIG_H 00010 00011 #ifndef _CRT_SECURE_NO_DEPRECATE 00012 #define _CRT_SECURE_NO_DEPRECATE 1 00013 #endif 00014 00015 /* 00016 * Uncomment if native integers are 8-bit wide. 00017 * 00018 #define XYSSL_HAVE_INT8 00019 */ 00020 00021 /* 00022 * Uncomment if native integers are 16-bit wide. 00023 * 00024 #define XYSSL_HAVE_INT16 00025 */ 00026 00027 /* 00028 * Uncomment if the compiler supports long long. 00029 * 00030 #define XYSSL_HAVE_LONGLONG 00031 */ 00032 00033 /* 00034 * Uncomment to enable the use of assembly code. 00035 */ 00036 #define XYSSL_HAVE_ASM 00037 00038 /* 00039 * Uncomment if the CPU supports SSE2 (IA-32 specific). 00040 * 00041 #define XYSSL_HAVE_SSE2 00042 */ 00043 00044 /* 00045 * Enable all SSL/TLS debugging messages. 00046 */ 00047 #define XYSSL_DEBUG_MSG 00048 00049 /* 00050 * Enable the checkup functions (*_self_test). 00051 */ 00052 #define XYSSL_SELF_TEST 00053 00054 /* 00055 * Enable the prime-number generation code. 00056 */ 00057 #define XYSSL_GENPRIME 00058 00059 /* 00060 * Uncomment this macro to store the AES tables in ROM. 00061 * 00062 #define XYSSL_AES_ROM_TABLES 00063 */ 00064 00065 /* 00066 * Module: library/aes.c 00067 * Caller: library/ssl_tls.c 00068 * 00069 * This module enables the following ciphersuites: 00070 * SSL_RSA_AES_128_SHA 00071 * SSL_RSA_AES_256_SHA 00072 * SSL_EDH_RSA_AES_256_SHA 00073 */ 00074 #define XYSSL_AES_C 00075 00076 /* 00077 * Module: library/arc4.c 00078 * Caller: library/ssl_tls.c 00079 * 00080 * This module enables the following ciphersuites: 00081 * SSL_RSA_RC4_128_MD5 00082 * SSL_RSA_RC4_128_SHA 00083 */ 00084 #define XYSSL_ARC4_C 00085 00086 /* 00087 * Module: library/base64.c 00088 * Caller: library/x509parse.c 00089 * 00090 * This module is required for X.509 support. 00091 */ 00092 #define XYSSL_BASE64_C 00093 00094 /* 00095 * Module: library/bignum.c 00096 * Caller: library/dhm.c 00097 * library/rsa.c 00098 * library/ssl_tls.c 00099 * library/x509parse.c 00100 * 00101 * This module is required for RSA and DHM support. 00102 */ 00103 #define XYSSL_BIGNUM_C 00104 00105 /* 00106 * Module: library/certs.c 00107 * Caller: 00108 * 00109 * This module is used for testing (ssl_client/server). 00110 */ 00111 #define XYSSL_CERTS_C 00112 00113 /* 00114 * Module: library/debug.c 00115 * Caller: library/ssl_cli.c 00116 * library/ssl_srv.c 00117 * library/ssl_tls.c 00118 * 00119 * This module provides debugging functions. 00120 */ 00121 #define XYSSL_DEBUG_C 00122 00123 /* 00124 * Module: library/des.c 00125 * Caller: library/ssl_tls.c 00126 * 00127 * This module enables the following ciphersuites: 00128 * SSL_RSA_DES_168_SHA 00129 * SSL_EDH_RSA_DES_168_SHA 00130 */ 00131 #define XYSSL_DES_C 00132 00133 /* 00134 * Module: library/dhm.c 00135 * Caller: library/ssl_cli.c 00136 * library/ssl_srv.c 00137 * 00138 * This module enables the following ciphersuites: 00139 * SSL_EDH_RSA_DES_168_SHA 00140 * SSL_EDH_RSA_AES_256_SHA 00141 */ 00142 #define XYSSL_DHM_C 00143 00144 /* 00145 * Module: library/havege.c 00146 * Caller: 00147 * 00148 * This module enables the HAVEGE random number generator. 00149 */ 00150 #define XYSSL_HAVEGE_C 00151 00152 /* 00153 * Module: library/md2.c 00154 * Caller: library/x509parse.c 00155 * 00156 * Uncomment to enable support for (rare) MD2-signed X.509 certs. 00157 * 00158 #define XYSSL_MD2_C 00159 */ 00160 00161 /* 00162 * Module: library/md4.c 00163 * Caller: library/x509parse.c 00164 * 00165 * Uncomment to enable support for (rare) MD4-signed X.509 certs. 00166 * 00167 #define XYSSL_MD4_C 00168 */ 00169 00170 /* 00171 * Module: library/md5.c 00172 * Caller: library/ssl_tls.c 00173 * library/x509parse.c 00174 * 00175 * This module is required for SSL/TLS and X.509. 00176 */ 00177 #define XYSSL_MD5_C 00178 00179 /* 00180 * Module: library/net.c 00181 * Caller: 00182 * 00183 * This module provides TCP/IP networking routines. 00184 */ 00185 #define XYSSL_NET_C 00186 00187 /* 00188 * Module: library/padlock.c 00189 * Caller: library/aes.c 00190 * 00191 * This modules adds support for the VIA PadLock on x86. 00192 */ 00193 #define XYSSL_PADLOCK_C 00194 00195 /* 00196 * Module: library/rsa.c 00197 * Caller: library/ssl_cli.c 00198 * library/ssl_srv.c 00199 * library/ssl_tls.c 00200 * library/x509.c 00201 * 00202 * This module is required for SSL/TLS and MD5-signed certificates. 00203 */ 00204 #define XYSSL_RSA_C 00205 00206 /* 00207 * Module: library/sha1.c 00208 * Caller: library/ssl_cli.c 00209 * library/ssl_srv.c 00210 * library/ssl_tls.c 00211 * library/x509parse.c 00212 * 00213 * This module is required for SSL/TLS and SHA1-signed certificates. 00214 */ 00215 #define XYSSL_SHA1_C 00216 00217 /* 00218 * Module: library/sha2.c 00219 * Caller: 00220 * 00221 * This module adds support for SHA-224 and SHA-256. 00222 */ 00223 #define XYSSL_SHA2_C 00224 00225 /* 00226 * Module: library/sha4.c 00227 * Caller: 00228 * 00229 * This module adds support for SHA-384 and SHA-512. 00230 */ 00231 #define XYSSL_SHA4_C 00232 00233 /* 00234 * Module: library/ssl_cli.c 00235 * Caller: 00236 * 00237 * This module is required for SSL/TLS client support. 00238 */ 00239 #define XYSSL_SSL_CLI_C 00240 00241 /* 00242 * Module: library/ssl_srv.c 00243 * Caller: 00244 * 00245 * This module is required for SSL/TLS server support. 00246 */ 00247 #define XYSSL_SSL_SRV_C 00248 00249 /* 00250 * Module: library/ssl_tls.c 00251 * Caller: library/ssl_cli.c 00252 * library/ssl_srv.c 00253 * 00254 * This module is required for SSL/TLS. 00255 */ 00256 #define XYSSL_SSL_TLS_C 00257 00258 /* 00259 * Module: library/timing.c 00260 * Caller: library/havege.c 00261 * 00262 * This module is used by the HAVEGE random number generator. 00263 */ 00264 #define XYSSL_TIMING_C 00265 00266 /* 00267 * Module: library/x509parse.c 00268 * Caller: library/ssl_cli.c 00269 * library/ssl_srv.c 00270 * library/ssl_tls.c 00271 * 00272 * This module is required for X.509 certificate parsing. 00273 */ 00274 #define XYSSL_X509_PARSE_C 00275 00276 /* 00277 * Module: library/x509_write.c 00278 * Caller: 00279 * 00280 * This module is required for X.509 certificate writing. 00281 */ 00282 #define XYSSL_X509_WRITE_C 00283 00284 #endif /* config.h */