aa1108eeb4c48b95ccfe70beaab0a63207b4960e
[openwrt/openwrt.git] / package / libs / polarssl / patches / 200-reduce_config.patch
1 --- a/include/polarssl/config.h
2 +++ b/include/polarssl/config.h
3 @@ -370,8 +370,8 @@
4 * Requires: POLARSSL_HMAC_DRBG_C
5 *
6 * Comment this macro to disable deterministic ECDSA.
7 - */
8 #define POLARSSL_ECDSA_DETERMINISTIC
9 + */
10
11 /**
12 * \def POLARSSL_KEY_EXCHANGE_PSK_ENABLED
13 @@ -392,8 +392,8 @@
14 * TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
15 * TLS_PSK_WITH_3DES_EDE_CBC_SHA
16 * TLS_PSK_WITH_RC4_128_SHA
17 - */
18 #define POLARSSL_KEY_EXCHANGE_PSK_ENABLED
19 + */
20
21 /**
22 * \def POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED
23 @@ -416,8 +416,8 @@
24 * TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
25 * TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA
26 * TLS_DHE_PSK_WITH_RC4_128_SHA
27 - */
28 #define POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED
29 + */
30
31 /**
32 * \def POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED
33 @@ -436,8 +436,8 @@
34 * TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
35 * TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA
36 * TLS_ECDHE_PSK_WITH_RC4_128_SHA
37 - */
38 #define POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED
39 + */
40
41 /**
42 * \def POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED
43 @@ -461,8 +461,8 @@
44 * TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256
45 * TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
46 * TLS_RSA_PSK_WITH_RC4_128_SHA
47 - */
48 #define POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED
49 + */
50
51 /**
52 * \def POLARSSL_KEY_EXCHANGE_RSA_ENABLED
53 @@ -540,8 +540,8 @@
54 * TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
55 * TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
56 * TLS_ECDHE_RSA_WITH_RC4_128_SHA
57 - */
58 #define POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED
59 + */
60
61 /**
62 * \def POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
63 @@ -564,8 +564,8 @@
64 * TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256
65 * TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
66 * TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
67 - */
68 #define POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
69 + */
70
71 /**
72 * \def POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
73 @@ -588,8 +588,8 @@
74 * TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384
75 * TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
76 * TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
77 - */
78 #define POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
79 + */
80
81 /**
82 * \def POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED
83 @@ -612,8 +612,8 @@
84 * TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384
85 * TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
86 * TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
87 - */
88 #define POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED
89 + */
90
91 /**
92 * \def POLARSSL_PK_PARSE_EC_EXTENDED
93 @@ -775,8 +775,8 @@
94 * \def POLARSSL_SELF_TEST
95 *
96 * Enable the checkup functions (*_self_test).
97 - */
98 #define POLARSSL_SELF_TEST
99 + */
100
101 /**
102 * \def POLARSSL_SSL_AEAD_RANDOM_IV
103 @@ -1078,8 +1078,8 @@
104 * Requires: POLARSSL_VERSION_C
105 *
106 * Comment this to disable run-time checking and save ROM space
107 - */
108 #define POLARSSL_VERSION_FEATURES
109 + */
110
111 /**
112 * \def POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3
113 @@ -1395,8 +1395,8 @@
114 * TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384
115 * TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
116 * TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
117 - */
118 #define POLARSSL_CAMELLIA_C
119 + */
120
121 /**
122 * \def POLARSSL_CCM_C
123 @@ -1423,8 +1423,8 @@
124 * Requires: POLARSSL_PEM_PARSE_C
125 *
126 * This module is used for testing (ssl_client/server).
127 - */
128 #define POLARSSL_CERTS_C
129 + */
130
131 /**
132 * \def POLARSSL_CIPHER_C
133 @@ -1463,8 +1463,8 @@
134 * library/ssl_tls.c
135 *
136 * This module provides debugging functions.
137 - */
138 #define POLARSSL_DEBUG_C
139 + */
140
141 /**
142 * \def POLARSSL_DES_C
143 @@ -1519,8 +1519,8 @@
144 * ECDHE-ECDSA, ECDHE-RSA, DHE-PSK
145 *
146 * Requires: POLARSSL_ECP_C
147 - */
148 #define POLARSSL_ECDH_C
149 + */
150
151 /**
152 * \def POLARSSL_ECDSA_C
153 @@ -1534,8 +1534,8 @@
154 * ECDHE-ECDSA
155 *
156 * Requires: POLARSSL_ECP_C, POLARSSL_ASN1_WRITE_C, POLARSSL_ASN1_PARSE_C
157 - */
158 #define POLARSSL_ECDSA_C
159 + */
160
161 /**
162 * \def POLARSSL_ECP_C
163 @@ -1547,8 +1547,8 @@
164 * library/ecdsa.c
165 *
166 * Requires: POLARSSL_BIGNUM_C and at least one POLARSSL_ECP_DP_XXX_ENABLED
167 - */
168 #define POLARSSL_ECP_C
169 + */
170
171 /**
172 * \def POLARSSL_ENTROPY_C
173 @@ -1587,8 +1587,8 @@
174 *
175 * This module enables the AES-GCM and CAMELLIA-GCM ciphersuites, if other
176 * requisites are enabled as well.
177 - */
178 #define POLARSSL_GCM_C
179 + */
180
181 /**
182 * \def POLARSSL_HAVEGE_C
183 @@ -1624,8 +1624,8 @@
184 * Requires: POLARSSL_MD_C
185 *
186 * Uncomment to enable the HMAC_DRBG random number geerator.
187 - */
188 #define POLARSSL_HMAC_DRBG_C
189 + */
190
191 /**
192 * \def POLARSSL_MD_C
193 @@ -1746,8 +1746,8 @@
194 * Requires: POLARSSL_HAVE_ASM
195 *
196 * This modules adds support for the VIA PadLock on x86.
197 - */
198 #define POLARSSL_PADLOCK_C
199 + */
200
201 /**
202 * \def POLARSSL_PBKDF2_C
203 @@ -1907,8 +1907,8 @@
204 * Module: library/ripemd160.c
205 * Caller: library/md.c
206 *
207 - */
208 #define POLARSSL_RIPEMD160_C
209 + */
210
211 /**
212 * \def POLARSSL_RSA_C
213 @@ -1987,8 +1987,8 @@
214 * Caller:
215 *
216 * Requires: POLARSSL_SSL_CACHE_C
217 - */
218 #define POLARSSL_SSL_CACHE_C
219 + */
220
221 /**
222 * \def POLARSSL_SSL_CLI_C
223 @@ -2064,8 +2064,8 @@
224 * Caller: library/havege.c
225 *
226 * This module is used by the HAVEGE random number generator.
227 - */
228 #define POLARSSL_TIMING_C
229 + */
230
231 /**
232 * \def POLARSSL_VERSION_C
233 @@ -2075,8 +2075,8 @@
234 * Module: library/version.c
235 *
236 * This module provides run-time version information.
237 - */
238 #define POLARSSL_VERSION_C
239 + */
240
241 /**
242 * \def POLARSSL_X509_USE_C
243 @@ -2185,8 +2185,8 @@
244 *
245 * Module: library/xtea.c
246 * Caller:
247 - */
248 #define POLARSSL_XTEA_C
249 + */
250
251 /* \} name SECTION: mbed TLS modules */
252