200-config.patch 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. --- a/include/mbedtls/config.h
  2. +++ b/include/mbedtls/config.h
  3. @@ -181,7 +181,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. @@ -320,7 +320,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. @@ -413,13 +413,13 @@
  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_SECP192K1_ENABLED
  32. +//#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
  33. #define MBEDTLS_ECP_DP_SECP256K1_ENABLED
  34. #define MBEDTLS_ECP_DP_BP256R1_ENABLED
  35. #define MBEDTLS_ECP_DP_BP384R1_ENABLED
  36. @@ -435,7 +435,7 @@
  37. *
  38. * Comment this macro to disable NIST curves optimisation.
  39. */
  40. -#define MBEDTLS_ECP_NIST_OPTIM
  41. +//#define MBEDTLS_ECP_NIST_OPTIM
  42. /**
  43. * \def MBEDTLS_ECDSA_DETERMINISTIC
  44. @@ -443,7 +443,7 @@
  45. * Enable deterministic ECDSA (RFC 6979).
  46. * Standard ECDSA is "fragile" in the sense that lack of entropy when signing
  47. * may result in a compromise of the long-term signing key. This is avoided by
  48. - * the deterministic variant.
  49. + DH * the deterministic variant.
  50. *
  51. * Requires: MBEDTLS_HMAC_DRBG_C
  52. *
  53. @@ -495,7 +495,7 @@
  54. * MBEDTLS_TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA
  55. * MBEDTLS_TLS_DHE_PSK_WITH_RC4_128_SHA
  56. */
  57. -#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
  58. +//#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
  59. /**
  60. * \def MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
  61. @@ -540,7 +540,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. @@ -594,7 +594,7 @@
  70. * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
  71. * MBEDTLS_TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
  72. */
  73. -#define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
  74. +//#define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
  75. /**
  76. * \def MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
  77. @@ -667,7 +667,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. @@ -691,7 +691,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_PK_PARSE_EC_EXTENDED
  93. @@ -810,7 +810,7 @@
  94. *
  95. * Comment this macro to disable support for external private RSA keys.
  96. */
  97. -#define MBEDTLS_PK_RSA_ALT_SUPPORT
  98. +//#define MBEDTLS_PK_RSA_ALT_SUPPORT
  99. /**
  100. * \def MBEDTLS_PKCS1_V15
  101. @@ -842,14 +842,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. @@ -865,7 +865,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_AEAD_RANDOM_IV
  124. @@ -1038,7 +1038,7 @@
  125. *
  126. * Comment this macro to disable support for SSL 3.0
  127. */
  128. -#define MBEDTLS_SSL_PROTO_SSL3
  129. +//#define MBEDTLS_SSL_PROTO_SSL3
  130. /**
  131. * \def MBEDTLS_SSL_PROTO_TLS1
  132. @@ -1176,7 +1176,7 @@
  133. *
  134. * Comment this macro to disable support for truncated HMAC in SSL
  135. */
  136. -#define MBEDTLS_SSL_TRUNCATED_HMAC
  137. +//#define MBEDTLS_SSL_TRUNCATED_HMAC
  138. /**
  139. * \def MBEDTLS_THREADING_ALT
  140. @@ -1410,7 +1410,7 @@
  141. * MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
  142. * MBEDTLS_TLS_PSK_WITH_RC4_128_SHA
  143. */
  144. -#define MBEDTLS_ARC4_C
  145. +//#define MBEDTLS_ARC4_C
  146. /**
  147. * \def MBEDTLS_ASN1_PARSE_C
  148. @@ -1475,7 +1475,7 @@
  149. *
  150. * Module: library/blowfish.c
  151. */
  152. -#define MBEDTLS_BLOWFISH_C
  153. +//#define MBEDTLS_BLOWFISH_C
  154. /**
  155. * \def MBEDTLS_CAMELLIA_C
  156. @@ -1530,7 +1530,7 @@
  157. * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
  158. * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
  159. */
  160. -#define MBEDTLS_CAMELLIA_C
  161. +//#define MBEDTLS_CAMELLIA_C
  162. /**
  163. * \def MBEDTLS_CCM_C
  164. @@ -1544,7 +1544,7 @@
  165. * This module enables the AES-CCM ciphersuites, if other requisites are
  166. * enabled as well.
  167. */
  168. -#define MBEDTLS_CCM_C
  169. +//#define MBEDTLS_CCM_C
  170. /**
  171. * \def MBEDTLS_CERTS_C
  172. @@ -1556,7 +1556,7 @@
  173. *
  174. * This module is used for testing (ssl_client/server).
  175. */
  176. -#define MBEDTLS_CERTS_C
  177. +//#define MBEDTLS_CERTS_C
  178. /**
  179. * \def MBEDTLS_CIPHER_C
  180. @@ -1596,7 +1596,7 @@
  181. *
  182. * This module provides debugging functions.
  183. */
  184. -#define MBEDTLS_DEBUG_C
  185. +//#define MBEDTLS_DEBUG_C
  186. /**
  187. * \def MBEDTLS_DES_C
  188. @@ -1636,7 +1636,7 @@
  189. * This module is used by the following key exchanges:
  190. * DHE-RSA, DHE-PSK
  191. */
  192. -#define MBEDTLS_DHM_C
  193. +//#define MBEDTLS_DHM_C
  194. /**
  195. * \def MBEDTLS_ECDH_C
  196. @@ -2026,7 +2026,7 @@
  197. * Caller: library/mbedtls_md.c
  198. *
  199. */
  200. -#define MBEDTLS_RIPEMD160_C
  201. +//#define MBEDTLS_RIPEMD160_C
  202. /**
  203. * \def MBEDTLS_RSA_C
  204. @@ -2324,7 +2324,7 @@
  205. * Module: library/xtea.c
  206. * Caller:
  207. */
  208. -#define MBEDTLS_XTEA_C
  209. +//#define MBEDTLS_XTEA_C
  210. /* \} name SECTION: mbed TLS modules */