diff options
Diffstat (limited to 'src/gns/test_gns_simple_delegated_lookup.c')
-rw-r--r-- | src/gns/test_gns_simple_delegated_lookup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gns/test_gns_simple_delegated_lookup.c b/src/gns/test_gns_simple_delegated_lookup.c index 8b5f8bc38..522b74d29 100644 --- a/src/gns/test_gns_simple_delegated_lookup.c +++ b/src/gns/test_gns_simple_delegated_lookup.c | |||
@@ -138,7 +138,7 @@ on_lookup_result (void *cls, uint32_t rd_count, | |||
138 | for (i=0; i<rd_count; i++) | 138 | for (i=0; i<rd_count; i++) |
139 | { | 139 | { |
140 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "type: %d\n", rd[i].record_type); | 140 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "type: %d\n", rd[i].record_type); |
141 | if (rd[i].record_type != GNUNET_GNS_RECORD_A) | 141 | if (rd[i].record_type != GNUNET_DNSPARSER_TYPE_A) |
142 | continue; | 142 | continue; |
143 | memcpy (&a, rd[i].data, sizeof (a)); | 143 | memcpy (&a, rd[i].data, sizeof (a)); |
144 | addr = inet_ntoa (a); | 144 | addr = inet_ntoa (a); |
@@ -177,7 +177,7 @@ commence_testing (void *cls, int32_t success, const char *emsg) | |||
177 | GNUNET_SCHEDULER_shutdown (); | 177 | GNUNET_SCHEDULER_shutdown (); |
178 | return; | 178 | return; |
179 | } | 179 | } |
180 | GNUNET_GNS_lookup (gns_handle, TEST_DOMAIN, GNUNET_GNS_RECORD_A, | 180 | GNUNET_GNS_lookup (gns_handle, TEST_DOMAIN, GNUNET_DNSPARSER_TYPE_A, |
181 | GNUNET_NO, | 181 | GNUNET_NO, |
182 | NULL, | 182 | NULL, |
183 | &on_lookup_result, TEST_DOMAIN); | 183 | &on_lookup_result, TEST_DOMAIN); |
@@ -232,7 +232,7 @@ do_check (void *cls, | |||
232 | GNUNET_CRYPTO_short_hash (&bob_pkey, sizeof(bob_pkey), &bob_hash); | 232 | GNUNET_CRYPTO_short_hash (&bob_pkey, sizeof(bob_pkey), &bob_hash); |
233 | rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); | 233 | rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); |
234 | rd.data = &bob_hash; | 234 | rd.data = &bob_hash; |
235 | rd.record_type = GNUNET_GNS_RECORD_PKEY; | 235 | rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; |
236 | rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; | 236 | rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; |
237 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, | 237 | GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, |
238 | alice_key, | 238 | alice_key, |