200-config.patch 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. --- a/include/mbedtls/config.h
  2. +++ b/include/mbedtls/config.h
  3. @@ -599,19 +599,19 @@
  4. *
  5. * Comment macros to disable the curve and functions for it
  6. */
  7. -#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
  8. -#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
  9. +//#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
  10. +//#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
  11. #define MBEDTLS_ECP_DP_SECP256R1_ENABLED
  12. #define MBEDTLS_ECP_DP_SECP384R1_ENABLED
  13. -#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
  14. -#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
  15. -#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
  16. +//#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
  17. +//#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
  18. +//#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
  19. #define MBEDTLS_ECP_DP_SECP256K1_ENABLED
  20. -#define MBEDTLS_ECP_DP_BP256R1_ENABLED
  21. -#define MBEDTLS_ECP_DP_BP384R1_ENABLED
  22. -#define MBEDTLS_ECP_DP_BP512R1_ENABLED
  23. +//#define MBEDTLS_ECP_DP_BP256R1_ENABLED
  24. +//#define MBEDTLS_ECP_DP_BP384R1_ENABLED
  25. +//#define MBEDTLS_ECP_DP_BP512R1_ENABLED
  26. #define MBEDTLS_ECP_DP_CURVE25519_ENABLED
  27. -#define MBEDTLS_ECP_DP_CURVE448_ENABLED
  28. +//#define MBEDTLS_ECP_DP_CURVE448_ENABLED
  29. /**
  30. * \def MBEDTLS_ECP_NIST_OPTIM
  31. @@ -635,8 +635,8 @@
  32. * Requires: MBEDTLS_HMAC_DRBG_C
  33. *
  34. * Comment this macro to disable deterministic ECDSA.
  35. - */
  36. #define MBEDTLS_ECDSA_DETERMINISTIC
  37. + */
  38. /**
  39. * \def MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
  40. @@ -689,7 +689,7 @@
  41. * See dhm.h for more details.
  42. *
  43. */
  44. -#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
  45. +//#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
  46. /**
  47. * \def MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
  48. @@ -708,8 +708,8 @@
  49. * MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
  50. * MBEDTLS_TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA
  51. * MBEDTLS_TLS_ECDHE_PSK_WITH_RC4_128_SHA
  52. - */
  53. #define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
  54. + */
  55. /**
  56. * \def MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
  57. @@ -734,7 +734,7 @@
  58. * MBEDTLS_TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
  59. * MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
  60. */
  61. -#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
  62. +//#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
  63. /**
  64. * \def MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
  65. @@ -868,7 +868,7 @@
  66. * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
  67. * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
  68. */
  69. -#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
  70. +//#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
  71. /**
  72. * \def MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
  73. @@ -892,7 +892,7 @@
  74. * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
  75. * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
  76. */
  77. -#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
  78. +//#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
  79. /**
  80. * \def MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
  81. @@ -996,7 +996,7 @@
  82. * This option is only useful if both MBEDTLS_SHA256_C and
  83. * MBEDTLS_SHA512_C are defined. Otherwise the available hash module is used.
  84. */
  85. -//#define MBEDTLS_ENTROPY_FORCE_SHA256
  86. +#define MBEDTLS_ENTROPY_FORCE_SHA256
  87. /**
  88. * \def MBEDTLS_ENTROPY_NV_SEED
  89. @@ -1091,14 +1091,14 @@
  90. * Uncomment this macro to disable the use of CRT in RSA.
  91. *
  92. */
  93. -//#define MBEDTLS_RSA_NO_CRT
  94. +#define MBEDTLS_RSA_NO_CRT
  95. /**
  96. * \def MBEDTLS_SELF_TEST
  97. *
  98. * Enable the checkup functions (*_self_test).
  99. */
  100. -#define MBEDTLS_SELF_TEST
  101. +//#define MBEDTLS_SELF_TEST
  102. /**
  103. * \def MBEDTLS_SHA256_SMALLER
  104. @@ -1114,7 +1114,7 @@
  105. *
  106. * Uncomment to enable the smaller implementation of SHA256.
  107. */
  108. -//#define MBEDTLS_SHA256_SMALLER
  109. +#define MBEDTLS_SHA256_SMALLER
  110. /**
  111. * \def MBEDTLS_SSL_ALL_ALERT_MESSAGES
  112. @@ -1241,7 +1241,7 @@
  113. * configuration of this extension).
  114. *
  115. */
  116. -#define MBEDTLS_SSL_RENEGOTIATION
  117. +//#define MBEDTLS_SSL_RENEGOTIATION
  118. /**
  119. * \def MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
  120. @@ -1415,8 +1415,8 @@
  121. * callbacks are provided by MBEDTLS_SSL_TICKET_C.
  122. *
  123. * Comment this macro to disable support for SSL session tickets
  124. - */
  125. #define MBEDTLS_SSL_SESSION_TICKETS
  126. + */
  127. /**
  128. * \def MBEDTLS_SSL_EXPORT_KEYS
  129. @@ -1446,7 +1446,7 @@
  130. *
  131. * Comment this macro to disable support for truncated HMAC in SSL
  132. */
  133. -#define MBEDTLS_SSL_TRUNCATED_HMAC
  134. +//#define MBEDTLS_SSL_TRUNCATED_HMAC
  135. /**
  136. * \def MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT
  137. @@ -1504,8 +1504,8 @@
  138. * Requires: MBEDTLS_VERSION_C
  139. *
  140. * Comment this to disable run-time checking and save ROM space
  141. - */
  142. #define MBEDTLS_VERSION_FEATURES
  143. + */
  144. /**
  145. * \def MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3
  146. @@ -1835,7 +1835,7 @@
  147. * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
  148. * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
  149. */
  150. -#define MBEDTLS_CAMELLIA_C
  151. +//#define MBEDTLS_CAMELLIA_C
  152. /**
  153. * \def MBEDTLS_CCM_C
  154. @@ -1849,7 +1849,7 @@
  155. * This module enables the AES-CCM ciphersuites, if other requisites are
  156. * enabled as well.
  157. */
  158. -#define MBEDTLS_CCM_C
  159. +//#define MBEDTLS_CCM_C
  160. /**
  161. * \def MBEDTLS_CERTS_C
  162. @@ -1861,7 +1861,7 @@
  163. *
  164. * This module is used for testing (ssl_client/server).
  165. */
  166. -#define MBEDTLS_CERTS_C
  167. +//#define MBEDTLS_CERTS_C
  168. /**
  169. * \def MBEDTLS_CIPHER_C
  170. @@ -1914,7 +1914,7 @@
  171. *
  172. * This module provides debugging functions.
  173. */
  174. -#define MBEDTLS_DEBUG_C
  175. +//#define MBEDTLS_DEBUG_C
  176. /**
  177. * \def MBEDTLS_DES_C
  178. @@ -1943,7 +1943,7 @@
  179. * \warning DES is considered a weak cipher and its use constitutes a
  180. * security risk. We recommend considering stronger ciphers instead.
  181. */
  182. -#define MBEDTLS_DES_C
  183. +//#define MBEDTLS_DES_C
  184. /**
  185. * \def MBEDTLS_DHM_C
  186. @@ -2104,8 +2104,8 @@
  187. * Requires: MBEDTLS_MD_C
  188. *
  189. * Uncomment to enable the HMAC_DRBG random number geerator.
  190. - */
  191. #define MBEDTLS_HMAC_DRBG_C
  192. + */
  193. /**
  194. * \def MBEDTLS_MD_C
  195. @@ -2388,7 +2388,7 @@
  196. *
  197. * This module enables abstraction of common (libc) functions.
  198. */
  199. -#define MBEDTLS_PLATFORM_C
  200. +//#define MBEDTLS_PLATFORM_C
  201. /**
  202. * \def MBEDTLS_RIPEMD160_C
  203. @@ -2399,7 +2399,7 @@
  204. * Caller: library/md.c
  205. *
  206. */
  207. -#define MBEDTLS_RIPEMD160_C
  208. +//#define MBEDTLS_RIPEMD160_C
  209. /**
  210. * \def MBEDTLS_RSA_C
  211. @@ -2505,8 +2505,8 @@
  212. * Caller:
  213. *
  214. * Requires: MBEDTLS_CIPHER_C
  215. - */
  216. #define MBEDTLS_SSL_TICKET_C
  217. + */
  218. /**
  219. * \def MBEDTLS_SSL_CLI_C
  220. @@ -2605,8 +2605,8 @@
  221. * Module: library/version.c
  222. *
  223. * This module provides run-time version information.
  224. - */
  225. #define MBEDTLS_VERSION_C
  226. + */
  227. /**
  228. * \def MBEDTLS_X509_USE_C
  229. @@ -2716,7 +2716,7 @@
  230. * Module: library/xtea.c
  231. * Caller:
  232. */
  233. -#define MBEDTLS_XTEA_C
  234. +//#define MBEDTLS_XTEA_C
  235. /* \} name SECTION: mbed TLS modules */