diff options
Diffstat (limited to 'src/namestore/test_namestore_api_zone_iteration.c')
-rw-r--r-- | src/namestore/test_namestore_api_zone_iteration.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration.c b/src/namestore/test_namestore_api_zone_iteration.c index 94fd6d008..48671897e 100644 --- a/src/namestore/test_namestore_api_zone_iteration.c +++ b/src/namestore/test_namestore_api_zone_iteration.c | |||
@@ -34,9 +34,9 @@ static struct GNUNET_NAMESTORE_Handle * nsh; | |||
34 | 34 | ||
35 | static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; | 35 | static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; |
36 | 36 | ||
37 | static struct GNUNET_CRYPTO_EccPrivateKey * privkey; | 37 | static struct GNUNET_CRYPTO_EcdsaPrivateKey * privkey; |
38 | 38 | ||
39 | static struct GNUNET_CRYPTO_EccPrivateKey * privkey2; | 39 | static struct GNUNET_CRYPTO_EcdsaPrivateKey * privkey2; |
40 | 40 | ||
41 | static struct GNUNET_NAMESTORE_ZoneIterator *zi; | 41 | static struct GNUNET_NAMESTORE_ZoneIterator *zi; |
42 | 42 | ||
@@ -156,7 +156,7 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
156 | 156 | ||
157 | static void | 157 | static void |
158 | zone_proc (void *cls, | 158 | zone_proc (void *cls, |
159 | const struct GNUNET_CRYPTO_EccPrivateKey *zone, | 159 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
160 | const char *label, | 160 | const char *label, |
161 | unsigned int rd_count, | 161 | unsigned int rd_count, |
162 | const struct GNUNET_NAMESTORE_RecordData *rd) | 162 | const struct GNUNET_NAMESTORE_RecordData *rd) |
@@ -181,7 +181,7 @@ zone_proc (void *cls, | |||
181 | } | 181 | } |
182 | else | 182 | else |
183 | { | 183 | { |
184 | if (0 == memcmp (zone, privkey, sizeof (struct GNUNET_CRYPTO_EccPrivateKey))) | 184 | if (0 == memcmp (zone, privkey, sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) |
185 | { | 185 | { |
186 | if (0 == strcmp (label, s_name_1)) | 186 | if (0 == strcmp (label, s_name_1)) |
187 | { | 187 | { |
@@ -225,7 +225,7 @@ zone_proc (void *cls, | |||
225 | GNUNET_break (0); | 225 | GNUNET_break (0); |
226 | } | 226 | } |
227 | } | 227 | } |
228 | else if (0 == memcmp (zone, privkey2, sizeof (struct GNUNET_CRYPTO_EccPrivateKey))) | 228 | else if (0 == memcmp (zone, privkey2, sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) |
229 | { | 229 | { |
230 | if (0 == strcmp (label, s_name_3)) | 230 | if (0 == strcmp (label, s_name_3)) |
231 | { | 231 | { |
@@ -345,7 +345,7 @@ create_record (unsigned int count) | |||
345 | */ | 345 | */ |
346 | static void | 346 | static void |
347 | empty_zone_proc (void *cls, | 347 | empty_zone_proc (void *cls, |
348 | const struct GNUNET_CRYPTO_EccPrivateKey *zone, | 348 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
349 | const char *label, | 349 | const char *label, |
350 | unsigned int rd_count, | 350 | unsigned int rd_count, |
351 | const struct GNUNET_NAMESTORE_RecordData *rd) | 351 | const struct GNUNET_NAMESTORE_RecordData *rd) |
@@ -379,14 +379,14 @@ empty_zone_proc (void *cls, | |||
379 | GNUNET_asprintf(&hostkey_file,"zonefiles%s%s",DIR_SEPARATOR_STR, | 379 | GNUNET_asprintf(&hostkey_file,"zonefiles%s%s",DIR_SEPARATOR_STR, |
380 | "N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"); | 380 | "N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"); |
381 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); | 381 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); |
382 | privkey = GNUNET_CRYPTO_ecc_key_create_from_file(hostkey_file); | 382 | privkey = GNUNET_CRYPTO_ecdsa_key_create_from_file(hostkey_file); |
383 | GNUNET_free (hostkey_file); | 383 | GNUNET_free (hostkey_file); |
384 | GNUNET_assert (privkey != NULL); | 384 | GNUNET_assert (privkey != NULL); |
385 | 385 | ||
386 | GNUNET_asprintf(&hostkey_file,"zonefiles%s%s",DIR_SEPARATOR_STR, | 386 | GNUNET_asprintf(&hostkey_file,"zonefiles%s%s",DIR_SEPARATOR_STR, |
387 | "HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey"); | 387 | "HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey"); |
388 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); | 388 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); |
389 | privkey2 = GNUNET_CRYPTO_ecc_key_create_from_file(hostkey_file); | 389 | privkey2 = GNUNET_CRYPTO_ecdsa_key_create_from_file(hostkey_file); |
390 | GNUNET_free (hostkey_file); | 390 | GNUNET_free (hostkey_file); |
391 | GNUNET_assert (privkey2 != NULL); | 391 | GNUNET_assert (privkey2 != NULL); |
392 | 392 | ||