summaryrefslogtreecommitdiff
path: root/src/include/gnunet_reclaim_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_reclaim_service.h')
-rw-r--r--src/include/gnunet_reclaim_service.h31
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 */
67struct GNUNET_RECLAIM_Ticket { 67struct 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 */
128struct GNUNET_RECLAIM_Handle * 129struct GNUNET_RECLAIM_Handle *
129GNUNET_RECLAIM_connect(const struct GNUNET_CONFIGURATION_Handle *cfg); 130GNUNET_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 */
144struct GNUNET_RECLAIM_Operation * 145struct GNUNET_RECLAIM_Operation *
145GNUNET_RECLAIM_attribute_store( 146GNUNET_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 */
164struct GNUNET_RECLAIM_Operation * 165struct GNUNET_RECLAIM_Operation *
165GNUNET_RECLAIM_attribute_delete( 166GNUNET_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 */
196struct GNUNET_RECLAIM_AttributeIterator * 197struct GNUNET_RECLAIM_AttributeIterator *
197GNUNET_RECLAIM_get_attributes_start( 198GNUNET_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 */
211void 212void
212GNUNET_RECLAIM_get_attributes_next( 213GNUNET_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 */
223void 224void
224GNUNET_RECLAIM_get_attributes_stop( 225GNUNET_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 */
241struct GNUNET_RECLAIM_Operation * 242struct GNUNET_RECLAIM_Operation *
242GNUNET_RECLAIM_ticket_issue( 243GNUNET_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 */
263struct GNUNET_RECLAIM_Operation * 264struct GNUNET_RECLAIM_Operation *
264GNUNET_RECLAIM_ticket_revoke( 265GNUNET_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 */
283struct GNUNET_RECLAIM_Operation * 284struct GNUNET_RECLAIM_Operation *
284GNUNET_RECLAIM_ticket_consume( 285GNUNET_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 */
308struct GNUNET_RECLAIM_TicketIterator * 309struct GNUNET_RECLAIM_TicketIterator *
309GNUNET_RECLAIM_ticket_iteration_start( 310GNUNET_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 */
323void 324void
324GNUNET_RECLAIM_ticket_iteration_next(struct GNUNET_RECLAIM_TicketIterator *it); 325GNUNET_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 */
334void 335void
335GNUNET_RECLAIM_ticket_iteration_stop(struct GNUNET_RECLAIM_TicketIterator *it); 336GNUNET_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 */
343void 344void
344GNUNET_RECLAIM_disconnect(struct GNUNET_RECLAIM_Handle *h); 345GNUNET_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 */
355void 356void
356GNUNET_RECLAIM_cancel(struct GNUNET_RECLAIM_Operation *op); 357GNUNET_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 */