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.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c
index 2ff640604..322030e65 100644
--- a/src/namestore/gnunet-namestore.c
+++ b/src/namestore/gnunet-namestore.c
@@ -41,7 +41,7 @@ static struct GNUNET_NAMESTORE_Handle *ns;
41/** 41/**
42 * Private key for the our zone. 42 * Private key for the our zone.
43 */ 43 */
44static struct GNUNET_CRYPTO_EccPrivateKey zone_pkey; 44static struct GNUNET_CRYPTO_EcdsaPrivateKey zone_pkey;
45 45
46/** 46/**
47 * Handle to identity lookup. 47 * Handle to identity lookup.
@@ -334,7 +334,7 @@ del_continuation (void *cls,
334 */ 334 */
335static void 335static void
336display_record (void *cls, 336display_record (void *cls,
337 const struct GNUNET_CRYPTO_EccPrivateKey *zone_key, 337 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key,
338 const char *name, 338 const char *name,
339 unsigned int rd_len, 339 unsigned int rd_len,
340 const struct GNUNET_NAMESTORE_RecordData *rd) 340 const struct GNUNET_NAMESTORE_RecordData *rd)
@@ -413,7 +413,7 @@ sync_cb (void *cls)
413 */ 413 */
414static void 414static void
415get_existing_record (void *cls, 415get_existing_record (void *cls,
416 const struct GNUNET_CRYPTO_EccPrivateKey *zone_key, 416 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key,
417 const char *rec_name, 417 const char *rec_name,
418 unsigned int rd_count, 418 unsigned int rd_count,
419 const struct GNUNET_NAMESTORE_RecordData *rd) 419 const struct GNUNET_NAMESTORE_RecordData *rd)
@@ -524,10 +524,10 @@ static void
524handle_block (void *cls, 524handle_block (void *cls,
525 const struct GNUNET_NAMESTORE_Block *block) 525 const struct GNUNET_NAMESTORE_Block *block)
526{ 526{
527 struct GNUNET_CRYPTO_EccPublicSignKey zone_pubkey; 527 struct GNUNET_CRYPTO_EcdsaPublicKey zone_pubkey;
528 528
529 list_qe = NULL; 529 list_qe = NULL;
530 GNUNET_CRYPTO_ecc_key_get_public_for_signature (&zone_pkey, 530 GNUNET_CRYPTO_ecdsa_key_get_public (&zone_pkey,
531 &zone_pubkey); 531 &zone_pubkey);
532 if (NULL == block) 532 if (NULL == block)
533 { 533 {
@@ -560,7 +560,7 @@ handle_block (void *cls,
560 */ 560 */
561static void 561static void
562handle_reverse_lookup (void *cls, 562handle_reverse_lookup (void *cls,
563 const struct GNUNET_CRYPTO_EccPrivateKey *zone, 563 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone,
564 const char *label, 564 const char *label,
565 unsigned int rd_count, 565 unsigned int rd_count,
566 const struct GNUNET_NAMESTORE_RecordData *rd) 566 const struct GNUNET_NAMESTORE_RecordData *rd)
@@ -591,7 +591,7 @@ testservice_task (void *cls,
591 int result) 591 int result)
592{ 592{
593 const struct GNUNET_CONFIGURATION_Handle *cfg = cls; 593 const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
594 struct GNUNET_CRYPTO_EccPublicSignKey pub; 594 struct GNUNET_CRYPTO_EcdsaPublicKey pub;
595 struct GNUNET_NAMESTORE_RecordData rd; 595 struct GNUNET_NAMESTORE_RecordData rd;
596 596
597 if (GNUNET_YES != result) 597 if (GNUNET_YES != result)
@@ -608,7 +608,7 @@ testservice_task (void *cls,
608 GNUNET_SCHEDULER_shutdown (); 608 GNUNET_SCHEDULER_shutdown ();
609 return; 609 return;
610 } 610 }
611 GNUNET_CRYPTO_ecc_key_get_public_for_signature (&zone_pkey, 611 GNUNET_CRYPTO_ecdsa_key_get_public (&zone_pkey,
612 &pub); 612 &pub);
613 613
614 ns = GNUNET_NAMESTORE_connect (cfg); 614 ns = GNUNET_NAMESTORE_connect (cfg);
@@ -738,9 +738,9 @@ testservice_task (void *cls,
738 else 738 else
739 { 739 {
740 struct GNUNET_HashCode query; 740 struct GNUNET_HashCode query;
741 struct GNUNET_CRYPTO_EccPublicSignKey zone_pubkey; 741 struct GNUNET_CRYPTO_EcdsaPublicKey zone_pubkey;
742 742
743 GNUNET_CRYPTO_ecc_key_get_public_for_signature (&zone_pkey, 743 GNUNET_CRYPTO_ecdsa_key_get_public (&zone_pkey,
744 &zone_pubkey); 744 &zone_pubkey);
745 GNUNET_NAMESTORE_query_from_public_key (&zone_pubkey, 745 GNUNET_NAMESTORE_query_from_public_key (&zone_pubkey,
746 name, 746 name,
@@ -753,10 +753,10 @@ testservice_task (void *cls,
753 } 753 }
754 if (NULL != reverse_pkey) 754 if (NULL != reverse_pkey)
755 { 755 {
756 struct GNUNET_CRYPTO_EccPublicSignKey pubkey; 756 struct GNUNET_CRYPTO_EcdsaPublicKey pubkey;
757 757
758 if (GNUNET_OK != 758 if (GNUNET_OK !=
759 GNUNET_CRYPTO_ecc_public_sign_key_from_string (reverse_pkey, 759 GNUNET_CRYPTO_ecdsa_public_key_from_string (reverse_pkey,
760 strlen (reverse_pkey), 760 strlen (reverse_pkey),
761 &pubkey)) 761 &pubkey))
762 { 762 {
@@ -775,14 +775,14 @@ testservice_task (void *cls,
775 { 775 {
776 char sh[105]; 776 char sh[105];
777 char sname[64]; 777 char sname[64];
778 struct GNUNET_CRYPTO_EccPublicSignKey pkey; 778 struct GNUNET_CRYPTO_EcdsaPublicKey pkey;
779 779
780 if ( (2 != (sscanf (uri, 780 if ( (2 != (sscanf (uri,
781 "gnunet://gns/%104s/%63s", 781 "gnunet://gns/%104s/%63s",
782 sh, 782 sh,
783 sname)) ) || 783 sname)) ) ||
784 (GNUNET_OK != 784 (GNUNET_OK !=
785 GNUNET_CRYPTO_ecc_public_sign_key_from_string (sh, strlen (sh), &pkey)) ) 785 GNUNET_CRYPTO_ecdsa_public_key_from_string (sh, strlen (sh), &pkey)) )
786 { 786 {
787 fprintf (stderr, 787 fprintf (stderr,
788 _("Invalid URI `%s'\n"), 788 _("Invalid URI `%s'\n"),
@@ -793,7 +793,7 @@ testservice_task (void *cls,
793 } 793 }
794 memset (&rd, 0, sizeof (rd)); 794 memset (&rd, 0, sizeof (rd));
795 rd.data = &pkey; 795 rd.data = &pkey;
796 rd.data_size = sizeof (struct GNUNET_CRYPTO_EccPublicSignKey); 796 rd.data_size = sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey);
797 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; 797 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY;
798 if (GNUNET_YES == etime_is_rel) 798 if (GNUNET_YES == etime_is_rel)
799 { 799 {
@@ -952,11 +952,11 @@ main (int argc, char *const *argv)
952 &run, NULL)) 952 &run, NULL))
953 { 953 {
954 GNUNET_free ((void*) argv); 954 GNUNET_free ((void*) argv);
955 GNUNET_CRYPTO_ecc_key_clear (&zone_pkey); 955 GNUNET_CRYPTO_ecdsa_key_clear (&zone_pkey);
956 return 1; 956 return 1;
957 } 957 }
958 GNUNET_free ((void*) argv); 958 GNUNET_free ((void*) argv);
959 GNUNET_CRYPTO_ecc_key_clear (&zone_pkey); 959 GNUNET_CRYPTO_ecdsa_key_clear (&zone_pkey);
960 return ret; 960 return ret;
961} 961}
962 962