2 This file is part of GNUnet.
3 Copyright (C) 2012, 2013, 2014 GNUnet e.V.
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
21 * @file gnunet-namestore.c
22 * @brief command line tool to manipulate the local zone
23 * @author Christian Grothoff
29 #include <gnunet_util_lib.h>
30 #include <gnunet_dnsparser_lib.h>
31 #include <gnunet_identity_service.h>
32 #include <gnunet_gnsrecord_lib.h>
33 #include <gnunet_gns_service.h>
34 #include <gnunet_namestore_service.h>
38 * Handle to the namestore.
40 static struct GNUNET_NAMESTORE_Handle *ns;
43 * Private key for the our zone.
45 static struct GNUNET_CRYPTO_EcdsaPrivateKey zone_pkey;
48 * Handle to identity lookup.
50 static struct GNUNET_IDENTITY_EgoLookup *el;
53 * Identity service handle
55 static struct GNUNET_IDENTITY_Handle *idh;
60 struct GNUNET_IDENTITY_Operation *get_default;
63 * Name of the ego controlling the zone.
65 static char *ego_name;
68 * Desired action is to add a record.
73 * Queue entry for the 'add-uri' operation.
75 static struct GNUNET_NAMESTORE_QueueEntry *add_qe_uri;
78 * Queue entry for the 'add' operation.
80 static struct GNUNET_NAMESTORE_QueueEntry *add_qe;
83 * Queue entry for the 'lookup' operation.
85 static struct GNUNET_NAMESTORE_QueueEntry *get_qe;
88 * Queue entry for the 'reverse lookup' operation (in combination with a name).
90 static struct GNUNET_NAMESTORE_QueueEntry *reverse_qe;
93 * Desired action is to list records.
98 * List iterator for the 'list' operation.
100 static struct GNUNET_NAMESTORE_ZoneIterator *list_it;
103 * Desired action is to remove a record.
108 * Is record public (opposite of #GNUNET_GNSRECORD_RF_PRIVATE)
110 static int is_public;
113 * Is record a shadow record (#GNUNET_GNSRECORD_RF_SHADOW_RECORD)
115 static int is_shadow;
118 * Queue entry for the 'del' operation.
120 static struct GNUNET_NAMESTORE_QueueEntry *del_qe;
123 * Name of the records to add/list/remove.
128 * Value of the record to add/remove.
138 * Reverse lookup to perform.
140 static char *reverse_pkey;
143 * Type of the record to add/remove, NULL to remove all.
145 static char *typestring;
148 * Desired expiration time.
150 static char *expirationstring;
155 static char *nickstring;
158 * Global return value
163 * Type string converted to DNS type value.
165 static uint32_t type;
168 * Value in binary format.
173 * Number of bytes in #data.
175 static size_t data_size;
178 * Expirationstring converted to relative time.
180 static struct GNUNET_TIME_Relative etime_rel;
183 * Expirationstring converted to absolute time.
185 static struct GNUNET_TIME_Absolute etime_abs;
188 * Is expiration time relative or absolute time?
190 static int etime_is_rel = GNUNET_SYSERR;
195 static struct GNUNET_NAMESTORE_ZoneMonitor *zm;
198 * Enables monitor mode.
204 * Task run on shutdown. Cleans up everything.
209 do_shutdown (void *cls)
212 if (NULL != get_default)
214 GNUNET_IDENTITY_cancel (get_default);
219 GNUNET_IDENTITY_disconnect (idh);
224 GNUNET_IDENTITY_ego_lookup_cancel (el);
229 GNUNET_NAMESTORE_zone_iteration_stop (list_it);
234 GNUNET_NAMESTORE_cancel (add_qe);
237 if (NULL != add_qe_uri)
239 GNUNET_NAMESTORE_cancel (add_qe_uri);
244 GNUNET_NAMESTORE_cancel (get_qe);
249 GNUNET_NAMESTORE_cancel (del_qe);
254 GNUNET_NAMESTORE_disconnect (ns);
257 memset (&zone_pkey, 0, sizeof (zone_pkey));
265 GNUNET_NAMESTORE_zone_monitor_stop (zm);
277 * Check if we are finished, and if so, perform shutdown.
282 if ( (NULL == add_qe) &&
283 (NULL == add_qe_uri) &&
286 (NULL == reverse_qe) &&
288 GNUNET_SCHEDULER_shutdown ();
293 * Continuation called to notify client about result of the
296 * @param cls closure, location of the QueueEntry pointer to NULL out
297 * @param success #GNUNET_SYSERR on failure (including timeout/queue drop/failure to validate)
298 * #GNUNET_NO if content was already there
299 * #GNUNET_YES (or other positive value) on success
300 * @param emsg NULL on success, otherwise an error message
303 add_continuation (void *cls,
307 struct GNUNET_NAMESTORE_QueueEntry **qe = cls;
310 if (GNUNET_YES != success)
313 _("Adding record failed: %s\n"),
314 (GNUNET_NO == success) ? "record exists" : emsg);
315 if (GNUNET_NO != success)
324 * Continuation called to notify client about result of the
327 * @param cls closure, unused
328 * @param success #GNUNET_SYSERR on failure (including timeout/queue drop/failure to validate)
329 * #GNUNET_NO if content was already there
330 * #GNUNET_YES (or other positive value) on success
331 * @param emsg NULL on success, otherwise an error message
334 del_continuation (void *cls,
340 if (GNUNET_NO == success)
343 _("Deleting record failed, record does not exist%s%s\n"),
344 (NULL != emsg) ? ": " : "",
345 (NULL != emsg) ? emsg : "");
347 if (GNUNET_SYSERR == success)
350 _("Deleting record failed%s%s\n"),
351 (NULL != emsg) ? ": " : "",
352 (NULL != emsg) ? emsg : "");
359 * Function called when we are done with a zone iteration.
362 zone_iteration_finished (void *cls)
371 * Function called when we encountered an error in a zone iteration.
374 zone_iteration_error_cb (void *cls)
379 "Error iterating over zone\n");
386 * Process a record that was stored in the namestore.
388 * @param rname name that is being mapped (at most 255 characters long)
389 * @param rd_len number of entries in @a rd array
390 * @param rd array of records with data to store
393 display_record (const char *rname,
395 const struct GNUNET_GNSRECORD_Data *rd)
397 const char *typestring;
400 struct GNUNET_TIME_Absolute at;
401 struct GNUNET_TIME_Relative rt;
403 if ( (NULL != name) &&
404 (0 != strcmp (name, rname)) )
406 GNUNET_NAMESTORE_zone_iterator_next (list_it,
413 for (unsigned int i=0;i<rd_len;i++)
415 if ( (GNUNET_GNSRECORD_TYPE_NICK == rd[i].record_type) &&
417 GNUNET_GNS_EMPTY_LABEL_AT)) )
419 typestring = GNUNET_GNSRECORD_number_to_typename (rd[i].record_type);
420 s = GNUNET_GNSRECORD_value_to_string (rd[i].record_type,
426 _("\tCorrupt or unsupported record of type %u\n"),
427 (unsigned int) rd[i].record_type);
430 if (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION))
432 rt.rel_value_us = rd[i].expiration_time;
433 ets = GNUNET_STRINGS_relative_time_to_string (rt, GNUNET_YES);
437 at.abs_value_us = rd[i].expiration_time;
438 ets = GNUNET_STRINGS_absolute_time_to_string (at);
441 "\t%s: %s (%s)\t%s\t%s\n",
445 (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_PRIVATE)) ? "PRIVATE" : "PUBLIC",
446 (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_SHADOW_RECORD)) ? "SHADOW" : "");
449 FPRINTF (stdout, "%s", "\n");
454 * Process a record that was stored in the namestore.
457 * @param zone_key private key of the zone
458 * @param rname name that is being mapped (at most 255 characters long)
459 * @param rd_len number of entries in @a rd array
460 * @param rd array of records with data to store
463 display_record_iterator (void *cls,
464 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key,
467 const struct GNUNET_GNSRECORD_Data *rd)
471 display_record (rname,
474 GNUNET_NAMESTORE_zone_iterator_next (list_it,
480 * Process a record that was stored in the namestore.
483 * @param zone_key private key of the zone
484 * @param rname name that is being mapped (at most 255 characters long)
485 * @param rd_len number of entries in @a rd array
486 * @param rd array of records with data to store
489 display_record_monitor (void *cls,
490 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key,
493 const struct GNUNET_GNSRECORD_Data *rd)
497 display_record (rname,
500 GNUNET_NAMESTORE_zone_monitor_next (zm,
506 * Process a record that was stored in the namestore.
509 * @param zone_key private key of the zone
510 * @param rname name that is being mapped (at most 255 characters long)
511 * @param rd_len number of entries in @a rd array
512 * @param rd array of records with data to store
515 display_record_lookup (void *cls,
516 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key,
519 const struct GNUNET_GNSRECORD_Data *rd)
522 display_record (rname,
530 * Function called once we are in sync in monitor mode.
540 "Monitor is now in sync.\n");
545 * Function called on errors while monitoring.
550 monitor_error_cb (void *cls)
555 "Monitor disconnected and out of sync.\n");
560 * Function called on errors while monitoring.
565 lookup_error_cb (void *cls)
571 "Failed to lookup record.\n");
577 * Function called if lookup fails.
580 add_error_cb (void *cls)
591 * We're storing a record; this function is given the existing record
592 * so that we can merge the information.
594 * @param cls closure, unused
595 * @param zone_key private key of the zone
596 * @param rec_name name that is being mapped (at most 255 characters long)
597 * @param rd_count number of entries in @a rd array
598 * @param rd array of records with data to store
601 get_existing_record (void *cls,
602 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key,
603 const char *rec_name,
604 unsigned int rd_count,
605 const struct GNUNET_GNSRECORD_Data *rd)
607 struct GNUNET_GNSRECORD_Data rdn[rd_count + 1];
608 struct GNUNET_GNSRECORD_Data *rde;
613 if (0 != strcmp (rec_name, name))
621 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
622 "Received %u records for name `%s'\n",
624 for (unsigned int i=0;i<rd_count;i++)
626 switch (rd[i].record_type)
628 case GNUNET_DNSPARSER_TYPE_CNAME:
630 _("A %s record exists already under `%s', no other records can be added.\n"),
636 case GNUNET_GNSRECORD_TYPE_PKEY:
638 _("A %s record exists already under `%s', no other records can be added.\n"),
644 case GNUNET_GNSRECORD_TYPE_GNS2DNS:
646 _("A %s record exists already under `%s', no other records can be added.\n"),
656 case GNUNET_DNSPARSER_TYPE_CNAME:
660 _("Records already exist under `%s', cannot add `%s' record.\n"),
668 case GNUNET_GNSRECORD_TYPE_PKEY:
672 _("Records already exist under `%s', cannot add `%s' record.\n"),
680 case GNUNET_GNSRECORD_TYPE_GNS2DNS:
684 _("Records already exist under `%s', cannot add `%s' record.\n"),
695 sizeof (struct GNUNET_GNSRECORD_Data));
696 GNUNET_memcpy (&rdn[1],
698 rd_count * sizeof (struct GNUNET_GNSRECORD_Data));
701 rde->data_size = data_size;
702 rde->record_type = type;
704 rde->flags |= GNUNET_GNSRECORD_RF_SHADOW_RECORD;
706 rde->flags |= GNUNET_GNSRECORD_RF_PRIVATE;
707 if (GNUNET_YES == etime_is_rel)
709 rde->expiration_time = etime_rel.rel_value_us;
710 rde->flags |= GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION;
712 else if (GNUNET_NO == etime_is_rel)
713 rde->expiration_time = etime_abs.abs_value_us;
715 rde->expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us;
716 GNUNET_assert (NULL != name);
717 add_qe = GNUNET_NAMESTORE_records_store (ns,
728 * Function called if we encountered an error in zone-to-name.
731 reverse_error_cb (void *cls)
742 * Function called with the result of our attempt to obtain a name for a given
746 * @param zone private key of the zone; NULL on disconnect
747 * @param label label of the records; NULL on disconnect
748 * @param rd_count number of entries in @a rd array, 0 if label was deleted
749 * @param rd array of records with data to store
752 handle_reverse_lookup (void *cls,
753 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone,
755 unsigned int rd_count,
756 const struct GNUNET_GNSRECORD_Data *rd)
776 * Function called if lookup for deletion fails.
779 del_lookup_error_cb (void *cls)
790 * We were asked to delete something; this function is called with
791 * the existing records. Now we should determine what should be
792 * deleted and then issue the deletion operation.
795 * @param zone private key of the zone we are deleting from
796 * @param label name of the records we are editing
797 * @param rd_count size of the @a rd array
798 * @param rd existing records
801 del_monitor (void *cls,
802 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone,
804 unsigned int rd_count,
805 const struct GNUNET_GNSRECORD_Data *rd)
807 struct GNUNET_GNSRECORD_Data rdx[rd_count];
808 unsigned int rd_left;
818 _("There are no records under label `%s' that could be deleted.\n"),
824 if ( (NULL == value) &&
825 (NULL == typestring) )
827 /* delete everything */
828 del_qe = GNUNET_NAMESTORE_records_store (ns,
838 if (NULL != typestring)
839 type = GNUNET_GNSRECORD_typename_to_number (typestring);
841 type = GNUNET_GNSRECORD_TYPE_ANY;
842 for (unsigned int i=0;i<rd_count;i++)
845 if (! ( ( (GNUNET_GNSRECORD_TYPE_ANY == type) ||
846 (rd[i].record_type == type) ) &&
848 (NULL == (vs = (GNUNET_GNSRECORD_value_to_string (rd[i].record_type,
850 rd[i].data_size)))) ||
851 (0 == strcmp (vs, value)) ) ) )
852 rdx[rd_left++] = rd[i];
853 GNUNET_free_non_null (vs);
855 if (rd_count == rd_left)
857 /* nothing got deleted */
859 _("There are no records under label `%s' that match the request for deletion.\n"),
864 /* delete everything but what we copied to 'rdx' */
865 del_qe = GNUNET_NAMESTORE_records_store (ns,
876 * Callback invoked from identity service with ego information.
877 * An @a ego of NULL means the ego was not found.
879 * @param cls closure with the configuration
880 * @param ego an ego known to identity service, or NULL
883 identity_cb (void *cls,
884 const struct GNUNET_IDENTITY_Ego *ego)
886 const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
887 struct GNUNET_CRYPTO_EcdsaPublicKey pub;
888 struct GNUNET_GNSRECORD_Data rd;
893 if (NULL != ego_name)
896 _("Ego `%s' not known to identity service\n"),
899 GNUNET_SCHEDULER_shutdown ();
903 zone_pkey = *GNUNET_IDENTITY_ego_get_private_key (ego);
904 GNUNET_free_non_null (ego_name);
907 if (! (add|del|list|(NULL != nickstring)|(NULL != uri)|(NULL != reverse_pkey)) )
909 /* nothing more to be done */
911 _("No options given\n"));
912 GNUNET_SCHEDULER_shutdown ();
915 GNUNET_CRYPTO_ecdsa_key_get_public (&zone_pkey,
918 ns = GNUNET_NAMESTORE_connect (cfg);
921 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
922 _("Failed to connect to namestore\n"));
930 _("Missing option `%s' for operation `%s'\n"),
932 GNUNET_SCHEDULER_shutdown ();
936 if (NULL == typestring)
939 _("Missing option `%s' for operation `%s'\n"),
941 GNUNET_SCHEDULER_shutdown ();
945 type = GNUNET_GNSRECORD_typename_to_number (typestring);
946 if (UINT32_MAX == type)
949 _("Unsupported type `%s'\n"),
951 GNUNET_SCHEDULER_shutdown ();
958 _("Missing option `%s' for operation `%s'\n"),
961 GNUNET_SCHEDULER_shutdown ();
965 GNUNET_GNSRECORD_string_to_value (type,
971 _("Value `%s' invalid for record type `%s'\n"),
974 GNUNET_SCHEDULER_shutdown ();
978 if (NULL == expirationstring)
981 _("Missing option `%s' for operation `%s'\n"),
984 GNUNET_SCHEDULER_shutdown ();
988 if (0 == strcmp (expirationstring,
991 etime_abs = GNUNET_TIME_UNIT_FOREVER_ABS;
992 etime_is_rel = GNUNET_NO;
994 else if (GNUNET_OK ==
995 GNUNET_STRINGS_fancy_time_to_relative (expirationstring,
998 etime_is_rel = GNUNET_YES;
999 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1000 "Storing record with relative expiration time of %s\n",
1001 GNUNET_STRINGS_relative_time_to_string (etime_rel,
1004 else if (GNUNET_OK ==
1005 GNUNET_STRINGS_fancy_time_to_absolute (expirationstring,
1008 etime_is_rel = GNUNET_NO;
1009 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1010 "Storing record with absolute expiration time of %s\n",
1011 GNUNET_STRINGS_absolute_time_to_string (etime_abs));
1016 _("Invalid time format `%s'\n"),
1018 GNUNET_SCHEDULER_shutdown ();
1022 add_qe = GNUNET_NAMESTORE_records_lookup (ns,
1027 &get_existing_record,
1035 _("Missing option `%s' for operation `%s'\n"),
1037 GNUNET_SCHEDULER_shutdown ();
1041 del_qe = GNUNET_NAMESTORE_records_lookup (ns,
1044 &del_lookup_error_cb,
1052 get_qe = GNUNET_NAMESTORE_records_lookup (ns,
1057 &display_record_lookup,
1060 list_it = GNUNET_NAMESTORE_zone_iteration_start (ns,
1062 &zone_iteration_error_cb,
1064 &display_record_iterator,
1066 &zone_iteration_finished,
1069 if (NULL != reverse_pkey)
1071 struct GNUNET_CRYPTO_EcdsaPublicKey pubkey;
1074 GNUNET_CRYPTO_ecdsa_public_key_from_string (reverse_pkey,
1075 strlen (reverse_pkey),
1079 _("Invalid public key for reverse lookup `%s'\n"),
1081 GNUNET_SCHEDULER_shutdown ();
1083 reverse_qe = GNUNET_NAMESTORE_zone_to_name (ns,
1088 &handle_reverse_lookup,
1095 struct GNUNET_CRYPTO_EcdsaPublicKey pkey;
1097 GNUNET_STRINGS_utf8_tolower (uri, uri);
1098 if ( (2 != (sscanf (uri,
1099 "gnunet://gns/%52s/%63s",
1103 GNUNET_CRYPTO_ecdsa_public_key_from_string (sh,
1108 _("Invalid URI `%s'\n"),
1110 GNUNET_SCHEDULER_shutdown ();
1114 memset (&rd, 0, sizeof (rd));
1116 rd.data_size = sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey);
1117 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
1118 if (GNUNET_YES == etime_is_rel)
1120 rd.expiration_time = etime_rel.rel_value_us;
1121 rd.flags |= GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION;
1123 else if (GNUNET_NO == etime_is_rel)
1124 rd.expiration_time = etime_abs.abs_value_us;
1126 rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us;
1129 rd.flags |= GNUNET_GNSRECORD_RF_SHADOW_RECORD;
1130 add_qe_uri = GNUNET_NAMESTORE_records_store (ns,
1138 if (NULL != nickstring)
1140 if (0 == strlen(nickstring))
1143 _("Invalid nick `%s'\n"),
1145 GNUNET_SCHEDULER_shutdown ();
1149 add_qe_uri = GNUNET_NAMESTORE_set_nick (ns,
1157 zm = GNUNET_NAMESTORE_zone_monitor_start (cfg,
1162 &display_record_monitor,
1171 default_ego_cb (void *cls,
1172 struct GNUNET_IDENTITY_Ego *ego,
1183 _("No default ego configured in identity service\n"));
1184 GNUNET_SCHEDULER_shutdown ();
1190 identity_cb (cls, ego);
1196 id_connect_cb (void *cls,
1197 struct GNUNET_IDENTITY_Ego *ego,
1201 const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
1208 get_default = GNUNET_IDENTITY_get (idh,
1217 * Main function that will be run.
1219 * @param cls closure
1220 * @param args remaining command-line arguments
1221 * @param cfgfile name of the configuration file used (for saving, can be NULL!)
1222 * @param cfg configuration
1227 const char *cfgfile,
1228 const struct GNUNET_CONFIGURATION_Handle *cfg)
1233 if ( (NULL != args[0]) &&
1235 uri = GNUNET_strdup (args[0]);
1237 GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
1240 if (NULL == ego_name)
1242 idh = GNUNET_IDENTITY_connect (cfg,
1247 _("Cannot connect to identity service\n"));
1251 el = GNUNET_IDENTITY_ego_lookup (cfg,
1259 * The main function for gnunet-namestore.
1261 * @param argc number of arguments from the command line
1262 * @param argv command line arguments
1263 * @return 0 ok, 1 on error
1269 struct GNUNET_GETOPT_CommandLineOption options[] = {
1270 GNUNET_GETOPT_option_flag ('a',
1272 gettext_noop ("add record"),
1274 GNUNET_GETOPT_option_flag ('d',
1276 gettext_noop ("delete record"),
1278 GNUNET_GETOPT_option_flag ('D',
1280 gettext_noop ("display records"),
1282 GNUNET_GETOPT_option_string ('e',
1285 gettext_noop ("expiration time for record to use (for adding only), \"never\" is possible"),
1287 GNUNET_GETOPT_option_string ('i',
1290 gettext_noop ("set the desired nick name for the zone"),
1292 GNUNET_GETOPT_option_flag ('m',
1294 gettext_noop ("monitor changes in the namestore"),
1296 GNUNET_GETOPT_option_string ('n',
1299 gettext_noop ("name of the record to add/delete/display"),
1301 GNUNET_GETOPT_option_string ('r',
1304 gettext_noop ("determine our name for the given PKEY"),
1306 GNUNET_GETOPT_option_string ('t',
1309 gettext_noop ("type of the record to add/delete/display"),
1311 GNUNET_GETOPT_option_string ('u',
1314 gettext_noop ("URI to import into our zone"),
1316 GNUNET_GETOPT_option_string ('V',
1319 gettext_noop ("value of the record to add/delete"),
1321 GNUNET_GETOPT_option_flag ('p',
1323 gettext_noop ("create or list public record"),
1325 GNUNET_GETOPT_option_flag ('s',
1327 gettext_noop ("create shadow record (only valid if all other records of the same type have expired"),
1329 GNUNET_GETOPT_option_string ('z',
1332 gettext_noop ("name of the ego controlling the zone"),
1334 GNUNET_GETOPT_OPTION_END
1338 GNUNET_STRINGS_get_utf8_args (argc, argv,
1344 GNUNET_log_setup ("gnunet-namestore",
1348 GNUNET_PROGRAM_run (argc,
1351 _("GNUnet zone manipulation tool"),
1355 GNUNET_free ((void*) argv);
1356 GNUNET_CRYPTO_ecdsa_key_clear (&zone_pkey);
1359 GNUNET_free ((void*) argv);
1360 GNUNET_CRYPTO_ecdsa_key_clear (&zone_pkey);
1364 /* end of gnunet-namestore.c */