No Description

config.h 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. /**
  2. * \file config.h
  3. *
  4. * This set of compile-time options may be used to enable
  5. * or disable features selectively, and reduce the global
  6. * memory footprint.
  7. */
  8. #ifndef XYSSL_CONFIG_H
  9. #define XYSSL_CONFIG_H
  10. #ifndef _CRT_SECURE_NO_DEPRECATE
  11. #define _CRT_SECURE_NO_DEPRECATE 1
  12. #endif
  13. /*
  14. * Uncomment if native integers are 8-bit wide.
  15. *
  16. #define XYSSL_HAVE_INT8
  17. */
  18. /*
  19. * Uncomment if native integers are 16-bit wide.
  20. *
  21. #define XYSSL_HAVE_INT16
  22. */
  23. /*
  24. * Uncomment if the compiler supports long long.
  25. *
  26. #define XYSSL_HAVE_LONGLONG
  27. */
  28. /*
  29. * Uncomment to enable the use of assembly code.
  30. */
  31. //#define XYSSL_HAVE_ASM
  32. /*
  33. * Uncomment if the CPU supports SSE2 (IA-32 specific).
  34. *
  35. #define XYSSL_HAVE_SSE2
  36. */
  37. /*
  38. * Enable all SSL/TLS debugging messages.
  39. #define XYSSL_DEBUG_MSG
  40. */
  41. /*
  42. * Enable the checkup functions (*_self_test).
  43. */
  44. #define XYSSL_SELF_TEST
  45. /*
  46. * Enable the prime-number generation code.
  47. */
  48. #define XYSSL_GENPRIME
  49. /*
  50. * Uncomment this macro to store the AES tables in ROM.
  51. *
  52. #define XYSSL_AES_ROM_TABLES
  53. */
  54. /*
  55. * Module: library/aes.c
  56. * Caller: library/ssl_tls.c
  57. *
  58. * This module enables the following ciphersuites:
  59. * SSL_RSA_AES_128_SHA
  60. * SSL_RSA_AES_256_SHA
  61. * SSL_EDH_RSA_AES_256_SHA
  62. */
  63. #define XYSSL_AES_C
  64. /*
  65. * Module: library/arc4.c
  66. * Caller: library/ssl_tls.c
  67. *
  68. * This module enables the following ciphersuites:
  69. * SSL_RSA_RC4_128_MD5
  70. * SSL_RSA_RC4_128_SHA
  71. */
  72. #define XYSSL_ARC4_C
  73. /*
  74. * Module: library/base64.c
  75. * Caller: library/x509parse.c
  76. *
  77. * This module is required for X.509 support.
  78. */
  79. #define XYSSL_BASE64_C
  80. /*
  81. * Module: library/bignum.c
  82. * Caller: library/dhm.c
  83. * library/rsa.c
  84. * library/ssl_tls.c
  85. * library/x509parse.c
  86. *
  87. * This module is required for RSA and DHM support.
  88. */
  89. #define XYSSL_BIGNUM_C
  90. /*
  91. * Module: library/certs.c
  92. * Caller:
  93. *
  94. * This module is used for testing (ssl_client/server).
  95. */
  96. #define XYSSL_CERTS_C
  97. /*
  98. * Module: library/debug.c
  99. * Caller: library/ssl_cli.c
  100. * library/ssl_srv.c
  101. * library/ssl_tls.c
  102. *
  103. * This module provides debugging functions.
  104. #define XYSSL_DEBUG_C
  105. */
  106. /*
  107. * Module: library/des.c
  108. * Caller: library/ssl_tls.c
  109. *
  110. * This module enables the following ciphersuites:
  111. * SSL_RSA_DES_168_SHA
  112. * SSL_EDH_RSA_DES_168_SHA
  113. */
  114. #define XYSSL_DES_C
  115. /*
  116. * Module: library/dhm.c
  117. * Caller: library/ssl_cli.c
  118. * library/ssl_srv.c
  119. *
  120. * This module enables the following ciphersuites:
  121. * SSL_EDH_RSA_DES_168_SHA
  122. * SSL_EDH_RSA_AES_256_SHA
  123. */
  124. #define XYSSL_DHM_C
  125. /*
  126. * Module: library/havege.c
  127. * Caller:
  128. *
  129. * This module enables the HAVEGE random number generator.
  130. */
  131. #define XYSSL_HAVEGE_C
  132. /*
  133. * Module: library/md2.c
  134. * Caller: library/x509parse.c
  135. *
  136. * Uncomment to enable support for (rare) MD2-signed X.509 certs.
  137. *
  138. #define XYSSL_MD2_C
  139. */
  140. /*
  141. * Module: library/md4.c
  142. * Caller: library/x509parse.c
  143. *
  144. * Uncomment to enable support for (rare) MD4-signed X.509 certs.
  145. *
  146. #define XYSSL_MD4_C
  147. */
  148. /*
  149. * Module: library/md5.c
  150. * Caller: library/ssl_tls.c
  151. * library/x509parse.c
  152. *
  153. * This module is required for SSL/TLS and X.509.
  154. */
  155. #define XYSSL_MD5_C
  156. /*
  157. * Module: library/net.c
  158. * Caller:
  159. *
  160. * This module provides TCP/IP networking routines.
  161. */
  162. #define XYSSL_NET_C
  163. /*
  164. * Module: library/padlock.c
  165. * Caller: library/aes.c
  166. *
  167. * This modules adds support for the VIA PadLock on x86.
  168. */
  169. #define XYSSL_PADLOCK_C
  170. /*
  171. * Module: library/rsa.c
  172. * Caller: library/ssl_cli.c
  173. * library/ssl_srv.c
  174. * library/ssl_tls.c
  175. * library/x509.c
  176. *
  177. * This module is required for SSL/TLS and MD5-signed certificates.
  178. */
  179. #define XYSSL_RSA_C
  180. /*
  181. * Module: library/sha1.c
  182. * Caller: library/ssl_cli.c
  183. * library/ssl_srv.c
  184. * library/ssl_tls.c
  185. * library/x509parse.c
  186. *
  187. * This module is required for SSL/TLS and SHA1-signed certificates.
  188. */
  189. #define XYSSL_SHA1_C
  190. /*
  191. * Module: library/sha2.c
  192. * Caller:
  193. *
  194. * This module adds support for SHA-224 and SHA-256.
  195. */
  196. #define XYSSL_SHA2_C
  197. /*
  198. * Module: library/sha4.c
  199. * Caller:
  200. *
  201. * This module adds support for SHA-384 and SHA-512.
  202. */
  203. #define XYSSL_SHA4_C
  204. /*
  205. * Module: library/ssl_cli.c
  206. * Caller:
  207. *
  208. * This module is required for SSL/TLS client support.
  209. */
  210. #define XYSSL_SSL_CLI_C
  211. /*
  212. * Module: library/ssl_srv.c
  213. * Caller:
  214. *
  215. * This module is required for SSL/TLS server support.
  216. */
  217. #define XYSSL_SSL_SRV_C
  218. /*
  219. * Module: library/ssl_tls.c
  220. * Caller: library/ssl_cli.c
  221. * library/ssl_srv.c
  222. *
  223. * This module is required for SSL/TLS.
  224. */
  225. #define XYSSL_SSL_TLS_C
  226. /*
  227. * Module: library/timing.c
  228. * Caller: library/havege.c
  229. *
  230. * This module is used by the HAVEGE random number generator.
  231. */
  232. #define XYSSL_TIMING_C
  233. /*
  234. * Module: library/x509parse.c
  235. * Caller: library/ssl_cli.c
  236. * library/ssl_srv.c
  237. * library/ssl_tls.c
  238. *
  239. * This module is required for X.509 certificate parsing.
  240. */
  241. #define XYSSL_X509_PARSE_C
  242. /*
  243. * Module: library/x509_write.c
  244. * Caller:
  245. *
  246. * This module is required for X.509 certificate writing.
  247. */
  248. #define XYSSL_X509_WRITE_C
  249. #endif /* config.h */