polarssl: enable AES-GCM and CAMELLIA-GCM ciphersuites
[openwrt/openwrt.git] / package / libs / polarssl / patches / 200-reduce_config.patch
1 --- a/include/polarssl/config.h
2 +++ b/include/polarssl/config.h
3 @@ -432,8 +432,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 @@ -454,8 +454,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 @@ -478,8 +478,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 @@ -498,8 +498,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 @@ -523,8 +523,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 @@ -602,8 +602,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 @@ -626,8 +626,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 @@ -650,8 +650,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 @@ -674,8 +674,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 @@ -835,8 +835,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 @@ -1151,8 +1151,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 @@ -1470,8 +1470,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 @@ -1498,8 +1498,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 @@ -1538,8 +1538,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 @@ -1594,8 +1594,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 @@ -1609,8 +1609,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 @@ -1622,8 +1622,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 @@ -1699,8 +1699,8 @@
174 * Requires: POLARSSL_MD_C
175 *
176 * Uncomment to enable the HMAC_DRBG random number geerator.
177 - */
178 #define POLARSSL_HMAC_DRBG_C
179 + */
180
181 /**
182 * \def POLARSSL_MD_C
183 @@ -1826,8 +1826,8 @@
184 * Requires: POLARSSL_HAVE_ASM
185 *
186 * This modules adds support for the VIA PadLock on x86.
187 - */
188 #define POLARSSL_PADLOCK_C
189 + */
190
191 /**
192 * \def POLARSSL_PBKDF2_C
193 @@ -1992,8 +1992,8 @@
194 * Module: library/ripemd160.c
195 * Caller: library/md.c
196 *
197 - */
198 #define POLARSSL_RIPEMD160_C
199 + */
200
201 /**
202 * \def POLARSSL_RSA_C
203 @@ -2072,8 +2072,8 @@
204 * Caller:
205 *
206 * Requires: POLARSSL_SSL_CACHE_C
207 - */
208 #define POLARSSL_SSL_CACHE_C
209 + */
210
211 /**
212 * \def POLARSSL_SSL_CLI_C
213 @@ -2149,8 +2149,8 @@
214 * Caller: library/havege.c
215 *
216 * This module is used by the HAVEGE random number generator.
217 - */
218 #define POLARSSL_TIMING_C
219 + */
220
221 /**
222 * \def POLARSSL_VERSION_C
223 @@ -2160,8 +2160,8 @@
224 * Module: library/version.c
225 *
226 * This module provides run-time version information.
227 - */
228 #define POLARSSL_VERSION_C
229 + */
230
231 /**
232 * \def POLARSSL_X509_USE_C
233 @@ -2270,8 +2270,8 @@
234 *
235 * Module: library/xtea.c
236 * Caller:
237 - */
238 #define POLARSSL_XTEA_C
239 + */
240
241 /* \} name SECTION: mbed TLS modules */
242