diff options
author | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
commit | d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb (patch) | |
tree | 9efd18ea7d425652085ed0bd5e8e45604bc5f6b9 /src/include/gnunet_reclaim_service.h | |
parent | a0fce305c565c0937d917a92712f15e9c5736260 (diff) | |
download | gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.tar.gz gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.zip |
uncrustify as demanded.
Diffstat (limited to 'src/include/gnunet_reclaim_service.h')
-rw-r--r-- | src/include/gnunet_reclaim_service.h | 107 |
1 files changed, 53 insertions, 54 deletions
diff --git a/src/include/gnunet_reclaim_service.h b/src/include/gnunet_reclaim_service.h index 8d7babd7c..9f0a141c9 100644 --- a/src/include/gnunet_reclaim_service.h +++ b/src/include/gnunet_reclaim_service.h | |||
@@ -16,7 +16,7 @@ | |||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @author Martin Schanzenbach | 22 | * @author Martin Schanzenbach |
@@ -64,8 +64,7 @@ struct GNUNET_RECLAIM_Operation; | |||
64 | * The contents of a ticket must be protected and should be treated as a | 64 | * The contents of a ticket must be protected and should be treated as a |
65 | * shared secret between user and relying party. | 65 | * shared secret between user and relying party. |
66 | */ | 66 | */ |
67 | struct GNUNET_RECLAIM_Ticket | 67 | struct GNUNET_RECLAIM_Ticket { |
68 | { | ||
69 | /** | 68 | /** |
70 | * The ticket issuer (= the user) | 69 | * The ticket issuer (= the user) |
71 | */ | 70 | */ |
@@ -92,7 +91,7 @@ struct GNUNET_RECLAIM_Ticket | |||
92 | * @param ticket the ticket | 91 | * @param ticket the ticket |
93 | */ | 92 | */ |
94 | typedef void (*GNUNET_RECLAIM_TicketCallback) ( | 93 | typedef void (*GNUNET_RECLAIM_TicketCallback) ( |
95 | void *cls, const struct GNUNET_RECLAIM_Ticket *ticket); | 94 | void *cls, const struct GNUNET_RECLAIM_Ticket *ticket); |
96 | 95 | ||
97 | 96 | ||
98 | /** | 97 | /** |
@@ -116,8 +115,8 @@ typedef void (*GNUNET_RECLAIM_ContinuationWithStatus) (void *cls, | |||
116 | * @param attr The attribute | 115 | * @param attr The attribute |
117 | */ | 116 | */ |
118 | typedef void (*GNUNET_RECLAIM_AttributeResult) ( | 117 | typedef void (*GNUNET_RECLAIM_AttributeResult) ( |
119 | void *cls, const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, | 118 | void *cls, const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, |
120 | const struct GNUNET_RECLAIM_ATTRIBUTE_Claim *attr); | 119 | const struct GNUNET_RECLAIM_ATTRIBUTE_Claim *attr); |
121 | 120 | ||
122 | 121 | ||
123 | /** | 122 | /** |
@@ -127,7 +126,7 @@ typedef void (*GNUNET_RECLAIM_AttributeResult) ( | |||
127 | * @return handle to communicate with the service | 126 | * @return handle to communicate with the service |
128 | */ | 127 | */ |
129 | struct GNUNET_RECLAIM_Handle * | 128 | struct GNUNET_RECLAIM_Handle * |
130 | GNUNET_RECLAIM_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); | 129 | GNUNET_RECLAIM_connect(const struct GNUNET_CONFIGURATION_Handle *cfg); |
131 | 130 | ||
132 | 131 | ||
133 | /** | 132 | /** |
@@ -143,12 +142,12 @@ GNUNET_RECLAIM_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); | |||
143 | * @return handle Used to to abort the request | 142 | * @return handle Used to to abort the request |
144 | */ | 143 | */ |
145 | struct GNUNET_RECLAIM_Operation * | 144 | struct GNUNET_RECLAIM_Operation * |
146 | GNUNET_RECLAIM_attribute_store ( | 145 | GNUNET_RECLAIM_attribute_store( |
147 | struct GNUNET_RECLAIM_Handle *h, | 146 | struct GNUNET_RECLAIM_Handle *h, |
148 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, | 147 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, |
149 | const struct GNUNET_RECLAIM_ATTRIBUTE_Claim *attr, | 148 | const struct GNUNET_RECLAIM_ATTRIBUTE_Claim *attr, |
150 | const struct GNUNET_TIME_Relative *exp_interval, | 149 | const struct GNUNET_TIME_Relative *exp_interval, |
151 | GNUNET_RECLAIM_ContinuationWithStatus cont, void *cont_cls); | 150 | GNUNET_RECLAIM_ContinuationWithStatus cont, void *cont_cls); |
152 | 151 | ||
153 | 152 | ||
154 | /** | 153 | /** |
@@ -163,11 +162,11 @@ GNUNET_RECLAIM_attribute_store ( | |||
163 | * @return handle Used to to abort the request | 162 | * @return handle Used to to abort the request |
164 | */ | 163 | */ |
165 | struct GNUNET_RECLAIM_Operation * | 164 | struct GNUNET_RECLAIM_Operation * |
166 | GNUNET_RECLAIM_attribute_delete ( | 165 | GNUNET_RECLAIM_attribute_delete( |
167 | struct GNUNET_RECLAIM_Handle *h, | 166 | struct GNUNET_RECLAIM_Handle *h, |
168 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, | 167 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, |
169 | const struct GNUNET_RECLAIM_ATTRIBUTE_Claim *attr, | 168 | const struct GNUNET_RECLAIM_ATTRIBUTE_Claim *attr, |
170 | GNUNET_RECLAIM_ContinuationWithStatus cont, void *cont_cls); | 169 | GNUNET_RECLAIM_ContinuationWithStatus cont, void *cont_cls); |
171 | 170 | ||
172 | 171 | ||
173 | /** | 172 | /** |
@@ -195,12 +194,12 @@ GNUNET_RECLAIM_attribute_delete ( | |||
195 | * @return an iterator Handle to use for iteration | 194 | * @return an iterator Handle to use for iteration |
196 | */ | 195 | */ |
197 | struct GNUNET_RECLAIM_AttributeIterator * | 196 | struct GNUNET_RECLAIM_AttributeIterator * |
198 | GNUNET_RECLAIM_get_attributes_start ( | 197 | GNUNET_RECLAIM_get_attributes_start( |
199 | struct GNUNET_RECLAIM_Handle *h, | 198 | struct GNUNET_RECLAIM_Handle *h, |
200 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, | 199 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, |
201 | GNUNET_SCHEDULER_TaskCallback error_cb, void *error_cb_cls, | 200 | GNUNET_SCHEDULER_TaskCallback error_cb, void *error_cb_cls, |
202 | GNUNET_RECLAIM_AttributeResult proc, void *proc_cls, | 201 | GNUNET_RECLAIM_AttributeResult proc, void *proc_cls, |
203 | GNUNET_SCHEDULER_TaskCallback finish_cb, void *finish_cb_cls); | 202 | GNUNET_SCHEDULER_TaskCallback finish_cb, void *finish_cb_cls); |
204 | 203 | ||
205 | 204 | ||
206 | /** | 205 | /** |
@@ -210,8 +209,8 @@ GNUNET_RECLAIM_get_attributes_start ( | |||
210 | * @param it The iterator | 209 | * @param it The iterator |
211 | */ | 210 | */ |
212 | void | 211 | void |
213 | GNUNET_RECLAIM_get_attributes_next ( | 212 | GNUNET_RECLAIM_get_attributes_next( |
214 | struct GNUNET_RECLAIM_AttributeIterator *it); | 213 | struct GNUNET_RECLAIM_AttributeIterator *it); |
215 | 214 | ||
216 | 215 | ||
217 | /** | 216 | /** |
@@ -222,8 +221,8 @@ GNUNET_RECLAIM_get_attributes_next ( | |||
222 | * @param it the iterator | 221 | * @param it the iterator |
223 | */ | 222 | */ |
224 | void | 223 | void |
225 | GNUNET_RECLAIM_get_attributes_stop ( | 224 | GNUNET_RECLAIM_get_attributes_stop( |
226 | struct GNUNET_RECLAIM_AttributeIterator *it); | 225 | struct GNUNET_RECLAIM_AttributeIterator *it); |
227 | 226 | ||
228 | 227 | ||
229 | /** | 228 | /** |
@@ -240,12 +239,12 @@ GNUNET_RECLAIM_get_attributes_stop ( | |||
240 | * @return handle to abort the operation | 239 | * @return handle to abort the operation |
241 | */ | 240 | */ |
242 | struct GNUNET_RECLAIM_Operation * | 241 | struct GNUNET_RECLAIM_Operation * |
243 | GNUNET_RECLAIM_ticket_issue ( | 242 | GNUNET_RECLAIM_ticket_issue( |
244 | struct GNUNET_RECLAIM_Handle *h, | 243 | struct GNUNET_RECLAIM_Handle *h, |
245 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *iss, | 244 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *iss, |
246 | const struct GNUNET_CRYPTO_EcdsaPublicKey *rp, | 245 | const struct GNUNET_CRYPTO_EcdsaPublicKey *rp, |
247 | const struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList *attrs, | 246 | const struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList *attrs, |
248 | GNUNET_RECLAIM_TicketCallback cb, void *cb_cls); | 247 | GNUNET_RECLAIM_TicketCallback cb, void *cb_cls); |
249 | 248 | ||
250 | 249 | ||
251 | /** | 250 | /** |
@@ -262,11 +261,11 @@ GNUNET_RECLAIM_ticket_issue ( | |||
262 | * @return handle to abort the operation | 261 | * @return handle to abort the operation |
263 | */ | 262 | */ |
264 | struct GNUNET_RECLAIM_Operation * | 263 | struct GNUNET_RECLAIM_Operation * |
265 | GNUNET_RECLAIM_ticket_revoke ( | 264 | GNUNET_RECLAIM_ticket_revoke( |
266 | struct GNUNET_RECLAIM_Handle *h, | 265 | struct GNUNET_RECLAIM_Handle *h, |
267 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, | 266 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, |
268 | const struct GNUNET_RECLAIM_Ticket *ticket, | 267 | const struct GNUNET_RECLAIM_Ticket *ticket, |
269 | GNUNET_RECLAIM_ContinuationWithStatus cb, void *cb_cls); | 268 | GNUNET_RECLAIM_ContinuationWithStatus cb, void *cb_cls); |
270 | 269 | ||
271 | 270 | ||
272 | /** | 271 | /** |
@@ -282,11 +281,11 @@ GNUNET_RECLAIM_ticket_revoke ( | |||
282 | * @return handle to abort the operation | 281 | * @return handle to abort the operation |
283 | */ | 282 | */ |
284 | struct GNUNET_RECLAIM_Operation * | 283 | struct GNUNET_RECLAIM_Operation * |
285 | GNUNET_RECLAIM_ticket_consume ( | 284 | GNUNET_RECLAIM_ticket_consume( |
286 | struct GNUNET_RECLAIM_Handle *h, | 285 | struct GNUNET_RECLAIM_Handle *h, |
287 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, | 286 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, |
288 | const struct GNUNET_RECLAIM_Ticket *ticket, | 287 | const struct GNUNET_RECLAIM_Ticket *ticket, |
289 | GNUNET_RECLAIM_AttributeResult cb, void *cb_cls); | 288 | GNUNET_RECLAIM_AttributeResult cb, void *cb_cls); |
290 | 289 | ||
291 | 290 | ||
292 | /** | 291 | /** |
@@ -307,12 +306,12 @@ GNUNET_RECLAIM_ticket_consume ( | |||
307 | * @return an iterator handle to use for iteration | 306 | * @return an iterator handle to use for iteration |
308 | */ | 307 | */ |
309 | struct GNUNET_RECLAIM_TicketIterator * | 308 | struct GNUNET_RECLAIM_TicketIterator * |
310 | GNUNET_RECLAIM_ticket_iteration_start ( | 309 | GNUNET_RECLAIM_ticket_iteration_start( |
311 | struct GNUNET_RECLAIM_Handle *h, | 310 | struct GNUNET_RECLAIM_Handle *h, |
312 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, | 311 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, |
313 | GNUNET_SCHEDULER_TaskCallback error_cb, void *error_cb_cls, | 312 | GNUNET_SCHEDULER_TaskCallback error_cb, void *error_cb_cls, |
314 | GNUNET_RECLAIM_TicketCallback proc, void *proc_cls, | 313 | GNUNET_RECLAIM_TicketCallback proc, void *proc_cls, |
315 | GNUNET_SCHEDULER_TaskCallback finish_cb, void *finish_cb_cls); | 314 | GNUNET_SCHEDULER_TaskCallback finish_cb, void *finish_cb_cls); |
316 | 315 | ||
317 | 316 | ||
318 | /** | 317 | /** |
@@ -322,7 +321,7 @@ GNUNET_RECLAIM_ticket_iteration_start ( | |||
322 | * @param it the iterator | 321 | * @param it the iterator |
323 | */ | 322 | */ |
324 | void | 323 | void |
325 | GNUNET_RECLAIM_ticket_iteration_next (struct GNUNET_RECLAIM_TicketIterator *it); | 324 | GNUNET_RECLAIM_ticket_iteration_next(struct GNUNET_RECLAIM_TicketIterator *it); |
326 | 325 | ||
327 | 326 | ||
328 | /** | 327 | /** |
@@ -333,7 +332,7 @@ GNUNET_RECLAIM_ticket_iteration_next (struct GNUNET_RECLAIM_TicketIterator *it); | |||
333 | * @param it the iterator | 332 | * @param it the iterator |
334 | */ | 333 | */ |
335 | void | 334 | void |
336 | GNUNET_RECLAIM_ticket_iteration_stop (struct GNUNET_RECLAIM_TicketIterator *it); | 335 | GNUNET_RECLAIM_ticket_iteration_stop(struct GNUNET_RECLAIM_TicketIterator *it); |
337 | 336 | ||
338 | 337 | ||
339 | /** | 338 | /** |
@@ -342,7 +341,7 @@ GNUNET_RECLAIM_ticket_iteration_stop (struct GNUNET_RECLAIM_TicketIterator *it); | |||
342 | * @param h identity provider service to disconnect | 341 | * @param h identity provider service to disconnect |
343 | */ | 342 | */ |
344 | void | 343 | void |
345 | GNUNET_RECLAIM_disconnect (struct GNUNET_RECLAIM_Handle *h); | 344 | GNUNET_RECLAIM_disconnect(struct GNUNET_RECLAIM_Handle *h); |
346 | 345 | ||
347 | 346 | ||
348 | /** | 347 | /** |
@@ -354,7 +353,7 @@ GNUNET_RECLAIM_disconnect (struct GNUNET_RECLAIM_Handle *h); | |||
354 | * @param op operation to cancel | 353 | * @param op operation to cancel |
355 | */ | 354 | */ |
356 | void | 355 | void |
357 | GNUNET_RECLAIM_cancel (struct GNUNET_RECLAIM_Operation *op); | 356 | GNUNET_RECLAIM_cancel(struct GNUNET_RECLAIM_Operation *op); |
358 | 357 | ||
359 | 358 | ||
360 | #if 0 /* keep Emacsens' auto-indent happy */ | 359 | #if 0 /* keep Emacsens' auto-indent happy */ |