aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-namestore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/gnunet-namestore.c')
-rw-r--r--src/namestore/gnunet-namestore.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c
index aadf741ad..fb9b017b1 100644
--- a/src/namestore/gnunet-namestore.c
+++ b/src/namestore/gnunet-namestore.c
@@ -430,7 +430,7 @@ testservice_task (void *cls,
430 int result) 430 int result)
431{ 431{
432 const struct GNUNET_CONFIGURATION_Handle *cfg = cls; 432 const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
433 struct GNUNET_CRYPTO_EccPublicKey pub; 433 struct GNUNET_CRYPTO_EccPublicSignKey pub;
434 struct GNUNET_NAMESTORE_RecordData rd; 434 struct GNUNET_NAMESTORE_RecordData rd;
435 435
436 if (GNUNET_YES != result) 436 if (GNUNET_YES != result)
@@ -446,7 +446,7 @@ testservice_task (void *cls,
446 _("No options given\n")); 446 _("No options given\n"));
447 return; 447 return;
448 } 448 }
449 GNUNET_CRYPTO_ecc_key_get_public (&zone_pkey, 449 GNUNET_CRYPTO_ecc_key_get_public_for_signature (&zone_pkey,
450 &pub); 450 &pub);
451 451
452 ns = GNUNET_NAMESTORE_connect (cfg); 452 ns = GNUNET_NAMESTORE_connect (cfg);
@@ -575,14 +575,14 @@ testservice_task (void *cls,
575 { 575 {
576 char sh[105]; 576 char sh[105];
577 char sname[64]; 577 char sname[64];
578 struct GNUNET_CRYPTO_EccPublicKey pkey; 578 struct GNUNET_CRYPTO_EccPublicSignKey pkey;
579 579
580 if ( (2 != (sscanf (uri, 580 if ( (2 != (sscanf (uri,
581 "gnunet://gns/%104s/%63s", 581 "gnunet://gns/%104s/%63s",
582 sh, 582 sh,
583 sname)) ) || 583 sname)) ) ||
584 (GNUNET_OK != 584 (GNUNET_OK !=
585 GNUNET_CRYPTO_ecc_public_key_from_string (sh, strlen (sh), &pkey)) ) 585 GNUNET_CRYPTO_ecc_public_sign_key_from_string (sh, strlen (sh), &pkey)) )
586 { 586 {
587 fprintf (stderr, 587 fprintf (stderr,
588 _("Invalid URI `%s'\n"), 588 _("Invalid URI `%s'\n"),
@@ -593,7 +593,7 @@ testservice_task (void *cls,
593 } 593 }
594 memset (&rd, 0, sizeof (rd)); 594 memset (&rd, 0, sizeof (rd));
595 rd.data = &pkey; 595 rd.data = &pkey;
596 rd.data_size = sizeof (struct GNUNET_CRYPTO_EccPublicKey); 596 rd.data_size = sizeof (struct GNUNET_CRYPTO_EccPublicSignKey);
597 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; 597 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY;
598 if (GNUNET_YES == etime_is_rel) 598 if (GNUNET_YES == etime_is_rel)
599 { 599 {