aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-13 13:27:39 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-13 13:27:39 +0000
commit6c0f027643f9a6fef37ecf6737899e55985153af (patch)
tree19d89fab13a3a999470c2164b85f1021087c8d15
parent332e61ee2a0929ede3725cb58b78154b889bd1ae (diff)
downloadgnunet-6c0f027643f9a6fef37ecf6737899e55985153af.tar.gz
gnunet-6c0f027643f9a6fef37ecf6737899e55985153af.zip
-adapt PT test to new namestore API
-rw-r--r--src/Makefile.am6
-rw-r--r--src/pt/test_gns_vpn.c12
2 files changed, 8 insertions, 10 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 1c1f0b541..4ea2836ee 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -15,12 +15,10 @@ endif
15 15
16if LINUX 16if LINUX
17# All of these currently only work on GNU/Linux or W32 17# All of these currently only work on GNU/Linux or W32
18 LINUX_DIR = exit vpn 18 LINUX_DIR = exit vpn pt
19# pt # without namestore, pt currently has some issues...
20endif 19endif
21if MINGW 20if MINGW
22 MINGW_DIR = vpn exit 21 MINGW_DIR = vpn exit pt
23# pt # without namestore, pt currently has some issues...
24endif 22endif
25 23
26if HAVE_MYSQL 24if HAVE_MYSQL
diff --git a/src/pt/test_gns_vpn.c b/src/pt/test_gns_vpn.c
index 2ba72bba9..5c31bd779 100644
--- a/src/pt/test_gns_vpn.c
+++ b/src/pt/test_gns_vpn.c
@@ -401,12 +401,12 @@ run (void *cls,
401 &rd.data_size)); 401 &rd.data_size));
402 rd.record_type = GNUNET_GNS_RECORD_VPN; 402 rd.record_type = GNUNET_GNS_RECORD_VPN;
403 403
404 GNUNET_NAMESTORE_record_put_by_authority (namestore, 404 GNUNET_NAMESTORE_records_store (namestore,
405 host_key, 405 host_key,
406 "www", 406 "www",
407 1, &rd, 407 1, &rd,
408 &commence_testing, 408 &commence_testing,
409 NULL); 409 NULL);
410 GNUNET_free ((void**)rd.data); 410 GNUNET_free ((void**)rd.data);
411 GNUNET_free (rd_string); 411 GNUNET_free (rd_string);
412 GNUNET_free (zone_keyfile); 412 GNUNET_free (zone_keyfile);