200-config.patch 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. --- a/include/mbedtls/config.h
  2. +++ b/include/mbedtls/config.h
  3. @@ -185,7 +185,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. @@ -341,7 +341,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. @@ -435,13 +435,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. @@ -457,7 +457,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. @@ -517,7 +517,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. @@ -562,7 +562,7 @@
  53. * MBEDTLS_TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
  54. * MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
  55. */
  56. -#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
  57. +//#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
  58. /**
  59. * \def MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
  60. @@ -616,7 +616,7 @@
  61. * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
  62. * MBEDTLS_TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
  63. */
  64. -#define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
  65. +//#define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
  66. /**
  67. * \def MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
  68. @@ -689,7 +689,7 @@
  69. * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
  70. * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
  71. */
  72. -#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
  73. +//#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
  74. /**
  75. * \def MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
  76. @@ -713,7 +713,7 @@
  77. * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
  78. * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
  79. */
  80. -#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
  81. +//#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
  82. /**
  83. * \def MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
  84. @@ -879,7 +879,7 @@
  85. *
  86. * Comment this macro to disable support for external private RSA keys.
  87. */
  88. -#define MBEDTLS_PK_RSA_ALT_SUPPORT
  89. +//#define MBEDTLS_PK_RSA_ALT_SUPPORT
  90. /**
  91. * \def MBEDTLS_PKCS1_V15
  92. @@ -911,14 +911,14 @@
  93. * Uncomment this macro to disable the use of CRT in RSA.
  94. *
  95. */
  96. -//#define MBEDTLS_RSA_NO_CRT
  97. +#define MBEDTLS_RSA_NO_CRT
  98. /**
  99. * \def MBEDTLS_SELF_TEST
  100. *
  101. * Enable the checkup functions (*_self_test).
  102. */
  103. -#define MBEDTLS_SELF_TEST
  104. +//#define MBEDTLS_SELF_TEST
  105. /**
  106. * \def MBEDTLS_SHA256_SMALLER
  107. @@ -934,7 +934,7 @@
  108. *
  109. * Uncomment to enable the smaller implementation of SHA256.
  110. */
  111. -//#define MBEDTLS_SHA256_SMALLER
  112. +#define MBEDTLS_SHA256_SMALLER
  113. /**
  114. * \def MBEDTLS_SSL_AEAD_RANDOM_IV
  115. @@ -1271,7 +1271,7 @@
  116. *
  117. * Comment this macro to disable support for truncated HMAC in SSL
  118. */
  119. -#define MBEDTLS_SSL_TRUNCATED_HMAC
  120. +//#define MBEDTLS_SSL_TRUNCATED_HMAC
  121. /**
  122. * \def MBEDTLS_THREADING_ALT
  123. @@ -1507,7 +1507,7 @@
  124. * MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
  125. * MBEDTLS_TLS_PSK_WITH_RC4_128_SHA
  126. */
  127. -#define MBEDTLS_ARC4_C
  128. +//#define MBEDTLS_ARC4_C
  129. /**
  130. * \def MBEDTLS_ASN1_PARSE_C
  131. @@ -1572,7 +1572,7 @@
  132. *
  133. * Module: library/blowfish.c
  134. */
  135. -#define MBEDTLS_BLOWFISH_C
  136. +//#define MBEDTLS_BLOWFISH_C
  137. /**
  138. * \def MBEDTLS_CAMELLIA_C
  139. @@ -1627,7 +1627,7 @@
  140. * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
  141. * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
  142. */
  143. -#define MBEDTLS_CAMELLIA_C
  144. +//#define MBEDTLS_CAMELLIA_C
  145. /**
  146. * \def MBEDTLS_CCM_C
  147. @@ -1641,7 +1641,7 @@
  148. * This module enables the AES-CCM ciphersuites, if other requisites are
  149. * enabled as well.
  150. */
  151. -#define MBEDTLS_CCM_C
  152. +//#define MBEDTLS_CCM_C
  153. /**
  154. * \def MBEDTLS_CERTS_C
  155. @@ -1653,7 +1653,7 @@
  156. *
  157. * This module is used for testing (ssl_client/server).
  158. */
  159. -#define MBEDTLS_CERTS_C
  160. +//#define MBEDTLS_CERTS_C
  161. /**
  162. * \def MBEDTLS_CIPHER_C
  163. @@ -1693,7 +1693,7 @@
  164. *
  165. * This module provides debugging functions.
  166. */
  167. -#define MBEDTLS_DEBUG_C
  168. +//#define MBEDTLS_DEBUG_C
  169. /**
  170. * \def MBEDTLS_DES_C
  171. @@ -1733,7 +1733,7 @@
  172. * This module is used by the following key exchanges:
  173. * DHE-RSA, DHE-PSK
  174. */
  175. -#define MBEDTLS_DHM_C
  176. +//#define MBEDTLS_DHM_C
  177. /**
  178. * \def MBEDTLS_ECDH_C
  179. @@ -2151,7 +2151,7 @@
  180. * Caller: library/mbedtls_md.c
  181. *
  182. */
  183. -#define MBEDTLS_RIPEMD160_C
  184. +//#define MBEDTLS_RIPEMD160_C
  185. /**
  186. * \def MBEDTLS_RSA_C
  187. @@ -2461,7 +2461,7 @@
  188. * Module: library/xtea.c
  189. * Caller:
  190. */
  191. -#define MBEDTLS_XTEA_C
  192. +//#define MBEDTLS_XTEA_C
  193. /* \} name SECTION: mbed TLS modules */