aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_max_queries.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/test_gns_max_queries.c')
-rw-r--r--src/gns/test_gns_max_queries.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gns/test_gns_max_queries.c b/src/gns/test_gns_max_queries.c
index cc993e347..c63495ca3 100644
--- a/src/gns/test_gns_max_queries.c
+++ b/src/gns/test_gns_max_queries.c
@@ -182,7 +182,7 @@ on_lookup_result (void *cls, uint32_t rd_count,
182 for (i=0; i<rd_count; i++) 182 for (i=0; i<rd_count; i++)
183 { 183 {
184 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "type: %d\n", rd[i].record_type); 184 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "type: %d\n", rd[i].record_type);
185 if (rd[i].record_type == GNUNET_GNS_RECORD_A) 185 if (rd[i].record_type == GNUNET_DNSPARSER_TYPE_A)
186 { 186 {
187 memcpy(&a, rd[i].data, sizeof(a)); 187 memcpy(&a, rd[i].data, sizeof(a));
188 addr = inet_ntoa(a); 188 addr = inet_ntoa(a);
@@ -231,13 +231,13 @@ commence_testing (void *cls, int32_t success, const char *emsg)
231 GNUNET_snprintf(lookup_name, 231 GNUNET_snprintf(lookup_name,
232 GNUNET_DNSPARSER_MAX_NAME_LENGTH, 232 GNUNET_DNSPARSER_MAX_NAME_LENGTH,
233 "www.doesnotexist-%d.bob.gads", i); 233 "www.doesnotexist-%d.bob.gads", i);
234 lr = GNUNET_GNS_lookup (gns_handle, lookup_name, GNUNET_GNS_RECORD_A, 234 lr = GNUNET_GNS_lookup (gns_handle, lookup_name, GNUNET_DNSPARSER_TYPE_A,
235 GNUNET_NO, 235 GNUNET_NO,
236 NULL, 236 NULL,
237 &on_lookup_result_dummy, &requests[num_requests]); 237 &on_lookup_result_dummy, &requests[num_requests]);
238 requests[num_requests++] = lr; 238 requests[num_requests++] = lr;
239 } 239 }
240 lr = GNUNET_GNS_lookup (gns_handle, TEST_DOMAIN, GNUNET_GNS_RECORD_A, 240 lr = GNUNET_GNS_lookup (gns_handle, TEST_DOMAIN, GNUNET_DNSPARSER_TYPE_A,
241 GNUNET_NO, 241 GNUNET_NO,
242 NULL, 242 NULL,
243 &on_lookup_result, TEST_DOMAIN); 243 &on_lookup_result, TEST_DOMAIN);
@@ -320,7 +320,7 @@ do_check (void *cls,
320 GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash); 320 GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
321 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 321 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
322 rd.data = &bob_hash; 322 rd.data = &bob_hash;
323 rd.record_type = GNUNET_GNS_RECORD_PKEY; 323 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY;
324 324
325 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, 325 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
326 alice_key, 326 alice_key,