diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-01-04 15:28:02 +0100 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-01-04 15:29:45 +0100 |
commit | 78705d5a49d7066a01b832546d2507456a3c5d2c (patch) | |
tree | b0e5f72bdde4574f20c0b89ee56295f83b954800 /src/credential/credential_api.c | |
parent | 272921672ec094644a1ddbbfacb96581e72ed443 (diff) | |
download | gnunet-78705d5a49d7066a01b832546d2507456a3c5d2c.tar.gz gnunet-78705d5a49d7066a01b832546d2507456a3c5d2c.zip |
-cleanup doc; fixes
Diffstat (limited to 'src/credential/credential_api.c')
-rw-r--r-- | src/credential/credential_api.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/credential/credential_api.c b/src/credential/credential_api.c index ca54137ad..677cb9ad4 100644 --- a/src/credential/credential_api.c +++ b/src/credential/credential_api.c | |||
@@ -20,7 +20,7 @@ | |||
20 | /** | 20 | /** |
21 | * @file credential/credential_api.c | 21 | * @file credential/credential_api.c |
22 | * @brief library to access the CREDENTIAL service | 22 | * @brief library to access the CREDENTIAL service |
23 | * @author Adnan Husain | 23 | * @author Martin Schanzenbach |
24 | */ | 24 | */ |
25 | #include "platform.h" | 25 | #include "platform.h" |
26 | #include "gnunet_util_lib.h" | 26 | #include "gnunet_util_lib.h" |
@@ -189,7 +189,7 @@ mq_error_handler (void *cls, | |||
189 | * Check validity of message received from the CREDENTIAL service | 189 | * Check validity of message received from the CREDENTIAL service |
190 | * | 190 | * |
191 | * @param cls the `struct GNUNET_CREDENTIAL_Handle *` | 191 | * @param cls the `struct GNUNET_CREDENTIAL_Handle *` |
192 | * @param loookup_msg the incoming message | 192 | * @param vr_msg the incoming message |
193 | */ | 193 | */ |
194 | static int | 194 | static int |
195 | check_result (void *cls, | 195 | check_result (void *cls, |
@@ -204,7 +204,7 @@ check_result (void *cls, | |||
204 | * Handler for messages received from the CREDENTIAL service | 204 | * Handler for messages received from the CREDENTIAL service |
205 | * | 205 | * |
206 | * @param cls the `struct GNUNET_CREDENTIAL_Handle *` | 206 | * @param cls the `struct GNUNET_CREDENTIAL_Handle *` |
207 | * @param loookup_msg the incoming message | 207 | * @param vr_msg the incoming message |
208 | */ | 208 | */ |
209 | static void | 209 | static void |
210 | handle_result (void *cls, | 210 | handle_result (void *cls, |
@@ -348,15 +348,15 @@ GNUNET_CREDENTIAL_disconnect (struct GNUNET_CREDENTIAL_Handle *handle) | |||
348 | * @param lr the verify request to cancel | 348 | * @param lr the verify request to cancel |
349 | */ | 349 | */ |
350 | void | 350 | void |
351 | GNUNET_CREDENTIAL_request_cancel (struct GNUNET_CREDENTIAL_Request *vr) | 351 | GNUNET_CREDENTIAL_request_cancel (struct GNUNET_CREDENTIAL_Request *lr) |
352 | { | 352 | { |
353 | struct GNUNET_CREDENTIAL_Handle *handle = vr->credential_handle; | 353 | struct GNUNET_CREDENTIAL_Handle *handle = lr->credential_handle; |
354 | 354 | ||
355 | GNUNET_CONTAINER_DLL_remove (handle->request_head, | 355 | GNUNET_CONTAINER_DLL_remove (handle->request_head, |
356 | handle->request_tail, | 356 | handle->request_tail, |
357 | vr); | 357 | lr); |
358 | GNUNET_MQ_discard (vr->env); | 358 | GNUNET_MQ_discard (lr->env); |
359 | GNUNET_free (vr); | 359 | GNUNET_free (lr); |
360 | } | 360 | } |
361 | 361 | ||
362 | 362 | ||
@@ -369,8 +369,6 @@ GNUNET_CREDENTIAL_request_cancel (struct GNUNET_CREDENTIAL_Request *vr) | |||
369 | * @param issuer_key the issuer public key | 369 | * @param issuer_key the issuer public key |
370 | * @param issuer_attribute the issuer attribute | 370 | * @param issuer_attribute the issuer attribute |
371 | * @param subject_key the subject public key | 371 | * @param subject_key the subject public key |
372 | * @param credential_count number of credentials provided | ||
373 | * @param credentials subject credentials | ||
374 | * @param proc function to call on result | 372 | * @param proc function to call on result |
375 | * @param proc_cls closure for processor | 373 | * @param proc_cls closure for processor |
376 | * @return handle to the queued request | 374 | * @return handle to the queued request |