2
0

200-config.patch 6.7 KB

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