aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_pseu_shorten.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-13 17:10:07 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-13 17:10:07 +0000
commitbfbbb1e8700093783da55c84221fc688eee4c9a0 (patch)
tree83693440965fff521bc21af1debf963b95d77471 /src/gns/test_gns_pseu_shorten.c
parentee32003b7e606767f9b89715cb956d863fe067d9 (diff)
downloadgnunet-bfbbb1e8700093783da55c84221fc688eee4c9a0.tar.gz
gnunet-bfbbb1e8700093783da55c84221fc688eee4c9a0.zip
-getting rid of duplication of record type values / enum GNUNET_GNS_RecordType
Diffstat (limited to 'src/gns/test_gns_pseu_shorten.c')
-rw-r--r--src/gns/test_gns_pseu_shorten.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gns/test_gns_pseu_shorten.c b/src/gns/test_gns_pseu_shorten.c
index ba7cd2492..c6724ab05 100644
--- a/src/gns/test_gns_pseu_shorten.c
+++ b/src/gns/test_gns_pseu_shorten.c
@@ -200,7 +200,7 @@ on_lookup_result (void *cls, uint32_t rd_count,
200 for (i=0; i<rd_count; i++) 200 for (i=0; i<rd_count; i++)
201 { 201 {
202 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "type: %d\n", rd[i].record_type); 202 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "type: %d\n", rd[i].record_type);
203 if (rd[i].record_type == GNUNET_GNS_RECORD_A) 203 if (rd[i].record_type == GNUNET_DNSPARSER_TYPE_A)
204 { 204 {
205 memcpy(&a, rd[i].data, sizeof(a)); 205 memcpy(&a, rd[i].data, sizeof(a));
206 addr = inet_ntoa(a); 206 addr = inet_ntoa(a);
@@ -247,7 +247,7 @@ commence_testing (void *cls, int success)
247 } 247 }
248 GNUNET_GNS_lookup_zone (gns_handle, TEST_DOMAIN, 248 GNUNET_GNS_lookup_zone (gns_handle, TEST_DOMAIN,
249 &our_zone, 249 &our_zone,
250 GNUNET_GNS_RECORD_A, 250 GNUNET_DNSPARSER_TYPE_A,
251 GNUNET_NO, 251 GNUNET_NO,
252 short_key, 252 short_key,
253 &on_lookup_result, TEST_DOMAIN); 253 &on_lookup_result, TEST_DOMAIN);
@@ -272,7 +272,7 @@ put_pseu_dht (void *cls, int success)
272 rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us; 272 rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us;
273 rd.data_size = strlen(TEST_PSEU_ALICE)+1; 273 rd.data_size = strlen(TEST_PSEU_ALICE)+1;
274 rd.data = TEST_PSEU_ALICE; 274 rd.data = TEST_PSEU_ALICE;
275 rd.record_type = GNUNET_GNS_RECORD_PSEU; 275 rd.record_type = GNUNET_NAMESTORE_TYPE_PSEU;
276 rd.flags = 0; 276 rd.flags = 0;
277 277
278 sig = GNUNET_NAMESTORE_create_signature(alice_key, 278 sig = GNUNET_NAMESTORE_create_signature(alice_key,
@@ -447,7 +447,7 @@ put_pkey_dht (void *cls, int32_t success, const char *emsg)
447 rd.expiration_time = UINT64_MAX; 447 rd.expiration_time = UINT64_MAX;
448 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 448 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
449 rd.data = &alice_hash; 449 rd.data = &alice_hash;
450 rd.record_type = GNUNET_GNS_RECORD_PKEY; 450 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY;
451 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 451 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
452 452
453 sig = GNUNET_NAMESTORE_create_signature (bob_key, 453 sig = GNUNET_NAMESTORE_create_signature (bob_key,
@@ -518,7 +518,7 @@ fin_init_zone (void *cls, int32_t success, const char *emsg)
518 rd.expiration_time = UINT64_MAX; 518 rd.expiration_time = UINT64_MAX;
519 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 519 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
520 rd.data = &bob_hash; 520 rd.data = &bob_hash;
521 rd.record_type = GNUNET_GNS_RECORD_PKEY; 521 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY;
522 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 522 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
523 523
524 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, 524 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
@@ -539,7 +539,7 @@ cont_init_zone (void *cls, int32_t success, const char *emsg)
539 rd.expiration_time = UINT64_MAX; 539 rd.expiration_time = UINT64_MAX;
540 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 540 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
541 rd.data = &short_zone; 541 rd.data = &short_zone;
542 rd.record_type = GNUNET_GNS_RECORD_PKEY; 542 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY;
543 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 543 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
544 544
545 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, 545 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
@@ -640,7 +640,7 @@ do_check (void *cls,
640 rd.expiration_time = UINT64_MAX; 640 rd.expiration_time = UINT64_MAX;
641 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 641 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
642 rd.data = &priv_zone; 642 rd.data = &priv_zone;
643 rd.record_type = GNUNET_GNS_RECORD_PKEY; 643 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY;
644 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 644 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
645 645
646 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, 646 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,