-adapt PT test to new namestore API
authorChristian Grothoff <christian@grothoff.org>
Tue, 13 Aug 2013 13:27:39 +0000 (13:27 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 13 Aug 2013 13:27:39 +0000 (13:27 +0000)
src/Makefile.am
src/pt/test_gns_vpn.c

index 1c1f0b541d9350c05f404fa4cf3863429c53494b..4ea2836ee40d6d3dba86308aac852a4447a62548 100644 (file)
@@ -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
index 2ba72bba9caf1a3e7219d9d85266869d7d766e8d..5c31bd779ebef286eec20548d422ff1c085f368c 100644 (file)
@@ -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);