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