mbedtls: update to version 2.7.0
[openwrt/openwrt.git] / package / libs / mbedtls / patches / 200-config.patch
1 --- a/include/mbedtls/config.h
2 +++ b/include/mbedtls/config.h
3 @@ -221,7 +221,7 @@
4 *
5 * Uncomment to get errors on using deprecated functions.
6 */
7 -//#define MBEDTLS_DEPRECATED_REMOVED
8 +#define MBEDTLS_DEPRECATED_REMOVED
9
10 /* \} name SECTION: System support */
11
12 @@ -566,17 +566,17 @@
13 *
14 * Comment macros to disable the curve and functions for it
15 */
16 -#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
17 -#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
18 +//#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
19 +//#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
20 #define MBEDTLS_ECP_DP_SECP256R1_ENABLED
21 #define MBEDTLS_ECP_DP_SECP384R1_ENABLED
22 -#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
23 -#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
24 -#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
25 +//#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
26 +//#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
27 +//#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
28 #define MBEDTLS_ECP_DP_SECP256K1_ENABLED
29 -#define MBEDTLS_ECP_DP_BP256R1_ENABLED
30 -#define MBEDTLS_ECP_DP_BP384R1_ENABLED
31 -#define MBEDTLS_ECP_DP_BP512R1_ENABLED
32 +//#define MBEDTLS_ECP_DP_BP256R1_ENABLED
33 +//#define MBEDTLS_ECP_DP_BP384R1_ENABLED
34 +//#define MBEDTLS_ECP_DP_BP512R1_ENABLED
35 #define MBEDTLS_ECP_DP_CURVE25519_ENABLED
36
37 /**
38 @@ -601,8 +601,8 @@
39 * Requires: MBEDTLS_HMAC_DRBG_C
40 *
41 * Comment this macro to disable deterministic ECDSA.
42 - */
43 #define MBEDTLS_ECDSA_DETERMINISTIC
44 + */
45
46 /**
47 * \def MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
48 @@ -655,7 +655,7 @@
49 * See dhm.h for more details.
50 *
51 */
52 -#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
53 +//#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
54
55 /**
56 * \def MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
57 @@ -674,8 +674,8 @@
58 * MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
59 * MBEDTLS_TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA
60 * MBEDTLS_TLS_ECDHE_PSK_WITH_RC4_128_SHA
61 - */
62 #define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
63 + */
64
65 /**
66 * \def MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
67 @@ -700,7 +700,7 @@
68 * MBEDTLS_TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
69 * MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
70 */
71 -#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
72 +//#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
73
74 /**
75 * \def MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
76 @@ -834,7 +834,7 @@
77 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
78 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
79 */
80 -#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
81 +//#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
82
83 /**
84 * \def MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
85 @@ -858,7 +858,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 /**
93 * \def MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
94 @@ -962,7 +962,7 @@
95 * This option is only useful if both MBEDTLS_SHA256_C and
96 * MBEDTLS_SHA512_C are defined. Otherwise the available hash module is used.
97 */
98 -//#define MBEDTLS_ENTROPY_FORCE_SHA256
99 +#define MBEDTLS_ENTROPY_FORCE_SHA256
100
101 /**
102 * \def MBEDTLS_ENTROPY_NV_SEED
103 @@ -1056,14 +1056,14 @@
104 * Uncomment this macro to disable the use of CRT in RSA.
105 *
106 */
107 -//#define MBEDTLS_RSA_NO_CRT
108 +#define MBEDTLS_RSA_NO_CRT
109
110 /**
111 * \def MBEDTLS_SELF_TEST
112 *
113 * Enable the checkup functions (*_self_test).
114 */
115 -#define MBEDTLS_SELF_TEST
116 +//#define MBEDTLS_SELF_TEST
117
118 /**
119 * \def MBEDTLS_SHA256_SMALLER
120 @@ -1079,7 +1079,7 @@
121 *
122 * Uncomment to enable the smaller implementation of SHA256.
123 */
124 -//#define MBEDTLS_SHA256_SMALLER
125 +#define MBEDTLS_SHA256_SMALLER
126
127 /**
128 * \def MBEDTLS_SSL_ALL_ALERT_MESSAGES
129 @@ -1206,7 +1206,7 @@
130 * configuration of this extension).
131 *
132 */
133 -#define MBEDTLS_SSL_RENEGOTIATION
134 +//#define MBEDTLS_SSL_RENEGOTIATION
135
136 /**
137 * \def MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
138 @@ -1380,8 +1380,8 @@
139 * callbacks are provided by MBEDTLS_SSL_TICKET_C.
140 *
141 * Comment this macro to disable support for SSL session tickets
142 - */
143 #define MBEDTLS_SSL_SESSION_TICKETS
144 + */
145
146 /**
147 * \def MBEDTLS_SSL_EXPORT_KEYS
148 @@ -1411,7 +1411,7 @@
149 *
150 * Comment this macro to disable support for truncated HMAC in SSL
151 */
152 -#define MBEDTLS_SSL_TRUNCATED_HMAC
153 +//#define MBEDTLS_SSL_TRUNCATED_HMAC
154
155 /**
156 * \def MBEDTLS_THREADING_ALT
157 @@ -1445,8 +1445,8 @@
158 * Requires: MBEDTLS_VERSION_C
159 *
160 * Comment this to disable run-time checking and save ROM space
161 - */
162 #define MBEDTLS_VERSION_FEATURES
163 + */
164
165 /**
166 * \def MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3
167 @@ -1773,7 +1773,7 @@
168 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
169 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
170 */
171 -#define MBEDTLS_CAMELLIA_C
172 +//#define MBEDTLS_CAMELLIA_C
173
174 /**
175 * \def MBEDTLS_CCM_C
176 @@ -1787,7 +1787,7 @@
177 * This module enables the AES-CCM ciphersuites, if other requisites are
178 * enabled as well.
179 */
180 -#define MBEDTLS_CCM_C
181 +//#define MBEDTLS_CCM_C
182
183 /**
184 * \def MBEDTLS_CERTS_C
185 @@ -1799,7 +1799,7 @@
186 *
187 * This module is used for testing (ssl_client/server).
188 */
189 -#define MBEDTLS_CERTS_C
190 +//#define MBEDTLS_CERTS_C
191
192 /**
193 * \def MBEDTLS_CIPHER_C
194 @@ -1852,7 +1852,7 @@
195 *
196 * This module provides debugging functions.
197 */
198 -#define MBEDTLS_DEBUG_C
199 +//#define MBEDTLS_DEBUG_C
200
201 /**
202 * \def MBEDTLS_DES_C
203 @@ -1881,7 +1881,7 @@
204 * \warning DES is considered a weak cipher and its use constitutes a
205 * security risk. We recommend considering stronger ciphers instead.
206 */
207 -#define MBEDTLS_DES_C
208 +//#define MBEDTLS_DES_C
209
210 /**
211 * \def MBEDTLS_DHM_C
212 @@ -2042,8 +2042,8 @@
213 * Requires: MBEDTLS_MD_C
214 *
215 * Uncomment to enable the HMAC_DRBG random number geerator.
216 - */
217 #define MBEDTLS_HMAC_DRBG_C
218 + */
219
220 /**
221 * \def MBEDTLS_MD_C
222 @@ -2337,7 +2337,7 @@
223 * Caller: library/md.c
224 *
225 */
226 -#define MBEDTLS_RIPEMD160_C
227 +//#define MBEDTLS_RIPEMD160_C
228
229 /**
230 * \def MBEDTLS_RSA_C
231 @@ -2421,8 +2421,8 @@
232 * Caller:
233 *
234 * Requires: MBEDTLS_SSL_CACHE_C
235 - */
236 #define MBEDTLS_SSL_CACHE_C
237 + */
238
239 /**
240 * \def MBEDTLS_SSL_COOKIE_C
241 @@ -2443,8 +2443,8 @@
242 * Caller:
243 *
244 * Requires: MBEDTLS_CIPHER_C
245 - */
246 #define MBEDTLS_SSL_TICKET_C
247 + */
248
249 /**
250 * \def MBEDTLS_SSL_CLI_C
251 @@ -2543,8 +2543,8 @@
252 * Module: library/version.c
253 *
254 * This module provides run-time version information.
255 - */
256 #define MBEDTLS_VERSION_C
257 + */
258
259 /**
260 * \def MBEDTLS_X509_USE_C
261 @@ -2654,7 +2654,7 @@
262 * Module: library/xtea.c
263 * Caller:
264 */
265 -#define MBEDTLS_XTEA_C
266 +//#define MBEDTLS_XTEA_C
267
268 /* \} name SECTION: mbed TLS modules */
269