diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-06 14:18:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-06 14:18:31 +0000 |
commit | fe76c075e315c0351e2fe465434ae39087daf014 (patch) | |
tree | 436887ccaf331932a3c13a8b9d2a2a710dad4be6 /src/namestore/test_namestore_api_zone_iteration.c | |
parent | 7eb2835d8a494c83aedb720a2ac6f6e5ba23f22f (diff) | |
download | gnunet-fe76c075e315c0351e2fe465434ae39087daf014.tar.gz gnunet-fe76c075e315c0351e2fe465434ae39087daf014.zip |
moving to new, fixed-size encoding of public and private ECC keys everywhere, also improving ECC API to better support ECRS/GADS operations
Diffstat (limited to 'src/namestore/test_namestore_api_zone_iteration.c')
-rw-r--r-- | src/namestore/test_namestore_api_zone_iteration.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration.c b/src/namestore/test_namestore_api_zone_iteration.c index f2d77d2ac..63e4adf40 100644 --- a/src/namestore/test_namestore_api_zone_iteration.c +++ b/src/namestore/test_namestore_api_zone_iteration.c | |||
@@ -39,13 +39,13 @@ static GNUNET_SCHEDULER_TaskIdentifier stopiteration_task; | |||
39 | 39 | ||
40 | static struct GNUNET_CRYPTO_EccPrivateKey * privkey; | 40 | static struct GNUNET_CRYPTO_EccPrivateKey * privkey; |
41 | 41 | ||
42 | static struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pubkey; | 42 | static struct GNUNET_CRYPTO_EccPublicKey pubkey; |
43 | 43 | ||
44 | static struct GNUNET_HashCode zone; | 44 | static struct GNUNET_HashCode zone; |
45 | 45 | ||
46 | static struct GNUNET_CRYPTO_EccPrivateKey * privkey2; | 46 | static struct GNUNET_CRYPTO_EccPrivateKey * privkey2; |
47 | 47 | ||
48 | static struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pubkey2; | 48 | static struct GNUNET_CRYPTO_EccPublicKey pubkey2; |
49 | 49 | ||
50 | static struct GNUNET_HashCode zone2; | 50 | static struct GNUNET_HashCode zone2; |
51 | 51 | ||
@@ -179,7 +179,7 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
179 | 179 | ||
180 | static void | 180 | static void |
181 | zone_proc (void *cls, | 181 | zone_proc (void *cls, |
182 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *zone_key, | 182 | const struct GNUNET_CRYPTO_EccPublicKey *zone_key, |
183 | struct GNUNET_TIME_Absolute expire, | 183 | struct GNUNET_TIME_Absolute expire, |
184 | const char *name, | 184 | const char *name, |
185 | unsigned int rd_count, | 185 | unsigned int rd_count, |
@@ -204,7 +204,7 @@ zone_proc (void *cls, | |||
204 | if (GNUNET_OK != GNUNET_NAMESTORE_verify_signature (zone_key, expire, name, rd_count, rd, signature)) | 204 | if (GNUNET_OK != GNUNET_NAMESTORE_verify_signature (zone_key, expire, name, rd_count, rd, signature)) |
205 | { | 205 | { |
206 | struct GNUNET_HashCode zone_key_hash; | 206 | struct GNUNET_HashCode zone_key_hash; |
207 | GNUNET_CRYPTO_hash (zone_key, sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), &zone_key_hash); | 207 | GNUNET_CRYPTO_hash (zone_key, sizeof (struct GNUNET_CRYPTO_EccPublicKey), &zone_key_hash); |
208 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Verifying signature for `%s' in zone `%s' with %u records and expiration %llu failed\n", name, GNUNET_h2s(&zone_key_hash), rd_count, expire.abs_value); | 208 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Verifying signature for `%s' in zone `%s' with %u records and expiration %llu failed\n", name, GNUNET_h2s(&zone_key_hash), rd_count, expire.abs_value); |
209 | 209 | ||
210 | failed = GNUNET_YES; | 210 | failed = GNUNET_YES; |
@@ -354,7 +354,7 @@ create_record (unsigned int count) | |||
354 | */ | 354 | */ |
355 | static void | 355 | static void |
356 | empty_zone_proc (void *cls, | 356 | empty_zone_proc (void *cls, |
357 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *zone_key, | 357 | const struct GNUNET_CRYPTO_EccPublicKey *zone_key, |
358 | struct GNUNET_TIME_Absolute expire, | 358 | struct GNUNET_TIME_Absolute expire, |
359 | const char *name, | 359 | const char *name, |
360 | unsigned int rd_count, | 360 | unsigned int rd_count, |