aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-07-01 14:00:50 +0000
committerChristian Grothoff <christian@grothoff.org>2013-07-01 14:00:50 +0000
commit5a3caf73608d411566cce83fd470a8c758d935a5 (patch)
tree6bc05abfb8bf02a52eb70b297cffdc0736ec5fd3 /src
parent5d0a78abf01bea803cf1aef4e2e18bac626d3b4b (diff)
downloadgnunet-5a3caf73608d411566cce83fd470a8c758d935a5.tar.gz
gnunet-5a3caf73608d411566cce83fd470a8c758d935a5.zip
-fix build issue, function was renamed
Diffstat (limited to 'src')
-rw-r--r--src/gns/test_gns_cname_lookup.c60
-rw-r--r--src/gns/test_gns_dht_delegated_lookup.c12
-rw-r--r--src/gns/test_gns_dht_three_peers.c17
-rw-r--r--src/gns/test_gns_max_queries.c24
-rw-r--r--src/gns/test_gns_ns_lookup.c63
-rw-r--r--src/gns/test_gns_pseu_shorten.c36
-rw-r--r--src/gns/test_gns_revocation.c24
-rw-r--r--src/gns/test_gns_simple_delegated_lookup.c12
-rw-r--r--src/gns/test_gns_simple_get_authority.c20
-rw-r--r--src/gns/test_gns_simple_lookup.c12
-rw-r--r--src/gns/test_gns_simple_mx_lookup.c12
-rw-r--r--src/gns/test_gns_simple_shorten.c25
-rw-r--r--src/gns/test_gns_simple_srv_lookup.c12
-rw-r--r--src/gns/test_gns_simple_zkey_lookup.c12
14 files changed, 163 insertions, 178 deletions
diff --git a/src/gns/test_gns_cname_lookup.c b/src/gns/test_gns_cname_lookup.c
index 4d15175e1..323adf385 100644
--- a/src/gns/test_gns_cname_lookup.c
+++ b/src/gns/test_gns_cname_lookup.c
@@ -378,57 +378,57 @@ do_check (void *cls,
378 rd.record_type = GNUNET_DNSPARSER_TYPE_A; 378 rd.record_type = GNUNET_DNSPARSER_TYPE_A;
379 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 379 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
380 380
381 GNUNET_NAMESTORE_record_create (namestore_handle, 381 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
382 alice_key, 382 alice_key,
383 TEST_RECORD_NAME_SERVER, 383 TEST_RECORD_NAME_SERVER,
384 &rd, 384 1, &rd,
385 NULL, 385 NULL,
386 NULL); 386 NULL);
387 387
388 rd.data_size = strlen (TEST_RECORD_CNAME_PLUS); 388 rd.data_size = strlen (TEST_RECORD_CNAME_PLUS);
389 rd.data = TEST_RECORD_CNAME_PLUS; 389 rd.data = TEST_RECORD_CNAME_PLUS;
390 rd.record_type = GNUNET_GNS_RECORD_CNAME; 390 rd.record_type = GNUNET_GNS_RECORD_CNAME;
391 391
392 GNUNET_NAMESTORE_record_create (namestore_handle, 392 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
393 alice_key, 393 alice_key,
394 TEST_RECORD_NAME_PLUS, 394 TEST_RECORD_NAME_PLUS,
395 &rd, 395 1, &rd,
396 NULL, 396 NULL,
397 NULL); 397 NULL);
398 398
399 rd.data_size = strlen (TEST_RECORD_CNAME_ZKEY); 399 rd.data_size = strlen (TEST_RECORD_CNAME_ZKEY);
400 rd.data = TEST_RECORD_CNAME_ZKEY; 400 rd.data = TEST_RECORD_CNAME_ZKEY;
401 rd.record_type = GNUNET_GNS_RECORD_CNAME; 401 rd.record_type = GNUNET_GNS_RECORD_CNAME;
402 402
403 GNUNET_NAMESTORE_record_create (namestore_handle, 403 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
404 alice_key, 404 alice_key,
405 TEST_RECORD_NAME_ZKEY, 405 TEST_RECORD_NAME_ZKEY,
406 &rd, 406 1, &rd,
407 NULL, 407 NULL,
408 NULL); 408 NULL);
409 409
410 rd.data_size = strlen (TEST_RECORD_CNAME_DNS); 410 rd.data_size = strlen (TEST_RECORD_CNAME_DNS);
411 rd.data = TEST_RECORD_CNAME_DNS; 411 rd.data = TEST_RECORD_CNAME_DNS;
412 rd.record_type = GNUNET_GNS_RECORD_CNAME; 412 rd.record_type = GNUNET_GNS_RECORD_CNAME;
413 413
414 GNUNET_NAMESTORE_record_create (namestore_handle, 414 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
415 alice_key, 415 alice_key,
416 TEST_RECORD_NAME_DNS, 416 TEST_RECORD_NAME_DNS,
417 &rd, 417 1, &rd,
418 NULL, 418 NULL,
419 NULL); 419 NULL);
420 420
421 GNUNET_assert(1 == inet_pton (AF_INET, TEST_IP_ZKEY, &web)); 421 GNUNET_assert(1 == inet_pton (AF_INET, TEST_IP_ZKEY, &web));
422 rd.data_size = sizeof(struct in_addr); 422 rd.data_size = sizeof(struct in_addr);
423 rd.data = &web; 423 rd.data = &web;
424 rd.record_type = GNUNET_DNSPARSER_TYPE_A; 424 rd.record_type = GNUNET_DNSPARSER_TYPE_A;
425 425
426 GNUNET_NAMESTORE_record_create (namestore_handle, 426 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
427 bob_key, 427 bob_key,
428 TEST_RECORD_NAME_PLUS, 428 TEST_RECORD_NAME_PLUS,
429 &rd, 429 1, &rd,
430 &commence_testing, 430 &commence_testing,
431 NULL); 431 NULL);
432 GNUNET_CRYPTO_ecc_key_free(alice_key); 432 GNUNET_CRYPTO_ecc_key_free(alice_key);
433 GNUNET_CRYPTO_ecc_key_free(bob_key); 433 GNUNET_CRYPTO_ecc_key_free(bob_key);
434} 434}
diff --git a/src/gns/test_gns_dht_delegated_lookup.c b/src/gns/test_gns_dht_delegated_lookup.c
index ded45ecb0..e743e0fd3 100644
--- a/src/gns/test_gns_dht_delegated_lookup.c
+++ b/src/gns/test_gns_dht_delegated_lookup.c
@@ -346,12 +346,12 @@ do_check (void *cls,
346 rd.record_type = GNUNET_GNS_RECORD_PKEY; 346 rd.record_type = GNUNET_GNS_RECORD_PKEY;
347 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 347 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
348 348
349 GNUNET_NAMESTORE_record_create (namestore_handle, 349 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
350 alice_key, 350 alice_key,
351 TEST_AUTHORITY_NAME, 351 TEST_AUTHORITY_NAME,
352 &rd, 352 1, &rd,
353 &put_dht, 353 &put_dht,
354 NULL); 354 NULL);
355} 355}
356 356
357 357
diff --git a/src/gns/test_gns_dht_three_peers.c b/src/gns/test_gns_dht_three_peers.c
index 227ca4606..58edb9cc5 100644
--- a/src/gns/test_gns_dht_three_peers.c
+++ b/src/gns/test_gns_dht_three_peers.c
@@ -353,14 +353,19 @@ setup_dave (const struct GNUNET_CONFIGURATION_Handle * cfg)
353 rd.record_type = GNUNET_GNS_RECORD_A; 353 rd.record_type = GNUNET_GNS_RECORD_A;
354 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 354 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
355 355
356 GNUNET_NAMESTORE_record_create (nh[0], key, "www", &rd, NULL, NULL); 356 GNUNET_NAMESTORE_record_put_by_authority (nh[0], key, "www",
357 1, &rd,
358 NULL, NULL);
357 359
358 rd.data_size = strlen(TEST_DAVE_PSEU); 360 rd.data_size = strlen(TEST_DAVE_PSEU);
359 rd.data = TEST_DAVE_PSEU; 361 rd.data = TEST_DAVE_PSEU;
360 rd.record_type = GNUNET_GNS_RECORD_PSEU; 362 rd.record_type = GNUNET_GNS_RECORD_PSEU;
361 363
362 364
363 GNUNET_NAMESTORE_record_create (nh[0], key, GNUNET_GNS_MASTERZONE_STR, &rd, &cont_ns, nh[0]); 365 GNUNET_NAMESTORE_record_put_by_authority (nh[0], key,
366 GNUNET_GNS_MASTERZONE_STR,
367 1, &rd,
368 &cont_ns, nh[0]);
364 369
365 GNUNET_CRYPTO_ecc_key_free(key); 370 GNUNET_CRYPTO_ecc_key_free(key);
366 GNUNET_free(keyfile); 371 GNUNET_free(keyfile);
@@ -416,7 +421,9 @@ setup_bob (const struct GNUNET_CONFIGURATION_Handle * cfg)
416 rd.record_type = GNUNET_GNS_RECORD_PKEY; 421 rd.record_type = GNUNET_GNS_RECORD_PKEY;
417 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 422 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
418 423
419 GNUNET_NAMESTORE_record_create (nh[1], key, "buddy", &rd, &cont_ns, nh[1]); 424 GNUNET_NAMESTORE_record_put_by_authority (nh[1], key, "buddy",
425 1, &rd,
426 &cont_ns, nh[1]);
420 427
421 GNUNET_CRYPTO_ecc_key_free(key); 428 GNUNET_CRYPTO_ecc_key_free(key);
422 GNUNET_free(keyfile); 429 GNUNET_free(keyfile);
@@ -466,7 +473,9 @@ setup_alice (const struct GNUNET_CONFIGURATION_Handle * cfg)
466 rd.record_type = GNUNET_GNS_RECORD_PKEY; 473 rd.record_type = GNUNET_GNS_RECORD_PKEY;
467 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 474 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
468 475
469 GNUNET_NAMESTORE_record_create (nh[2], key, "bob", &rd, &cont_ns, nh[2]); 476 GNUNET_NAMESTORE_record_put_by_authority (nh[2], key, "bob",
477 1, &rd,
478 &cont_ns, nh[2]);
470 479
471 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Setting up alice gns\n"); 480 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Setting up alice gns\n");
472 gh = GNUNET_GNS_connect (cfg_handles[2]); 481 gh = GNUNET_GNS_connect (cfg_handles[2]);
diff --git a/src/gns/test_gns_max_queries.c b/src/gns/test_gns_max_queries.c
index 16084eb4b..82273798f 100644
--- a/src/gns/test_gns_max_queries.c
+++ b/src/gns/test_gns_max_queries.c
@@ -310,24 +310,24 @@ do_check (void *cls,
310 rd.record_type = GNUNET_DNSPARSER_TYPE_A; 310 rd.record_type = GNUNET_DNSPARSER_TYPE_A;
311 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 311 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
312 312
313 GNUNET_NAMESTORE_record_create (namestore_handle, 313 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
314 alice_key, 314 alice_key,
315 TEST_RECORD_NAME, 315 TEST_RECORD_NAME,
316 &rd, 316 1, &rd,
317 NULL, 317 NULL,
318 NULL); 318 NULL);
319 319
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_GNS_RECORD_PKEY;
324 324
325 GNUNET_NAMESTORE_record_create (namestore_handle, 325 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
326 alice_key, 326 alice_key,
327 TEST_AUTHORITY_NAME, 327 TEST_AUTHORITY_NAME,
328 &rd, 328 1, &rd,
329 &commence_testing, 329 &commence_testing,
330 NULL); 330 NULL);
331 331
332 GNUNET_CRYPTO_ecc_key_free(alice_key); 332 GNUNET_CRYPTO_ecc_key_free(alice_key);
333 GNUNET_CRYPTO_ecc_key_free(bob_key); 333 GNUNET_CRYPTO_ecc_key_free(bob_key);
diff --git a/src/gns/test_gns_ns_lookup.c b/src/gns/test_gns_ns_lookup.c
index e0803b848..e62d34e9a 100644
--- a/src/gns/test_gns_ns_lookup.c
+++ b/src/gns/test_gns_ns_lookup.c
@@ -549,37 +549,6 @@ commence_testing (void *cls, int32_t success, const char *emsg)
549 549
550 550
551/** 551/**
552 * Function called once we've created the first NS record,
553 * create the second one.
554 *
555 * @param cls closure, unused
556 * @param success GNUNET_OK on success
557 * @param emsg error message, NULL on success
558 */
559static void
560create_next_record (void *cls,
561 int32_t success,
562 const char *emsg)
563{
564 struct GNUNET_NAMESTORE_RecordData rd;
565
566 qe = NULL;
567 if (NULL != emsg)
568 FPRINTF (stderr, "Failed to create record: %s\n", emsg);
569 GNUNET_assert (GNUNET_YES == success);
570 rd.data_size = strlen (TEST_RECORD_NS);
571 rd.data = TEST_RECORD_NS;
572 rd.record_type = GNUNET_GNS_RECORD_NS;
573 qe = GNUNET_NAMESTORE_record_create (namestore_handle,
574 alice_key,
575 TEST_RECORD_NAME,
576 &rd,
577 &commence_testing,
578 NULL);
579}
580
581
582/**
583 * Peer is ready, run the actual test. Begins by storing 552 * Peer is ready, run the actual test. Begins by storing
584 * a record in the namestore. 553 * a record in the namestore.
585 * 554 *
@@ -594,7 +563,7 @@ do_check (void *cls,
594{ 563{
595 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; 564 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey;
596 char* alice_keyfile; 565 char* alice_keyfile;
597 struct GNUNET_NAMESTORE_RecordData rd; 566 struct GNUNET_NAMESTORE_RecordData rd[2];
598 struct in_addr ns; 567 struct in_addr ns;
599 568
600 cfg = ccfg; 569 cfg = ccfg;
@@ -627,19 +596,25 @@ do_check (void *cls,
627 596
628 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 597 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
629 "Creating NS records\n"); 598 "Creating NS records\n");
630 rd.expiration_time = UINT64_MAX; 599 rd[0].expiration_time = UINT64_MAX;
631 GNUNET_assert(1 == inet_pton (AF_INET, TEST_IP_NS, &ns)); 600 GNUNET_assert(1 == inet_pton (AF_INET, TEST_IP_NS, &ns));
632 rd.data_size = sizeof (struct in_addr); 601 rd[0].data_size = sizeof (struct in_addr);
633 rd.data = &ns; 602 rd[0].data = &ns;
634 rd.record_type = GNUNET_DNSPARSER_TYPE_A; 603 rd[0].record_type = GNUNET_DNSPARSER_TYPE_A;
635 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 604 rd[0].flags = GNUNET_NAMESTORE_RF_AUTHORITY;
636 605
637 qe = GNUNET_NAMESTORE_record_create (namestore_handle, 606 rd[1].expiration_time = UINT64_MAX;
638 alice_key, 607 rd[1].data_size = strlen (TEST_RECORD_NS);
639 TEST_RECORD_NAME, 608 rd[1].data = TEST_RECORD_NS;
640 &rd, 609 rd[1].record_type = GNUNET_GNS_RECORD_NS;
641 &create_next_record, 610 rd[1].flags = GNUNET_NAMESTORE_RF_AUTHORITY;
642 NULL); 611
612 qe = GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
613 alice_key,
614 TEST_RECORD_NAME,
615 2, rd,
616 &commence_testing,
617 NULL);
643} 618}
644 619
645 620
diff --git a/src/gns/test_gns_pseu_shorten.c b/src/gns/test_gns_pseu_shorten.c
index a104d38fc..62e94dfcb 100644
--- a/src/gns/test_gns_pseu_shorten.c
+++ b/src/gns/test_gns_pseu_shorten.c
@@ -523,12 +523,12 @@ fin_init_zone (void *cls, int32_t success, const char *emsg)
523 rd.record_type = GNUNET_GNS_RECORD_PKEY; 523 rd.record_type = GNUNET_GNS_RECORD_PKEY;
524 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 524 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
525 525
526 GNUNET_NAMESTORE_record_create (namestore_handle, 526 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
527 our_key, 527 our_key,
528 TEST_AUTHORITY_BOB, 528 TEST_AUTHORITY_BOB,
529 &rd, 529 1, &rd,
530 &put_pkey_dht, 530 &put_pkey_dht,
531 NULL); 531 NULL);
532 532
533} 533}
534 534
@@ -543,12 +543,12 @@ cont_init_zone (void *cls, int32_t success, const char *emsg)
543 rd.record_type = GNUNET_GNS_RECORD_PKEY; 543 rd.record_type = GNUNET_GNS_RECORD_PKEY;
544 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 544 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
545 545
546 GNUNET_NAMESTORE_record_create (namestore_handle, 546 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
547 priv_key, 547 priv_key,
548 TEST_SHORTEN_ZONE, 548 TEST_SHORTEN_ZONE,
549 &rd, 549 1, &rd,
550 &fin_init_zone, 550 &fin_init_zone,
551 NULL); 551 NULL);
552} 552}
553 553
554 554
@@ -638,12 +638,12 @@ do_check (void *cls,
638 rd.record_type = GNUNET_GNS_RECORD_PKEY; 638 rd.record_type = GNUNET_GNS_RECORD_PKEY;
639 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 639 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
640 640
641 GNUNET_NAMESTORE_record_create (namestore_handle, 641 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
642 our_key, 642 our_key,
643 TEST_PRIVATE_ZONE, 643 TEST_PRIVATE_ZONE,
644 &rd, 644 1, &rd,
645 &cont_init_zone, 645 &cont_init_zone,
646 NULL); 646 NULL);
647} 647}
648 648
649 649
diff --git a/src/gns/test_gns_revocation.c b/src/gns/test_gns_revocation.c
index 540f58a35..c491db4aa 100644
--- a/src/gns/test_gns_revocation.c
+++ b/src/gns/test_gns_revocation.c
@@ -228,12 +228,12 @@ do_check (void *cls,
228 rd.record_type = GNUNET_GNS_RECORD_PKEY; 228 rd.record_type = GNUNET_GNS_RECORD_PKEY;
229 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 229 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
230 230
231 GNUNET_NAMESTORE_record_create (namestore_handle, 231 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
232 alice_key, 232 alice_key,
233 TEST_AUTHORITY_NAME, 233 TEST_AUTHORITY_NAME,
234 &rd, 234 1, &rd,
235 NULL, 235 NULL,
236 NULL); 236 NULL);
237 237
238 rd.data_size = sizeof(struct in_addr); 238 rd.data_size = sizeof(struct in_addr);
239 rd.data = web; 239 rd.data = web;
@@ -255,12 +255,12 @@ do_check (void *cls,
255 rd.data_size = 0; 255 rd.data_size = 0;
256 rd.record_type = GNUNET_GNS_RECORD_REV; 256 rd.record_type = GNUNET_GNS_RECORD_REV;
257 257
258 GNUNET_NAMESTORE_record_create (namestore_handle, 258 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
259 bob_key, 259 bob_key,
260 GNUNET_GNS_MASTERZONE_STR, 260 GNUNET_GNS_MASTERZONE_STR,
261 &rd, 261 1, &rd,
262 &commence_testing, 262 &commence_testing,
263 NULL); 263 NULL);
264 GNUNET_free (alice_keyfile); 264 GNUNET_free (alice_keyfile);
265 GNUNET_free (web); 265 GNUNET_free (web);
266 GNUNET_free (sig); 266 GNUNET_free (sig);
diff --git a/src/gns/test_gns_simple_delegated_lookup.c b/src/gns/test_gns_simple_delegated_lookup.c
index f2610c167..4804de6f8 100644
--- a/src/gns/test_gns_simple_delegated_lookup.c
+++ b/src/gns/test_gns_simple_delegated_lookup.c
@@ -234,12 +234,12 @@ do_check (void *cls,
234 rd.data = &bob_hash; 234 rd.data = &bob_hash;
235 rd.record_type = GNUNET_GNS_RECORD_PKEY; 235 rd.record_type = GNUNET_GNS_RECORD_PKEY;
236 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 236 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
237 GNUNET_NAMESTORE_record_create (namestore_handle, 237 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
238 alice_key, 238 alice_key,
239 TEST_AUTHORITY_NAME, 239 TEST_AUTHORITY_NAME,
240 &rd, 240 1, &rd,
241 NULL, 241 NULL,
242 NULL); 242 NULL);
243 rd.data_size = sizeof(struct in_addr); 243 rd.data_size = sizeof(struct in_addr);
244 rd.data = &web; 244 rd.data = &web;
245 rd.record_type = GNUNET_DNSPARSER_TYPE_A; 245 rd.record_type = GNUNET_DNSPARSER_TYPE_A;
diff --git a/src/gns/test_gns_simple_get_authority.c b/src/gns/test_gns_simple_get_authority.c
index 300e7be5b..7a25e7ca1 100644
--- a/src/gns/test_gns_simple_get_authority.c
+++ b/src/gns/test_gns_simple_get_authority.c
@@ -235,12 +235,12 @@ void do_check (void *cls,
235 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 235 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
236 236
237 /* put bob into our zone */ 237 /* put bob into our zone */
238 GNUNET_NAMESTORE_record_create (namestore_handle, 238 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
239 our_key, 239 our_key,
240 TEST_AUTHORITY_BOB, 240 TEST_AUTHORITY_BOB,
241 &rd, 241 1, &rd,
242 NULL, 242 NULL,
243 NULL); 243 NULL);
244 244
245 /* put alice into bobs zone */ 245 /* put alice into bobs zone */
246 GNUNET_CRYPTO_short_hash(&alice_pkey, sizeof(alice_pkey), &alice_hash); 246 GNUNET_CRYPTO_short_hash(&alice_pkey, sizeof(alice_pkey), &alice_hash);
@@ -249,10 +249,10 @@ void do_check (void *cls,
249 &rd, 1); 249 &rd, 1);
250 250
251 GNUNET_NAMESTORE_record_put (namestore_handle, 251 GNUNET_NAMESTORE_record_put (namestore_handle,
252 &bob_pkey, 252 &bob_pkey,
253 TEST_AUTHORITY_ALICE, 253 TEST_AUTHORITY_ALICE,
254 GNUNET_TIME_UNIT_FOREVER_ABS, 254 GNUNET_TIME_UNIT_FOREVER_ABS,
255 1, 255 1,
256 &rd, 256 &rd,
257 sig, 257 sig,
258 NULL, 258 NULL,
diff --git a/src/gns/test_gns_simple_lookup.c b/src/gns/test_gns_simple_lookup.c
index ff325a464..a7c3348fd 100644
--- a/src/gns/test_gns_simple_lookup.c
+++ b/src/gns/test_gns_simple_lookup.c
@@ -260,12 +260,12 @@ do_check (void *cls,
260 rd.data = &web; 260 rd.data = &web;
261 rd.record_type = GNUNET_DNSPARSER_TYPE_A; 261 rd.record_type = GNUNET_DNSPARSER_TYPE_A;
262 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 262 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
263 nsqe = GNUNET_NAMESTORE_record_create (namestore_handle, 263 nsqe = GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
264 alice_key, 264 alice_key,
265 TEST_RECORD_NAME, 265 TEST_RECORD_NAME,
266 &rd, 266 1, &rd,
267 &commence_testing, 267 &commence_testing,
268 NULL); 268 NULL);
269 GNUNET_CRYPTO_ecc_key_free (alice_key); 269 GNUNET_CRYPTO_ecc_key_free (alice_key);
270} 270}
271 271
diff --git a/src/gns/test_gns_simple_mx_lookup.c b/src/gns/test_gns_simple_mx_lookup.c
index f928a3913..f3cfaac27 100644
--- a/src/gns/test_gns_simple_mx_lookup.c
+++ b/src/gns/test_gns_simple_mx_lookup.c
@@ -231,12 +231,12 @@ do_check (void *cls,
231 rd.record_type = GNUNET_GNS_RECORD_PKEY; 231 rd.record_type = GNUNET_GNS_RECORD_PKEY;
232 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 232 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
233 233
234 GNUNET_NAMESTORE_record_create (namestore_handle, 234 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
235 alice_key, 235 alice_key,
236 TEST_AUTHORITY_NAME, 236 TEST_AUTHORITY_NAME,
237 &rd, 237 1, &rd,
238 NULL, 238 NULL,
239 NULL); 239 NULL);
240 240
241 rd.data_size = sizeof(struct in_addr); 241 rd.data_size = sizeof(struct in_addr);
242 rd.data = mail; 242 rd.data = mail;
diff --git a/src/gns/test_gns_simple_shorten.c b/src/gns/test_gns_simple_shorten.c
index 9b61a41c8..600cb0733 100644
--- a/src/gns/test_gns_simple_shorten.c
+++ b/src/gns/test_gns_simple_shorten.c
@@ -260,12 +260,13 @@ void do_check (void *cls,
260 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 260 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
261 261
262 /* put bob into our zone */ 262 /* put bob into our zone */
263 GNUNET_NAMESTORE_record_create (namestore_handle, 263 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
264 our_key, 264 our_key,
265 TEST_AUTHORITY_BOB, 265 TEST_AUTHORITY_BOB,
266 &rd, 266 1,
267 NULL, 267 &rd,
268 NULL); 268 NULL,
269 NULL);
269 270
270 /* put alice into bobs zone */ 271 /* put alice into bobs zone */
271 GNUNET_CRYPTO_short_hash(&alice_pkey, sizeof(alice_pkey), &alice_hash); 272 GNUNET_CRYPTO_short_hash(&alice_pkey, sizeof(alice_pkey), &alice_hash);
@@ -310,12 +311,12 @@ void do_check (void *cls,
310 rd.record_type = GNUNET_GNS_RECORD_PKEY; 311 rd.record_type = GNUNET_GNS_RECORD_PKEY;
311 GNUNET_free(sig); 312 GNUNET_free(sig);
312 313
313 GNUNET_NAMESTORE_record_create (namestore_handle, 314 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
314 our_key, 315 our_key,
315 TEST_ALICE_PSEU, 316 TEST_ALICE_PSEU,
316 &rd, 317 1, &rd,
317 &commence_testing, 318 &commence_testing,
318 NULL); 319 NULL);
319 320
320 GNUNET_free(web); 321 GNUNET_free(web);
321 GNUNET_CRYPTO_ecc_key_free(our_key); 322 GNUNET_CRYPTO_ecc_key_free(our_key);
diff --git a/src/gns/test_gns_simple_srv_lookup.c b/src/gns/test_gns_simple_srv_lookup.c
index c0208639d..3b1cd46a0 100644
--- a/src/gns/test_gns_simple_srv_lookup.c
+++ b/src/gns/test_gns_simple_srv_lookup.c
@@ -237,12 +237,12 @@ do_check (void *cls,
237 rd.record_type = GNUNET_GNS_RECORD_PKEY; 237 rd.record_type = GNUNET_GNS_RECORD_PKEY;
238 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 238 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
239 239
240 GNUNET_NAMESTORE_record_create (namestore_handle, 240 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
241 alice_key, 241 alice_key,
242 TEST_AUTHORITY_NAME, 242 TEST_AUTHORITY_NAME,
243 &rd, 243 1, &rd,
244 NULL, 244 NULL,
245 NULL); 245 NULL);
246 246
247 rd.data_size = sizeof (struct in_addr); 247 rd.data_size = sizeof (struct in_addr);
248 rd.data = sipserver; 248 rd.data = sipserver;
diff --git a/src/gns/test_gns_simple_zkey_lookup.c b/src/gns/test_gns_simple_zkey_lookup.c
index 923664b77..311282535 100644
--- a/src/gns/test_gns_simple_zkey_lookup.c
+++ b/src/gns/test_gns_simple_zkey_lookup.c
@@ -246,12 +246,12 @@ do_check (void *cls,
246 rd.record_type = GNUNET_GNS_RECORD_PKEY; 246 rd.record_type = GNUNET_GNS_RECORD_PKEY;
247 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 247 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
248 248
249 GNUNET_NAMESTORE_record_create (namestore_handle, 249 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
250 alice_key, 250 alice_key,
251 TEST_AUTHORITY_NAME, 251 TEST_AUTHORITY_NAME,
252 &rd, 252 1, &rd,
253 NULL, 253 NULL,
254 NULL); 254 NULL);
255 255
256 rd.data_size = sizeof(struct in_addr); 256 rd.data_size = sizeof(struct in_addr);
257 rd.data = web; 257 rd.data = web;