mbedtls: update to version 2.1.2
[openwrt/openwrt.git] / package / libs / mbedtls / patches / 200-config.patch
1 --- a/include/mbedtls/config.h
2 +++ b/include/mbedtls/config.h
3 @@ -184,7 +184,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 @@ -323,7 +323,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 @@ -416,13 +416,13 @@
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_SECP192K1_ENABLED
35 +//#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
36 #define MBEDTLS_ECP_DP_SECP256K1_ENABLED
37 #define MBEDTLS_ECP_DP_BP256R1_ENABLED
38 #define MBEDTLS_ECP_DP_BP384R1_ENABLED
39 @@ -438,7 +438,7 @@
40 *
41 * Comment this macro to disable NIST curves optimisation.
42 */
43 -#define MBEDTLS_ECP_NIST_OPTIM
44 +//#define MBEDTLS_ECP_NIST_OPTIM
45
46 /**
47 * \def MBEDTLS_ECDSA_DETERMINISTIC
48 @@ -498,7 +498,7 @@
49 * MBEDTLS_TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA
50 * MBEDTLS_TLS_DHE_PSK_WITH_RC4_128_SHA
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 @@ -543,7 +543,7 @@
58 * MBEDTLS_TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
59 * MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
60 */
61 -#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
62 +//#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
63
64 /**
65 * \def MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
66 @@ -597,7 +597,7 @@
67 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
68 * MBEDTLS_TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
69 */
70 -#define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
71 +//#define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
72
73 /**
74 * \def MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
75 @@ -670,7 +670,7 @@
76 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
77 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
78 */
79 -#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
80 +//#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
81
82 /**
83 * \def MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
84 @@ -694,7 +694,7 @@
85 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
86 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
87 */
88 -#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
89 +//#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
90
91 /**
92 * \def MBEDTLS_PK_PARSE_EC_EXTENDED
93 @@ -813,7 +813,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 /**
101 * \def MBEDTLS_PKCS1_V15
102 @@ -845,14 +845,14 @@
103 * Uncomment this macro to disable the use of CRT in RSA.
104 *
105 */
106 -//#define MBEDTLS_RSA_NO_CRT
107 +#define MBEDTLS_RSA_NO_CRT
108
109 /**
110 * \def MBEDTLS_SELF_TEST
111 *
112 * Enable the checkup functions (*_self_test).
113 */
114 -#define MBEDTLS_SELF_TEST
115 +//#define MBEDTLS_SELF_TEST
116
117 /**
118 * \def MBEDTLS_SHA256_SMALLER
119 @@ -868,7 +868,7 @@
120 *
121 * Uncomment to enable the smaller implementation of SHA256.
122 */
123 -//#define MBEDTLS_SHA256_SMALLER
124 +#define MBEDTLS_SHA256_SMALLER
125
126 /**
127 * \def MBEDTLS_SSL_AEAD_RANDOM_IV
128 @@ -1041,7 +1041,7 @@
129 *
130 * Comment this macro to disable support for SSL 3.0
131 */
132 -#define MBEDTLS_SSL_PROTO_SSL3
133 +//#define MBEDTLS_SSL_PROTO_SSL3
134
135 /**
136 * \def MBEDTLS_SSL_PROTO_TLS1
137 @@ -1195,7 +1195,7 @@
138 *
139 * Comment this macro to disable support for truncated HMAC in SSL
140 */
141 -#define MBEDTLS_SSL_TRUNCATED_HMAC
142 +//#define MBEDTLS_SSL_TRUNCATED_HMAC
143
144 /**
145 * \def MBEDTLS_THREADING_ALT
146 @@ -1431,7 +1431,7 @@
147 * MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
148 * MBEDTLS_TLS_PSK_WITH_RC4_128_SHA
149 */
150 -#define MBEDTLS_ARC4_C
151 +//#define MBEDTLS_ARC4_C
152
153 /**
154 * \def MBEDTLS_ASN1_PARSE_C
155 @@ -1496,7 +1496,7 @@
156 *
157 * Module: library/blowfish.c
158 */
159 -#define MBEDTLS_BLOWFISH_C
160 +//#define MBEDTLS_BLOWFISH_C
161
162 /**
163 * \def MBEDTLS_CAMELLIA_C
164 @@ -1551,7 +1551,7 @@
165 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
166 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
167 */
168 -#define MBEDTLS_CAMELLIA_C
169 +//#define MBEDTLS_CAMELLIA_C
170
171 /**
172 * \def MBEDTLS_CCM_C
173 @@ -1565,7 +1565,7 @@
174 * This module enables the AES-CCM ciphersuites, if other requisites are
175 * enabled as well.
176 */
177 -#define MBEDTLS_CCM_C
178 +//#define MBEDTLS_CCM_C
179
180 /**
181 * \def MBEDTLS_CERTS_C
182 @@ -1577,7 +1577,7 @@
183 *
184 * This module is used for testing (ssl_client/server).
185 */
186 -#define MBEDTLS_CERTS_C
187 +//#define MBEDTLS_CERTS_C
188
189 /**
190 * \def MBEDTLS_CIPHER_C
191 @@ -1617,7 +1617,7 @@
192 *
193 * This module provides debugging functions.
194 */
195 -#define MBEDTLS_DEBUG_C
196 +//#define MBEDTLS_DEBUG_C
197
198 /**
199 * \def MBEDTLS_DES_C
200 @@ -1657,7 +1657,7 @@
201 * This module is used by the following key exchanges:
202 * DHE-RSA, DHE-PSK
203 */
204 -#define MBEDTLS_DHM_C
205 +//#define MBEDTLS_DHM_C
206
207 /**
208 * \def MBEDTLS_ECDH_C
209 @@ -2047,7 +2047,7 @@
210 * Caller: library/mbedtls_md.c
211 *
212 */
213 -#define MBEDTLS_RIPEMD160_C
214 +//#define MBEDTLS_RIPEMD160_C
215
216 /**
217 * \def MBEDTLS_RSA_C
218 @@ -2345,7 +2345,7 @@
219 * Module: library/xtea.c
220 * Caller:
221 */
222 -#define MBEDTLS_XTEA_C
223 +//#define MBEDTLS_XTEA_C
224
225 /* \} name SECTION: mbed TLS modules */
226