commit 6c0f027643f9a6fef37ecf6737899e55985153af
parent 332e61ee2a0929ede3725cb58b78154b889bd1ae
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 13 Aug 2013 13:27:39 +0000
-adapt PT test to new namestore API
Diffstat:
2 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
@@ -15,12 +15,10 @@ endif
if LINUX
# All of these currently only work on GNU/Linux or W32
- LINUX_DIR = exit vpn
-# pt # without namestore, pt currently has some issues...
+ LINUX_DIR = exit vpn pt
endif
if MINGW
- MINGW_DIR = vpn exit
-# pt # without namestore, pt currently has some issues...
+ MINGW_DIR = vpn exit pt
endif
if HAVE_MYSQL
diff --git a/src/pt/test_gns_vpn.c b/src/pt/test_gns_vpn.c
@@ -401,12 +401,12 @@ run (void *cls,
&rd.data_size));
rd.record_type = GNUNET_GNS_RECORD_VPN;
- GNUNET_NAMESTORE_record_put_by_authority (namestore,
- host_key,
- "www",
- 1, &rd,
- &commence_testing,
- NULL);
+ GNUNET_NAMESTORE_records_store (namestore,
+ host_key,
+ "www",
+ 1, &rd,
+ &commence_testing,
+ NULL);
GNUNET_free ((void**)rd.data);
GNUNET_free (rd_string);
GNUNET_free (zone_keyfile);