diff options
Diffstat (limited to 'src/reclaim/plugin_reclaim_credential_pabc.c')
-rw-r--r-- | src/reclaim/plugin_reclaim_credential_pabc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/reclaim/plugin_reclaim_credential_pabc.c b/src/reclaim/plugin_reclaim_credential_pabc.c index 89acd9032..a906805fb 100644 --- a/src/reclaim/plugin_reclaim_credential_pabc.c +++ b/src/reclaim/plugin_reclaim_credential_pabc.c | |||
@@ -154,7 +154,7 @@ inspect_attrs (char const *const key, | |||
154 | if (NULL == value) | 154 | if (NULL == value) |
155 | return; | 155 | return; |
156 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 156 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
157 | "Found attribue in PABC credential: `%s': `%s'\n", | 157 | "Found attribute in PABC credential: `%s': `%s'\n", |
158 | key, value); | 158 | key, value); |
159 | if (0 == strcmp (key, "expiration")) | 159 | if (0 == strcmp (key, "expiration")) |
160 | return; | 160 | return; |
@@ -362,7 +362,7 @@ int | |||
362 | pabc_create_presentation (void *cls, | 362 | pabc_create_presentation (void *cls, |
363 | const struct GNUNET_RECLAIM_Credential *credential, | 363 | const struct GNUNET_RECLAIM_Credential *credential, |
364 | const struct GNUNET_RECLAIM_AttributeList *attrs, | 364 | const struct GNUNET_RECLAIM_AttributeList *attrs, |
365 | struct GNUNET_RECLAIM_Presentation **pres) | 365 | struct GNUNET_RECLAIM_Presentation **presentation) |
366 | { | 366 | { |
367 | struct pabc_context *ctx = NULL; | 367 | struct pabc_context *ctx = NULL; |
368 | struct pabc_user_context *usr_ctx = NULL; | 368 | struct pabc_user_context *usr_ctx = NULL; |
@@ -508,9 +508,10 @@ pabc_create_presentation (void *cls, | |||
508 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 508 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
509 | "Presentation: %s\n", json_enc); | 509 | "Presentation: %s\n", json_enc); |
510 | // clean up | 510 | // clean up |
511 | *pres = GNUNET_RECLAIM_presentation_new (GNUNET_RECLAIM_CREDENTIAL_TYPE_PABC, | 511 | *presentation = GNUNET_RECLAIM_presentation_new ( |
512 | json_enc, | 512 | GNUNET_RECLAIM_CREDENTIAL_TYPE_PABC, |
513 | strlen (json_enc) + 1); | 513 | json_enc, |
514 | strlen (json_enc) + 1); | ||
514 | GNUNET_free (json_enc); | 515 | GNUNET_free (json_enc); |
515 | PABC_FREE_NULL (json); | 516 | PABC_FREE_NULL (json); |
516 | pabc_free_proof (ctx, pp, &proof); | 517 | pabc_free_proof (ctx, pp, &proof); |