aboutsummaryrefslogtreecommitdiff
path: root/src/service/namestore/test_namestore_api_zone_to_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/service/namestore/test_namestore_api_zone_to_name.c')
-rw-r--r--src/service/namestore/test_namestore_api_zone_to_name.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/service/namestore/test_namestore_api_zone_to_name.c b/src/service/namestore/test_namestore_api_zone_to_name.c
index f41b41642..c05a9173f 100644
--- a/src/service/namestore/test_namestore_api_zone_to_name.c
+++ b/src/service/namestore/test_namestore_api_zone_to_name.c
@@ -21,10 +21,8 @@
21 * @file namestore/test_namestore_api_zone_to_name.c 21 * @file namestore/test_namestore_api_zone_to_name.c
22 * @brief testcase for zone to name translation 22 * @brief testcase for zone to name translation
23 */ 23 */
24#include "platform.h"
25#include "gnunet_namestore_service.h" 24#include "gnunet_namestore_service.h"
26#include "gnunet_testing_lib.h" 25#include "gnunet_testing_lib.h"
27#include "../service/namestore/namestore.h"
28 26
29#define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT 27#define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT
30 28
@@ -206,7 +204,7 @@ run (void *cls,
206 GNUNET_CRYPTO_ecdsa_key_create (&privkey.ecdsa_key); 204 GNUNET_CRYPTO_ecdsa_key_create (&privkey.ecdsa_key);
207 /* get public key */ 205 /* get public key */
208 GNUNET_CRYPTO_key_get_public (&privkey, 206 GNUNET_CRYPTO_key_get_public (&privkey,
209 &pubkey); 207 &pubkey);
210 208
211 GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK, 209 GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK,
212 &s_zone_value, 210 &s_zone_value,
@@ -223,13 +221,13 @@ run (void *cls,
223 221
224 nsh = GNUNET_NAMESTORE_connect (cfg); 222 nsh = GNUNET_NAMESTORE_connect (cfg);
225 GNUNET_break (NULL != nsh); 223 GNUNET_break (NULL != nsh);
226 GNUNET_NAMESTORE_records_store (nsh, 224 GNUNET_NAMESTORE_record_set_store (nsh,
227 &privkey, 225 &privkey,
228 s_name, 226 s_name,
229 1, 227 1,
230 &rd, 228 &rd,
231 &put_cont, 229 &put_cont,
232 s_name); 230 s_name);
233 } 231 }
234} 232}
235 233