From fe76c075e315c0351e2fe465434ae39087daf014 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 6 Aug 2013 14:18:31 +0000 Subject: moving to new, fixed-size encoding of public and private ECC keys everywhere, also improving ECC API to better support ECRS/GADS operations --- src/namestore/test_namestore_api_zone_to_name.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/namestore/test_namestore_api_zone_to_name.c') diff --git a/src/namestore/test_namestore_api_zone_to_name.c b/src/namestore/test_namestore_api_zone_to_name.c index f0b712eb9..e1fefec09 100644 --- a/src/namestore/test_namestore_api_zone_to_name.c +++ b/src/namestore/test_namestore_api_zone_to_name.c @@ -45,7 +45,7 @@ static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; static struct GNUNET_CRYPTO_EccPrivateKey * privkey; -static struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pubkey; +static struct GNUNET_CRYPTO_EccPublicKey pubkey; static struct GNUNET_TIME_Absolute expire; @@ -98,7 +98,7 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) static void zone_to_name_proc (void *cls, - const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *zone_key, + const struct GNUNET_CRYPTO_EccPublicKey *zone_key, struct GNUNET_TIME_Absolute expire, const char *n, unsigned int rd_count, @@ -125,7 +125,7 @@ zone_to_name_proc (void *cls, fail = GNUNET_YES; GNUNET_break (0); } - if ((zone_key == NULL) || (0 != memcmp (zone_key, &pubkey, sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded)))) + if ((zone_key == NULL) || (0 != memcmp (zone_key, &pubkey, sizeof (struct GNUNET_CRYPTO_EccPublicKey)))) { fail = GNUNET_YES; GNUNET_break (0); @@ -182,7 +182,7 @@ run (void *cls, GNUNET_CRYPTO_ecc_key_get_public(privkey, &pubkey); /* zone hash */ - GNUNET_CRYPTO_short_hash (&pubkey, sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), &s_zone); + GNUNET_CRYPTO_short_hash (&pubkey, sizeof (struct GNUNET_CRYPTO_EccPublicKey), &s_zone); GNUNET_CRYPTO_short_hash (s_name, strlen (s_name) + 1, &s_zone_value); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using PKEY `%s' \n", GNUNET_NAMESTORE_short_h2s (&s_zone_value)); -- cgit v1.2.3