diff options
Diffstat (limited to 'src/include/gnunet_credential_service.h')
-rw-r--r-- | src/include/gnunet_credential_service.h | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/src/include/gnunet_credential_service.h b/src/include/gnunet_credential_service.h index 67c2f2b4c..7d6f9e973 100644 --- a/src/include/gnunet_credential_service.h +++ b/src/include/gnunet_credential_service.h | |||
@@ -20,7 +20,6 @@ | |||
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @author Martin Schanzenbach | 22 | * @author Martin Schanzenbach |
23 | * @author Adnan Husain | ||
24 | * | 23 | * |
25 | * @file | 24 | * @file |
26 | * API to the Credential service | 25 | * API to the Credential service |
@@ -274,7 +273,8 @@ typedef void (*GNUNET_CREDENTIAL_RemoveDelegateResultProcessor) (void *cls, | |||
274 | * @param issuer_key the issuer public key | 273 | * @param issuer_key the issuer public key |
275 | * @param issuer_attribute the issuer attribute | 274 | * @param issuer_attribute the issuer attribute |
276 | * @param subject_key the subject public key | 275 | * @param subject_key the subject public key |
277 | * @param subject_attribute the attribute claimed by the subject | 276 | * @param credential_count number of credentials |
277 | * @param credentials the subject credentials | ||
278 | * @param proc function to call on result | 278 | * @param proc function to call on result |
279 | * @param proc_cls closure for processor | 279 | * @param proc_cls closure for processor |
280 | * @return handle to the queued request | 280 | * @return handle to the queued request |
@@ -305,6 +305,8 @@ GNUNET_CREDENTIAL_collect (struct GNUNET_CREDENTIAL_Handle *handle, | |||
305 | * @param attribute the name of the attribute to delegate | 305 | * @param attribute the name of the attribute to delegate |
306 | * @param subject the subject of the delegation | 306 | * @param subject the subject of the delegation |
307 | * @param delegated_attribute the name of the attribute that is delegated to | 307 | * @param delegated_attribute the name of the attribute that is delegated to |
308 | * @param proc the result callback | ||
309 | * @param proc_cls the result closure context | ||
308 | * @return handle to the queued request | 310 | * @return handle to the queued request |
309 | */ | 311 | */ |
310 | struct GNUNET_CREDENTIAL_Request * | 312 | struct GNUNET_CREDENTIAL_Request * |
@@ -322,6 +324,8 @@ GNUNET_CREDENTIAL_add_delegation (struct GNUNET_CREDENTIAL_Handle *handle, | |||
322 | * @param handle handle to the Credential service | 324 | * @param handle handle to the Credential service |
323 | * @param issuer the ego that was used to delegate the attribute | 325 | * @param issuer the ego that was used to delegate the attribute |
324 | * @param attribute the name of the attribute that is delegated | 326 | * @param attribute the name of the attribute that is delegated |
327 | * @param proc the callback | ||
328 | * @param proc_cls callback closure | ||
325 | * @return handle to the queued request | 329 | * @return handle to the queued request |
326 | */ | 330 | */ |
327 | struct GNUNET_CREDENTIAL_Request * | 331 | struct GNUNET_CREDENTIAL_Request * |
@@ -336,7 +340,6 @@ GNUNET_CREDENTIAL_remove_delegation (struct GNUNET_CREDENTIAL_Handle *handle, | |||
336 | /** | 340 | /** |
337 | * Issue an attribute to a subject | 341 | * Issue an attribute to a subject |
338 | * | 342 | * |
339 | * @param handle handle to the Credential service | ||
340 | * @param issuer the ego that should be used to issue the attribute | 343 | * @param issuer the ego that should be used to issue the attribute |
341 | * @param subject the subject of the attribute | 344 | * @param subject the subject of the attribute |
342 | * @param attribute the name of the attribute | 345 | * @param attribute the name of the attribute |
@@ -344,32 +347,12 @@ GNUNET_CREDENTIAL_remove_delegation (struct GNUNET_CREDENTIAL_Handle *handle, | |||
344 | * @return handle to the queued request | 347 | * @return handle to the queued request |
345 | */ | 348 | */ |
346 | struct GNUNET_CREDENTIAL_Credential* | 349 | struct GNUNET_CREDENTIAL_Credential* |
347 | GNUNET_CREDENTIAL_credential_issue ( | 350 | GNUNET_CREDENTIAL_credential_issue (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, |
348 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, | ||
349 | struct GNUNET_CRYPTO_EcdsaPublicKey *subject, | 351 | struct GNUNET_CRYPTO_EcdsaPublicKey *subject, |
350 | const char *attribute, | 352 | const char *attribute, |
351 | struct GNUNET_TIME_Absolute *expiration); | 353 | struct GNUNET_TIME_Absolute *expiration); |
352 | 354 | ||
353 | 355 | ||
354 | /** | ||
355 | * Remove a credential | ||
356 | * | ||
357 | * @param handle handle to the Credential service | ||
358 | * @param issuer the identity that issued the credential | ||
359 | * @param subject the subject of the credential | ||
360 | * @param credential the name of the credential | ||
361 | * @return handle to the queued request | ||
362 | */ | ||
363 | /** | ||
364 | struct GNUNET_CREDENTIAL_IssueRequest * | ||
365 | GNUNET_CREDENTIAL_remove (struct GNUNET_CREDENTIAL_Handle *handle, | ||
366 | struct GNUNET_IDENTITY_Ego *issuer, | ||
367 | struct GNUNET_IDENTITY_Ego *subject, | ||
368 | const char *credential, | ||
369 | GNUNET_CREDENTIAL_IssueResultProcessor proc, | ||
370 | void *proc_cls); | ||
371 | */ | ||
372 | |||
373 | 356 | ||
374 | /** | 357 | /** |
375 | * Cancel pending lookup request | 358 | * Cancel pending lookup request |
@@ -377,7 +360,7 @@ GNUNET_CREDENTIAL_credential_issue ( | |||
377 | * @param lr the lookup request to cancel | 360 | * @param lr the lookup request to cancel |
378 | */ | 361 | */ |
379 | void | 362 | void |
380 | GNUNET_CREDENTIAL_request_cancel (struct GNUNET_CREDENTIAL_Request *vr); | 363 | GNUNET_CREDENTIAL_request_cancel (struct GNUNET_CREDENTIAL_Request *lr); |
381 | 364 | ||
382 | 365 | ||
383 | #if 0 /* keep Emacsens' auto-indent happy */ | 366 | #if 0 /* keep Emacsens' auto-indent happy */ |