mbedtls: package version 2.0, make polarssl compatible
[openwrt/svn-archive/archive.git] / package / libs / mbedtls / patches / 200-config.patch
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
10 /* \} name SECTION: System support */
11
12 @@ -320,7 +320,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 @@ -413,13 +413,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 @@ -435,7 +435,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 @@ -443,7 +443,7 @@
49 * Enable deterministic ECDSA (RFC 6979).
50 * Standard ECDSA is "fragile" in the sense that lack of entropy when signing
51 * may result in a compromise of the long-term signing key. This is avoided by
52 - * the deterministic variant.
53 + DH * the deterministic variant.
54 *
55 * Requires: MBEDTLS_HMAC_DRBG_C
56 *
57 @@ -495,7 +495,7 @@
58 * MBEDTLS_TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA
59 * MBEDTLS_TLS_DHE_PSK_WITH_RC4_128_SHA
60 */
61 -#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
62 +//#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
63
64 /**
65 * \def MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
66 @@ -540,7 +540,7 @@
67 * MBEDTLS_TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
68 * MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
69 */
70 -#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
71 +//#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
72
73 /**
74 * \def MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
75 @@ -594,7 +594,7 @@
76 * MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
77 * MBEDTLS_TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
78 */
79 -#define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
80 +//#define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
81
82 /**
83 * \def MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
84 @@ -667,7 +667,7 @@
85 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
86 * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
87 */
88 -#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
89 +//#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
90
91 /**
92 * \def MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
93 @@ -691,7 +691,7 @@
94 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
95 * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
96 */
97 -#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
98 +//#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
99
100 /**
101 * \def MBEDTLS_PK_PARSE_EC_EXTENDED
102 @@ -810,7 +810,7 @@
103 *
104 * Comment this macro to disable support for external private RSA keys.
105 */
106 -#define MBEDTLS_PK_RSA_ALT_SUPPORT
107 +//#define MBEDTLS_PK_RSA_ALT_SUPPORT
108
109 /**
110 * \def MBEDTLS_PKCS1_V15
111 @@ -842,14 +842,14 @@
112 * Uncomment this macro to disable the use of CRT in RSA.
113 *
114 */
115 -//#define MBEDTLS_RSA_NO_CRT
116 +#define MBEDTLS_RSA_NO_CRT
117
118 /**
119 * \def MBEDTLS_SELF_TEST
120 *
121 * Enable the checkup functions (*_self_test).
122 */
123 -#define MBEDTLS_SELF_TEST
124 +//#define MBEDTLS_SELF_TEST
125
126 /**
127 * \def MBEDTLS_SHA256_SMALLER
128 @@ -865,7 +865,7 @@
129 *
130 * Uncomment to enable the smaller implementation of SHA256.
131 */
132 -//#define MBEDTLS_SHA256_SMALLER
133 +#define MBEDTLS_SHA256_SMALLER
134
135 /**
136 * \def MBEDTLS_SSL_AEAD_RANDOM_IV
137 @@ -1038,7 +1038,7 @@
138 *
139 * Comment this macro to disable support for SSL 3.0
140 */
141 -#define MBEDTLS_SSL_PROTO_SSL3
142 +//#define MBEDTLS_SSL_PROTO_SSL3
143
144 /**
145 * \def MBEDTLS_SSL_PROTO_TLS1
146 @@ -1176,7 +1176,7 @@
147 *
148 * Comment this macro to disable support for truncated HMAC in SSL
149 */
150 -#define MBEDTLS_SSL_TRUNCATED_HMAC
151 +//#define MBEDTLS_SSL_TRUNCATED_HMAC
152
153 /**
154 * \def MBEDTLS_THREADING_ALT
155 @@ -1410,7 +1410,7 @@
156 * MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
157 * MBEDTLS_TLS_PSK_WITH_RC4_128_SHA
158 */
159 -#define MBEDTLS_ARC4_C
160 +//#define MBEDTLS_ARC4_C
161
162 /**
163 * \def MBEDTLS_ASN1_PARSE_C
164 @@ -1475,7 +1475,7 @@
165 *
166 * Module: library/blowfish.c
167 */
168 -#define MBEDTLS_BLOWFISH_C
169 +//#define MBEDTLS_BLOWFISH_C
170
171 /**
172 * \def MBEDTLS_CAMELLIA_C
173 @@ -1530,7 +1530,7 @@
174 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
175 * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
176 */
177 -#define MBEDTLS_CAMELLIA_C
178 +//#define MBEDTLS_CAMELLIA_C
179
180 /**
181 * \def MBEDTLS_CCM_C
182 @@ -1544,7 +1544,7 @@
183 * This module enables the AES-CCM ciphersuites, if other requisites are
184 * enabled as well.
185 */
186 -#define MBEDTLS_CCM_C
187 +//#define MBEDTLS_CCM_C
188
189 /**
190 * \def MBEDTLS_CERTS_C
191 @@ -1556,7 +1556,7 @@
192 *
193 * This module is used for testing (ssl_client/server).
194 */
195 -#define MBEDTLS_CERTS_C
196 +//#define MBEDTLS_CERTS_C
197
198 /**
199 * \def MBEDTLS_CIPHER_C
200 @@ -1596,7 +1596,7 @@
201 *
202 * This module provides debugging functions.
203 */
204 -#define MBEDTLS_DEBUG_C
205 +//#define MBEDTLS_DEBUG_C
206
207 /**
208 * \def MBEDTLS_DES_C
209 @@ -1636,7 +1636,7 @@
210 * This module is used by the following key exchanges:
211 * DHE-RSA, DHE-PSK
212 */
213 -#define MBEDTLS_DHM_C
214 +//#define MBEDTLS_DHM_C
215
216 /**
217 * \def MBEDTLS_ECDH_C
218 @@ -2026,7 +2026,7 @@
219 * Caller: library/mbedtls_md.c
220 *
221 */
222 -#define MBEDTLS_RIPEMD160_C
223 +//#define MBEDTLS_RIPEMD160_C
224
225 /**
226 * \def MBEDTLS_RSA_C
227 @@ -2324,7 +2324,7 @@
228 * Module: library/xtea.c
229 * Caller:
230 */
231 -#define MBEDTLS_XTEA_C
232 +//#define MBEDTLS_XTEA_C
233
234 /* \} name SECTION: mbed TLS modules */
235