diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-13 13:27:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-13 13:27:39 +0000 |
commit | 6c0f027643f9a6fef37ecf6737899e55985153af (patch) | |
tree | 19d89fab13a3a999470c2164b85f1021087c8d15 | |
parent | 332e61ee2a0929ede3725cb58b78154b889bd1ae (diff) | |
download | gnunet-6c0f027643f9a6fef37ecf6737899e55985153af.tar.gz gnunet-6c0f027643f9a6fef37ecf6737899e55985153af.zip |
-adapt PT test to new namestore API
-rw-r--r-- | src/Makefile.am | 6 | ||||
-rw-r--r-- | src/pt/test_gns_vpn.c | 12 |
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 | ||
16 | if LINUX | 16 | if 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... | ||
20 | endif | 19 | endif |
21 | if MINGW | 20 | if MINGW |
22 | MINGW_DIR = vpn exit | 21 | MINGW_DIR = vpn exit pt |
23 | # pt # without namestore, pt currently has some issues... | ||
24 | endif | 22 | endif |
25 | 23 | ||
26 | if HAVE_MYSQL | 24 | if 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); |