diff options
Diffstat (limited to 'src/include/gnunet_reclaim_service.h')
-rw-r--r-- | src/include/gnunet_reclaim_service.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/include/gnunet_reclaim_service.h b/src/include/gnunet_reclaim_service.h index 9f0a141c9..237d791d9 100644 --- a/src/include/gnunet_reclaim_service.h +++ b/src/include/gnunet_reclaim_service.h | |||
@@ -64,7 +64,8 @@ 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 | { | ||
68 | /** | 69 | /** |
69 | * The ticket issuer (= the user) | 70 | * The ticket issuer (= the user) |
70 | */ | 71 | */ |
@@ -126,7 +127,7 @@ typedef void (*GNUNET_RECLAIM_AttributeResult) ( | |||
126 | * @return handle to communicate with the service | 127 | * @return handle to communicate with the service |
127 | */ | 128 | */ |
128 | struct GNUNET_RECLAIM_Handle * | 129 | struct GNUNET_RECLAIM_Handle * |
129 | GNUNET_RECLAIM_connect(const struct GNUNET_CONFIGURATION_Handle *cfg); | 130 | GNUNET_RECLAIM_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); |
130 | 131 | ||
131 | 132 | ||
132 | /** | 133 | /** |
@@ -142,7 +143,7 @@ GNUNET_RECLAIM_connect(const struct GNUNET_CONFIGURATION_Handle *cfg); | |||
142 | * @return handle Used to to abort the request | 143 | * @return handle Used to to abort the request |
143 | */ | 144 | */ |
144 | struct GNUNET_RECLAIM_Operation * | 145 | struct GNUNET_RECLAIM_Operation * |
145 | GNUNET_RECLAIM_attribute_store( | 146 | GNUNET_RECLAIM_attribute_store ( |
146 | struct GNUNET_RECLAIM_Handle *h, | 147 | struct GNUNET_RECLAIM_Handle *h, |
147 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, | 148 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, |
148 | const struct GNUNET_RECLAIM_ATTRIBUTE_Claim *attr, | 149 | const struct GNUNET_RECLAIM_ATTRIBUTE_Claim *attr, |
@@ -162,7 +163,7 @@ GNUNET_RECLAIM_attribute_store( | |||
162 | * @return handle Used to to abort the request | 163 | * @return handle Used to to abort the request |
163 | */ | 164 | */ |
164 | struct GNUNET_RECLAIM_Operation * | 165 | struct GNUNET_RECLAIM_Operation * |
165 | GNUNET_RECLAIM_attribute_delete( | 166 | GNUNET_RECLAIM_attribute_delete ( |
166 | struct GNUNET_RECLAIM_Handle *h, | 167 | struct GNUNET_RECLAIM_Handle *h, |
167 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, | 168 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, |
168 | const struct GNUNET_RECLAIM_ATTRIBUTE_Claim *attr, | 169 | const struct GNUNET_RECLAIM_ATTRIBUTE_Claim *attr, |
@@ -194,7 +195,7 @@ GNUNET_RECLAIM_attribute_delete( | |||
194 | * @return an iterator Handle to use for iteration | 195 | * @return an iterator Handle to use for iteration |
195 | */ | 196 | */ |
196 | struct GNUNET_RECLAIM_AttributeIterator * | 197 | struct GNUNET_RECLAIM_AttributeIterator * |
197 | GNUNET_RECLAIM_get_attributes_start( | 198 | GNUNET_RECLAIM_get_attributes_start ( |
198 | struct GNUNET_RECLAIM_Handle *h, | 199 | struct GNUNET_RECLAIM_Handle *h, |
199 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, | 200 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, |
200 | GNUNET_SCHEDULER_TaskCallback error_cb, void *error_cb_cls, | 201 | GNUNET_SCHEDULER_TaskCallback error_cb, void *error_cb_cls, |
@@ -209,7 +210,7 @@ GNUNET_RECLAIM_get_attributes_start( | |||
209 | * @param it The iterator | 210 | * @param it The iterator |
210 | */ | 211 | */ |
211 | void | 212 | void |
212 | GNUNET_RECLAIM_get_attributes_next( | 213 | GNUNET_RECLAIM_get_attributes_next ( |
213 | struct GNUNET_RECLAIM_AttributeIterator *it); | 214 | struct GNUNET_RECLAIM_AttributeIterator *it); |
214 | 215 | ||
215 | 216 | ||
@@ -221,7 +222,7 @@ GNUNET_RECLAIM_get_attributes_next( | |||
221 | * @param it the iterator | 222 | * @param it the iterator |
222 | */ | 223 | */ |
223 | void | 224 | void |
224 | GNUNET_RECLAIM_get_attributes_stop( | 225 | GNUNET_RECLAIM_get_attributes_stop ( |
225 | struct GNUNET_RECLAIM_AttributeIterator *it); | 226 | struct GNUNET_RECLAIM_AttributeIterator *it); |
226 | 227 | ||
227 | 228 | ||
@@ -239,7 +240,7 @@ GNUNET_RECLAIM_get_attributes_stop( | |||
239 | * @return handle to abort the operation | 240 | * @return handle to abort the operation |
240 | */ | 241 | */ |
241 | struct GNUNET_RECLAIM_Operation * | 242 | struct GNUNET_RECLAIM_Operation * |
242 | GNUNET_RECLAIM_ticket_issue( | 243 | GNUNET_RECLAIM_ticket_issue ( |
243 | struct GNUNET_RECLAIM_Handle *h, | 244 | struct GNUNET_RECLAIM_Handle *h, |
244 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *iss, | 245 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *iss, |
245 | const struct GNUNET_CRYPTO_EcdsaPublicKey *rp, | 246 | const struct GNUNET_CRYPTO_EcdsaPublicKey *rp, |
@@ -261,7 +262,7 @@ GNUNET_RECLAIM_ticket_issue( | |||
261 | * @return handle to abort the operation | 262 | * @return handle to abort the operation |
262 | */ | 263 | */ |
263 | struct GNUNET_RECLAIM_Operation * | 264 | struct GNUNET_RECLAIM_Operation * |
264 | GNUNET_RECLAIM_ticket_revoke( | 265 | GNUNET_RECLAIM_ticket_revoke ( |
265 | struct GNUNET_RECLAIM_Handle *h, | 266 | struct GNUNET_RECLAIM_Handle *h, |
266 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, | 267 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, |
267 | const struct GNUNET_RECLAIM_Ticket *ticket, | 268 | const struct GNUNET_RECLAIM_Ticket *ticket, |
@@ -281,7 +282,7 @@ GNUNET_RECLAIM_ticket_revoke( | |||
281 | * @return handle to abort the operation | 282 | * @return handle to abort the operation |
282 | */ | 283 | */ |
283 | struct GNUNET_RECLAIM_Operation * | 284 | struct GNUNET_RECLAIM_Operation * |
284 | GNUNET_RECLAIM_ticket_consume( | 285 | GNUNET_RECLAIM_ticket_consume ( |
285 | struct GNUNET_RECLAIM_Handle *h, | 286 | struct GNUNET_RECLAIM_Handle *h, |
286 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, | 287 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, |
287 | const struct GNUNET_RECLAIM_Ticket *ticket, | 288 | const struct GNUNET_RECLAIM_Ticket *ticket, |
@@ -306,7 +307,7 @@ GNUNET_RECLAIM_ticket_consume( | |||
306 | * @return an iterator handle to use for iteration | 307 | * @return an iterator handle to use for iteration |
307 | */ | 308 | */ |
308 | struct GNUNET_RECLAIM_TicketIterator * | 309 | struct GNUNET_RECLAIM_TicketIterator * |
309 | GNUNET_RECLAIM_ticket_iteration_start( | 310 | GNUNET_RECLAIM_ticket_iteration_start ( |
310 | struct GNUNET_RECLAIM_Handle *h, | 311 | struct GNUNET_RECLAIM_Handle *h, |
311 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, | 312 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, |
312 | GNUNET_SCHEDULER_TaskCallback error_cb, void *error_cb_cls, | 313 | GNUNET_SCHEDULER_TaskCallback error_cb, void *error_cb_cls, |
@@ -321,7 +322,7 @@ GNUNET_RECLAIM_ticket_iteration_start( | |||
321 | * @param it the iterator | 322 | * @param it the iterator |
322 | */ | 323 | */ |
323 | void | 324 | void |
324 | GNUNET_RECLAIM_ticket_iteration_next(struct GNUNET_RECLAIM_TicketIterator *it); | 325 | GNUNET_RECLAIM_ticket_iteration_next (struct GNUNET_RECLAIM_TicketIterator *it); |
325 | 326 | ||
326 | 327 | ||
327 | /** | 328 | /** |
@@ -332,7 +333,7 @@ GNUNET_RECLAIM_ticket_iteration_next(struct GNUNET_RECLAIM_TicketIterator *it); | |||
332 | * @param it the iterator | 333 | * @param it the iterator |
333 | */ | 334 | */ |
334 | void | 335 | void |
335 | GNUNET_RECLAIM_ticket_iteration_stop(struct GNUNET_RECLAIM_TicketIterator *it); | 336 | GNUNET_RECLAIM_ticket_iteration_stop (struct GNUNET_RECLAIM_TicketIterator *it); |
336 | 337 | ||
337 | 338 | ||
338 | /** | 339 | /** |
@@ -341,7 +342,7 @@ GNUNET_RECLAIM_ticket_iteration_stop(struct GNUNET_RECLAIM_TicketIterator *it); | |||
341 | * @param h identity provider service to disconnect | 342 | * @param h identity provider service to disconnect |
342 | */ | 343 | */ |
343 | void | 344 | void |
344 | GNUNET_RECLAIM_disconnect(struct GNUNET_RECLAIM_Handle *h); | 345 | GNUNET_RECLAIM_disconnect (struct GNUNET_RECLAIM_Handle *h); |
345 | 346 | ||
346 | 347 | ||
347 | /** | 348 | /** |
@@ -353,7 +354,7 @@ GNUNET_RECLAIM_disconnect(struct GNUNET_RECLAIM_Handle *h); | |||
353 | * @param op operation to cancel | 354 | * @param op operation to cancel |
354 | */ | 355 | */ |
355 | void | 356 | void |
356 | GNUNET_RECLAIM_cancel(struct GNUNET_RECLAIM_Operation *op); | 357 | GNUNET_RECLAIM_cancel (struct GNUNET_RECLAIM_Operation *op); |
357 | 358 | ||
358 | 359 | ||
359 | #if 0 /* keep Emacsens' auto-indent happy */ | 360 | #if 0 /* keep Emacsens' auto-indent happy */ |