200-config.patch 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. --- a/include/mbedtls/config.h
  2. +++ b/include/mbedtls/config.h
  3. @@ -191,7 +191,7 @@
  4. *
  5. * Uncomment to get errors on using deprecated functions.
  6. */
  7. -//#define MBEDTLS_DEPRECATED_REMOVED
  8. +#define MBEDTLS_DEPRECATED_REMOVED
  9. /* \} name SECTION: System support */
  10. @@ -347,7 +347,7 @@
  11. *
  12. * Enable Cipher Feedback mode (CFB) for symmetric ciphers.
  13. */
  14. -#define MBEDTLS_CIPHER_MODE_CFB
  15. +//#define MBEDTLS_CIPHER_MODE_CFB
  16. /**
  17. * \def MBEDTLS_CIPHER_MODE_CTR
  18. @@ -441,17 +441,17 @@
  19. *
  20. * Comment macros to disable the curve and functions for it
  21. */
  22. -#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
  23. -#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
  24. +//#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
  25. +//#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
  26. #define MBEDTLS_ECP_DP_SECP256R1_ENABLED
  27. #define MBEDTLS_ECP_DP_SECP384R1_ENABLED
  28. -#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
  29. -#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
  30. -#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
  31. +//#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
  32. +//#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
  33. +//#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
  34. #define MBEDTLS_ECP_DP_SECP256K1_ENABLED
  35. -#define MBEDTLS_ECP_DP_BP256R1_ENABLED
  36. -#define MBEDTLS_ECP_DP_BP384R1_ENABLED
  37. -#define MBEDTLS_ECP_DP_BP512R1_ENABLED
  38. +//#define MBEDTLS_ECP_DP_BP256R1_ENABLED
  39. +//#define MBEDTLS_ECP_DP_BP384R1_ENABLED
  40. +//#define MBEDTLS_ECP_DP_BP512R1_ENABLED
  41. #define MBEDTLS_ECP_DP_CURVE25519_ENABLED
  42. /**
  43. @@ -476,8 +476,8 @@
  44. * Requires: MBEDTLS_HMAC_DRBG_C
  45. *
  46. * Comment this macro to disable deterministic ECDSA.
  47. - */
  48. #define MBEDTLS_ECDSA_DETERMINISTIC
  49. + */
  50. /**
  51. * \def MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
  52. @@ -523,7 +523,7 @@
  53. * MBEDTLS_TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA
  54. * MBEDTLS_TLS_DHE_PSK_WITH_RC4_128_SHA
  55. */
  56. -#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
  57. +//#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
  58. /**
  59. * \def MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
  60. @@ -542,8 +542,8 @@
  61. * MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
  62. * MBEDTLS_TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA
  63. * MBEDTLS_TLS_ECDHE_PSK_WITH_RC4_128_SHA
  64. - */
  65. #define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
  66. + */
  67. /**
  68. * \def MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
  69. @@ -568,7 +568,7 @@
  70. * MBEDTLS_TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
  71. * MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
  72. */
  73. -#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
  74. +//#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
  75. /**
  76. * \def MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
  77. @@ -695,7 +695,7 @@
  78. * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
  79. * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
  80. */
  81. -#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
  82. +//#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
  83. /**
  84. * \def MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
  85. @@ -719,7 +719,7 @@
  86. * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
  87. * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
  88. */
  89. -#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
  90. +//#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
  91. /**
  92. * \def MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
  93. @@ -823,7 +823,7 @@
  94. * This option is only useful if both MBEDTLS_SHA256_C and
  95. * MBEDTLS_SHA512_C are defined. Otherwise the available hash module is used.
  96. */
  97. -//#define MBEDTLS_ENTROPY_FORCE_SHA256
  98. +#define MBEDTLS_ENTROPY_FORCE_SHA256
  99. /**
  100. * \def MBEDTLS_ENTROPY_NV_SEED
  101. @@ -917,14 +917,14 @@
  102. * Uncomment this macro to disable the use of CRT in RSA.
  103. *
  104. */
  105. -//#define MBEDTLS_RSA_NO_CRT
  106. +#define MBEDTLS_RSA_NO_CRT
  107. /**
  108. * \def MBEDTLS_SELF_TEST
  109. *
  110. * Enable the checkup functions (*_self_test).
  111. */
  112. -#define MBEDTLS_SELF_TEST
  113. +//#define MBEDTLS_SELF_TEST
  114. /**
  115. * \def MBEDTLS_SHA256_SMALLER
  116. @@ -940,7 +940,7 @@
  117. *
  118. * Uncomment to enable the smaller implementation of SHA256.
  119. */
  120. -//#define MBEDTLS_SHA256_SMALLER
  121. +#define MBEDTLS_SHA256_SMALLER
  122. /**
  123. * \def MBEDTLS_SSL_ALL_ALERT_MESSAGES
  124. @@ -1059,8 +1059,8 @@
  125. * misuse/misunderstand.
  126. *
  127. * Comment this to disable support for renegotiation.
  128. - */
  129. #define MBEDTLS_SSL_RENEGOTIATION
  130. + */
  131. /**
  132. * \def MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
  133. @@ -1234,8 +1234,8 @@
  134. * callbacks are provided by MBEDTLS_SSL_TICKET_C.
  135. *
  136. * Comment this macro to disable support for SSL session tickets
  137. - */
  138. #define MBEDTLS_SSL_SESSION_TICKETS
  139. + */
  140. /**
  141. * \def MBEDTLS_SSL_EXPORT_KEYS
  142. @@ -1265,7 +1265,7 @@
  143. *
  144. * Comment this macro to disable support for truncated HMAC in SSL
  145. */
  146. -#define MBEDTLS_SSL_TRUNCATED_HMAC
  147. +//#define MBEDTLS_SSL_TRUNCATED_HMAC
  148. /**
  149. * \def MBEDTLS_THREADING_ALT
  150. @@ -1299,8 +1299,8 @@
  151. * Requires: MBEDTLS_VERSION_C
  152. *
  153. * Comment this to disable run-time checking and save ROM space
  154. - */
  155. #define MBEDTLS_VERSION_FEATURES
  156. + */
  157. /**
  158. * \def MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3
  159. @@ -1621,7 +1621,7 @@
  160. * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
  161. * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
  162. */
  163. -#define MBEDTLS_CAMELLIA_C
  164. +//#define MBEDTLS_CAMELLIA_C
  165. /**
  166. * \def MBEDTLS_CCM_C
  167. @@ -1635,7 +1635,7 @@
  168. * This module enables the AES-CCM ciphersuites, if other requisites are
  169. * enabled as well.
  170. */
  171. -#define MBEDTLS_CCM_C
  172. +//#define MBEDTLS_CCM_C
  173. /**
  174. * \def MBEDTLS_CERTS_C
  175. @@ -1647,7 +1647,7 @@
  176. *
  177. * This module is used for testing (ssl_client/server).
  178. */
  179. -#define MBEDTLS_CERTS_C
  180. +//#define MBEDTLS_CERTS_C
  181. /**
  182. * \def MBEDTLS_CIPHER_C
  183. @@ -1700,7 +1700,7 @@
  184. *
  185. * This module provides debugging functions.
  186. */
  187. -#define MBEDTLS_DEBUG_C
  188. +//#define MBEDTLS_DEBUG_C
  189. /**
  190. * \def MBEDTLS_DES_C
  191. @@ -1725,8 +1725,8 @@
  192. * MBEDTLS_TLS_PSK_WITH_3DES_EDE_CBC_SHA
  193. *
  194. * PEM_PARSE uses DES/3DES for decrypting encrypted keys.
  195. - */
  196. #define MBEDTLS_DES_C
  197. + */
  198. /**
  199. * \def MBEDTLS_DHM_C
  200. @@ -1880,8 +1880,8 @@
  201. * Requires: MBEDTLS_MD_C
  202. *
  203. * Uncomment to enable the HMAC_DRBG random number geerator.
  204. - */
  205. #define MBEDTLS_HMAC_DRBG_C
  206. + */
  207. /**
  208. * \def MBEDTLS_MD_C
  209. @@ -2158,7 +2158,7 @@
  210. * Caller: library/mbedtls_md.c
  211. *
  212. */
  213. -#define MBEDTLS_RIPEMD160_C
  214. +//#define MBEDTLS_RIPEMD160_C
  215. /**
  216. * \def MBEDTLS_RSA_C
  217. @@ -2235,8 +2235,8 @@
  218. * Caller:
  219. *
  220. * Requires: MBEDTLS_SSL_CACHE_C
  221. - */
  222. #define MBEDTLS_SSL_CACHE_C
  223. + */
  224. /**
  225. * \def MBEDTLS_SSL_COOKIE_C
  226. @@ -2257,8 +2257,8 @@
  227. * Caller:
  228. *
  229. * Requires: MBEDTLS_CIPHER_C
  230. - */
  231. #define MBEDTLS_SSL_TICKET_C
  232. + */
  233. /**
  234. * \def MBEDTLS_SSL_CLI_C
  235. @@ -2357,8 +2357,8 @@
  236. * Module: library/version.c
  237. *
  238. * This module provides run-time version information.
  239. - */
  240. #define MBEDTLS_VERSION_C
  241. + */
  242. /**
  243. * \def MBEDTLS_X509_USE_C
  244. @@ -2468,7 +2468,7 @@
  245. * Module: library/xtea.c
  246. * Caller:
  247. */
  248. -#define MBEDTLS_XTEA_C
  249. +//#define MBEDTLS_XTEA_C
  250. /* \} name SECTION: mbed TLS modules */