diff options
Diffstat (limited to 'src/service/namestore/test_namestore_api_lookup_nick.c')
-rw-r--r-- | src/service/namestore/test_namestore_api_lookup_nick.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/src/service/namestore/test_namestore_api_lookup_nick.c b/src/service/namestore/test_namestore_api_lookup_nick.c index 22734baab..8b4799363 100644 --- a/src/service/namestore/test_namestore_api_lookup_nick.c +++ b/src/service/namestore/test_namestore_api_lookup_nick.c | |||
@@ -23,7 +23,6 @@ | |||
23 | */ | 23 | */ |
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
26 | #include "gnunet_gns_service.h" | ||
27 | #include "gnunet_testing_lib.h" | 26 | #include "gnunet_testing_lib.h" |
28 | 27 | ||
29 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 28 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
@@ -269,11 +268,11 @@ nick_cont (void *cls, enum GNUNET_ErrorCode ec) | |||
269 | rd_orig.flags = GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION; | 268 | rd_orig.flags = GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION; |
270 | memset ((char *) rd_orig.data, 'a', TEST_RECORD_DATALEN); | 269 | memset ((char *) rd_orig.data, 'a', TEST_RECORD_DATALEN); |
271 | 270 | ||
272 | nsqe = GNUNET_NAMESTORE_records_store (nsh, &privkey, | 271 | nsqe = GNUNET_NAMESTORE_record_set_store (nsh, &privkey, |
273 | name, | 272 | name, |
274 | 1, | 273 | 1, |
275 | &rd_orig, | 274 | &rd_orig, |
276 | &put_cont, (void *) name); | 275 | &put_cont, (void *) name); |
277 | } | 276 | } |
278 | 277 | ||
279 | 278 | ||
@@ -290,7 +289,7 @@ run (void *cls, | |||
290 | privkey.type = htonl (GNUNET_GNSRECORD_TYPE_PKEY); | 289 | privkey.type = htonl (GNUNET_GNSRECORD_TYPE_PKEY); |
291 | GNUNET_CRYPTO_ecdsa_key_create (&privkey.ecdsa_key); | 290 | GNUNET_CRYPTO_ecdsa_key_create (&privkey.ecdsa_key); |
292 | GNUNET_CRYPTO_key_get_public (&privkey, | 291 | GNUNET_CRYPTO_key_get_public (&privkey, |
293 | &pubkey); | 292 | &pubkey); |
294 | 293 | ||
295 | nsh = GNUNET_NAMESTORE_connect (cfg); | 294 | nsh = GNUNET_NAMESTORE_connect (cfg); |
296 | GNUNET_break (NULL != nsh); | 295 | GNUNET_break (NULL != nsh); |
@@ -301,13 +300,13 @@ run (void *cls, | |||
301 | rd.record_type = GNUNET_GNSRECORD_TYPE_NICK; | 300 | rd.record_type = GNUNET_GNSRECORD_TYPE_NICK; |
302 | rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us; | 301 | rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us; |
303 | rd.flags |= GNUNET_GNSRECORD_RF_PRIVATE; | 302 | rd.flags |= GNUNET_GNSRECORD_RF_PRIVATE; |
304 | nsqe = GNUNET_NAMESTORE_records_store (nsh, | 303 | nsqe = GNUNET_NAMESTORE_record_set_store (nsh, |
305 | &privkey, | 304 | &privkey, |
306 | GNUNET_GNS_EMPTY_LABEL_AT, | 305 | GNUNET_GNS_EMPTY_LABEL_AT, |
307 | 1, | 306 | 1, |
308 | &rd, | 307 | &rd, |
309 | &nick_cont, | 308 | &nick_cont, |
310 | (void *) name); | 309 | (void *) name); |
311 | 310 | ||
312 | if (NULL == nsqe) | 311 | if (NULL == nsqe) |
313 | { | 312 | { |