aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/gnunet-reclaim.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-10-15 09:09:23 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-10-15 12:11:22 +0200
commit5680378974db794d67b75473435a0651fad0cd24 (patch)
tree06e1426049f9604114f9328554dc324b422052f4 /src/reclaim/gnunet-reclaim.c
parent7b992510c25c0081c59c4b1f61fe42ff5dc7680d (diff)
downloadgnunet-5680378974db794d67b75473435a0651fad0cd24.tar.gz
gnunet-5680378974db794d67b75473435a0651fad0cd24.zip
- towards fix reclaim
Diffstat (limited to 'src/reclaim/gnunet-reclaim.c')
-rw-r--r--src/reclaim/gnunet-reclaim.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/reclaim/gnunet-reclaim.c b/src/reclaim/gnunet-reclaim.c
index b9306b802..cefb66b8f 100644
--- a/src/reclaim/gnunet-reclaim.c
+++ b/src/reclaim/gnunet-reclaim.c
@@ -152,12 +152,12 @@ static struct GNUNET_RECLAIM_TicketIterator *ticket_iterator;
152/** 152/**
153 * ego private key 153 * ego private key
154 */ 154 */
155static const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey; 155static const struct GNUNET_IDENTITY_PrivateKey *pkey;
156 156
157/** 157/**
158 * rp public key 158 * rp public key
159 */ 159 */
160static struct GNUNET_CRYPTO_EcdsaPublicKey rp_key; 160static struct GNUNET_IDENTITY_PublicKey rp_key;
161 161
162/** 162/**
163 * Ticket to consume 163 * Ticket to consume
@@ -261,7 +261,7 @@ store_cont (void *cls, int32_t success, const char *emsg)
261 261
262static void 262static void
263process_attrs (void *cls, 263process_attrs (void *cls,
264 const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, 264 const struct GNUNET_IDENTITY_PublicKey *identity,
265 const struct GNUNET_RECLAIM_Attribute *attr, 265 const struct GNUNET_RECLAIM_Attribute *attr,
266 const struct GNUNET_RECLAIM_Presentation *presentation) 266 const struct GNUNET_RECLAIM_Presentation *presentation)
267{ 267{
@@ -346,7 +346,7 @@ ticket_iter (void *cls, const struct GNUNET_RECLAIM_Ticket *ticket)
346 aud = 346 aud =
347 GNUNET_STRINGS_data_to_string_alloc (&ticket->audience, 347 GNUNET_STRINGS_data_to_string_alloc (&ticket->audience,
348 sizeof(struct 348 sizeof(struct
349 GNUNET_CRYPTO_EcdsaPublicKey)); 349 GNUNET_IDENTITY_PublicKey));
350 ref = GNUNET_STRINGS_data_to_string_alloc (&ticket->rnd, sizeof(ticket->rnd)); 350 ref = GNUNET_STRINGS_data_to_string_alloc (&ticket->rnd, sizeof(ticket->rnd));
351 tkt = 351 tkt =
352 GNUNET_STRINGS_data_to_string_alloc (ticket, 352 GNUNET_STRINGS_data_to_string_alloc (ticket,
@@ -511,7 +511,7 @@ iter_finished (void *cls)
511 511
512static void 512static void
513iter_cb (void *cls, 513iter_cb (void *cls,
514 const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, 514 const struct GNUNET_IDENTITY_PublicKey *identity,
515 const struct GNUNET_RECLAIM_Attribute *attr) 515 const struct GNUNET_RECLAIM_Attribute *attr)
516{ 516{
517 struct GNUNET_RECLAIM_AttributeListEntry *le; 517 struct GNUNET_RECLAIM_AttributeListEntry *le;
@@ -653,7 +653,7 @@ cred_iter_finished (void *cls)
653 653
654static void 654static void
655cred_iter_cb (void *cls, 655cred_iter_cb (void *cls,
656 const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, 656 const struct GNUNET_IDENTITY_PublicKey *identity,
657 const struct GNUNET_RECLAIM_Credential *cred) 657 const struct GNUNET_RECLAIM_Credential *cred)
658{ 658{
659 char *cred_str; 659 char *cred_str;
@@ -734,7 +734,7 @@ start_process ()
734 734
735 if ((NULL != rp) && 735 if ((NULL != rp) &&
736 (GNUNET_OK != 736 (GNUNET_OK !=
737 GNUNET_CRYPTO_ecdsa_public_key_from_string (rp, strlen (rp), &rp_key)) ) 737 GNUNET_IDENTITY_public_key_from_string (rp, &rp_key)) )
738 { 738 {
739 fprintf (stderr, "%s is not a public key!\n", rp); 739 fprintf (stderr, "%s is not a public key!\n", rp);
740 cleanup_task = GNUNET_SCHEDULER_add_now (&do_cleanup, NULL); 740 cleanup_task = GNUNET_SCHEDULER_add_now (&do_cleanup, NULL);