diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-13 15:04:21 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-13 15:04:21 +0000 |
commit | 97f8a1ba8d1d43025ae43ab33bca12efbd49f355 (patch) | |
tree | 406396c6cd263e9cac02f60a9b80663f66bb374c /src/namestore/gnunet-namestore.c | |
parent | be479981b97e8eeeb4ac251bb413a08b425a0fdd (diff) |
adding pseudonym NICK automatically to records sets
Diffstat (limited to 'src/namestore/gnunet-namestore.c')
-rw-r--r-- | src/namestore/gnunet-namestore.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index f8ad83259f..5de86182f6 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c @@ -31,6 +31,7 @@ #include <gnunet_dnsparser_lib.h> #include <gnunet_identity_service.h> #include <gnunet_gnsrecord_lib.h> +#include <gnunet_gns_service.h> #include <gnunet_namestore_service.h> @@ -732,19 +733,8 @@ testservice_task (void *cls, ret = 1; return; } - memset (&rd, 0, sizeof (rd)); - rd.data = nickstring; - rd.data_size = strlen(nickstring); - rd.record_type = GNUNET_GNSRECORD_TYPE_NICK; - rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us; - rd.flags |= GNUNET_GNSRECORD_RF_PRIVATE; - add_qe_uri = GNUNET_NAMESTORE_records_store (ns, - &zone_pkey, - "+", - 1, - &rd, - &add_continuation, - &add_qe_uri); + add_qe_uri = GNUNET_NAMESTORE_set_nick(ns, &zone_pkey, nickstring, + &add_continuation, &add_qe_uri); } if (monitor) { |