diff options
Diffstat (limited to 'src/credential/gnunet-credential.c')
-rw-r--r-- | src/credential/gnunet-credential.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/credential/gnunet-credential.c b/src/credential/gnunet-credential.c index f2d967eea..aa9828d4b 100644 --- a/src/credential/gnunet-credential.c +++ b/src/credential/gnunet-credential.c | |||
@@ -264,6 +264,17 @@ do_timeout (void *cls) | |||
264 | } | 264 | } |
265 | 265 | ||
266 | static void | 266 | static void |
267 | handle_intermediate_result(void *cls, | ||
268 | struct GNUNET_CREDENTIAL_Delegation *dd) | ||
269 | { | ||
270 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Intermediate result: %s.%s <- %s.%s\n", | ||
271 | GNUNET_CRYPTO_ecdsa_public_key_to_string (&dd->issuer_key), | ||
272 | dd->issuer_attribute, | ||
273 | GNUNET_CRYPTO_ecdsa_public_key_to_string (&dd->subject_key), | ||
274 | dd->subject_attribute); | ||
275 | } | ||
276 | |||
277 | static void | ||
267 | handle_collect_result (void *cls, | 278 | handle_collect_result (void *cls, |
268 | unsigned int d_count, | 279 | unsigned int d_count, |
269 | struct GNUNET_CREDENTIAL_Delegation *dc, | 280 | struct GNUNET_CREDENTIAL_Delegation *dc, |
@@ -395,7 +406,9 @@ identity_cb (void *cls, const struct GNUNET_IDENTITY_Ego *ego) | |||
395 | privkey, | 406 | privkey, |
396 | direction, | 407 | direction, |
397 | &handle_collect_result, | 408 | &handle_collect_result, |
398 | NULL); | 409 | NULL, |
410 | &handle_intermediate_result, | ||
411 | NULL); | ||
399 | return; | 412 | return; |
400 | } | 413 | } |
401 | GNUNET_SCHEDULER_shutdown (); | 414 | GNUNET_SCHEDULER_shutdown (); |
@@ -901,7 +914,9 @@ run (void *cls, | |||
901 | delegates, | 914 | delegates, |
902 | direction, | 915 | direction, |
903 | &handle_verify_result, | 916 | &handle_verify_result, |
904 | NULL); | 917 | NULL, |
918 | &handle_intermediate_result, | ||
919 | NULL); | ||
905 | for (i = 0; i < count; i++) | 920 | for (i = 0; i < count; i++) |
906 | { | 921 | { |
907 | GNUNET_free ((char *) delegates[i].issuer_attribute); | 922 | GNUNET_free ((char *) delegates[i].issuer_attribute); |