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"),
648 case GNUNET_DNSPARSER_TYPE_CNAME:
652 _("Records already exist under `%s', cannot add `%s' record.\n"),
660 case GNUNET_GNSRECORD_TYPE_PKEY:
664 _("Records already exist under `%s', cannot add `%s' record.\n"),
672 case GNUNET_GNSRECORD_TYPE_GNS2DNS:
673 for (unsigned int i=0;i<rd_count;i++)
674 if (GNUNET_GNSRECORD_TYPE_GNS2DNS != rd[i].record_type)
677 _("Non-GNS2DNS records already exist under `%s', cannot add GNS2DNS record.\n"),
687 sizeof (struct GNUNET_GNSRECORD_Data));
688 GNUNET_memcpy (&rdn[1],
690 rd_count * sizeof (struct GNUNET_GNSRECORD_Data));
693 rde->data_size = data_size;
694 rde->record_type = type;
696 rde->flags |= GNUNET_GNSRECORD_RF_SHADOW_RECORD;
698 rde->flags |= GNUNET_GNSRECORD_RF_PRIVATE;
699 if (GNUNET_YES == etime_is_rel)
701 rde->expiration_time = etime_rel.rel_value_us;
702 rde->flags |= GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION;
704 else if (GNUNET_NO == etime_is_rel)
705 rde->expiration_time = etime_abs.abs_value_us;
707 rde->expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us;
708 GNUNET_assert (NULL != name);
709 add_qe = GNUNET_NAMESTORE_records_store (ns,
720 * Function called if we encountered an error in zone-to-name.
723 reverse_error_cb (void *cls)
734 * Function called with the result of our attempt to obtain a name for a given
738 * @param zone private key of the zone; NULL on disconnect
739 * @param label label of the records; NULL on disconnect
740 * @param rd_count number of entries in @a rd array, 0 if label was deleted
741 * @param rd array of records with data to store
744 handle_reverse_lookup (void *cls,
745 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone,
747 unsigned int rd_count,
748 const struct GNUNET_GNSRECORD_Data *rd)
768 * Function called if lookup for deletion fails.
771 del_lookup_error_cb (void *cls)
782 * We were asked to delete something; this function is called with
783 * the existing records. Now we should determine what should be
784 * deleted and then issue the deletion operation.
787 * @param zone private key of the zone we are deleting from
788 * @param label name of the records we are editing
789 * @param rd_count size of the @a rd array
790 * @param rd existing records
793 del_monitor (void *cls,
794 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone,
796 unsigned int rd_count,
797 const struct GNUNET_GNSRECORD_Data *rd)
799 struct GNUNET_GNSRECORD_Data rdx[rd_count];
800 unsigned int rd_left;
810 _("There are no records under label `%s' that could be deleted.\n"),
816 if ( (NULL == value) &&
817 (NULL == typestring) )
819 /* delete everything */
820 del_qe = GNUNET_NAMESTORE_records_store (ns,
830 if (NULL != typestring)
831 type = GNUNET_GNSRECORD_typename_to_number (typestring);
833 type = GNUNET_GNSRECORD_TYPE_ANY;
834 for (unsigned int i=0;i<rd_count;i++)
837 if (! ( ( (GNUNET_GNSRECORD_TYPE_ANY == type) ||
838 (rd[i].record_type == type) ) &&
840 (NULL == (vs = (GNUNET_GNSRECORD_value_to_string (rd[i].record_type,
842 rd[i].data_size)))) ||
843 (0 == strcmp (vs, value)) ) ) )
844 rdx[rd_left++] = rd[i];
845 GNUNET_free_non_null (vs);
847 if (rd_count == rd_left)
849 /* nothing got deleted */
851 _("There are no records under label `%s' that match the request for deletion.\n"),
856 /* delete everything but what we copied to 'rdx' */
857 del_qe = GNUNET_NAMESTORE_records_store (ns,
868 * Callback invoked from identity service with ego information.
869 * An @a ego of NULL means the ego was not found.
871 * @param cls closure with the configuration
872 * @param ego an ego known to identity service, or NULL
875 identity_cb (void *cls,
876 const struct GNUNET_IDENTITY_Ego *ego)
878 const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
879 struct GNUNET_CRYPTO_EcdsaPublicKey pub;
880 struct GNUNET_GNSRECORD_Data rd;
885 if (NULL != ego_name)
888 _("Ego `%s' not known to identity service\n"),
891 GNUNET_SCHEDULER_shutdown ();
895 zone_pkey = *GNUNET_IDENTITY_ego_get_private_key (ego);
896 GNUNET_free_non_null (ego_name);
899 if (! (add|del|list|(NULL != nickstring)|(NULL != uri)|(NULL != reverse_pkey)) )
901 /* nothing more to be done */
903 _("No options given\n"));
904 GNUNET_SCHEDULER_shutdown ();
907 GNUNET_CRYPTO_ecdsa_key_get_public (&zone_pkey,
910 ns = GNUNET_NAMESTORE_connect (cfg);
913 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
914 _("Failed to connect to namestore\n"));
922 _("Missing option `%s' for operation `%s'\n"),
924 GNUNET_SCHEDULER_shutdown ();
928 if (NULL == typestring)
931 _("Missing option `%s' for operation `%s'\n"),
933 GNUNET_SCHEDULER_shutdown ();
937 type = GNUNET_GNSRECORD_typename_to_number (typestring);
938 if (UINT32_MAX == type)
941 _("Unsupported type `%s'\n"),
943 GNUNET_SCHEDULER_shutdown ();
950 _("Missing option `%s' for operation `%s'\n"),
953 GNUNET_SCHEDULER_shutdown ();
957 GNUNET_GNSRECORD_string_to_value (type,
963 _("Value `%s' invalid for record type `%s'\n"),
966 GNUNET_SCHEDULER_shutdown ();
970 if (NULL == expirationstring)
973 _("Missing option `%s' for operation `%s'\n"),
976 GNUNET_SCHEDULER_shutdown ();
980 if (0 == strcmp (expirationstring,
983 etime_abs = GNUNET_TIME_UNIT_FOREVER_ABS;
984 etime_is_rel = GNUNET_NO;
986 else if (GNUNET_OK ==
987 GNUNET_STRINGS_fancy_time_to_relative (expirationstring,
990 etime_is_rel = GNUNET_YES;
991 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
992 "Storing record with relative expiration time of %s\n",
993 GNUNET_STRINGS_relative_time_to_string (etime_rel,
996 else if (GNUNET_OK ==
997 GNUNET_STRINGS_fancy_time_to_absolute (expirationstring,
1000 etime_is_rel = GNUNET_NO;
1001 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1002 "Storing record with absolute expiration time of %s\n",
1003 GNUNET_STRINGS_absolute_time_to_string (etime_abs));
1008 _("Invalid time format `%s'\n"),
1010 GNUNET_SCHEDULER_shutdown ();
1014 add_qe = GNUNET_NAMESTORE_records_lookup (ns,
1019 &get_existing_record,
1027 _("Missing option `%s' for operation `%s'\n"),
1029 GNUNET_SCHEDULER_shutdown ();
1033 del_qe = GNUNET_NAMESTORE_records_lookup (ns,
1036 &del_lookup_error_cb,
1044 get_qe = GNUNET_NAMESTORE_records_lookup (ns,
1049 &display_record_lookup,
1052 list_it = GNUNET_NAMESTORE_zone_iteration_start (ns,
1054 &zone_iteration_error_cb,
1056 &display_record_iterator,
1058 &zone_iteration_finished,
1061 if (NULL != reverse_pkey)
1063 struct GNUNET_CRYPTO_EcdsaPublicKey pubkey;
1066 GNUNET_CRYPTO_ecdsa_public_key_from_string (reverse_pkey,
1067 strlen (reverse_pkey),
1071 _("Invalid public key for reverse lookup `%s'\n"),
1073 GNUNET_SCHEDULER_shutdown ();
1075 reverse_qe = GNUNET_NAMESTORE_zone_to_name (ns,
1080 &handle_reverse_lookup,
1087 struct GNUNET_CRYPTO_EcdsaPublicKey pkey;
1089 GNUNET_STRINGS_utf8_tolower (uri, uri);
1090 if ( (2 != (sscanf (uri,
1091 "gnunet://gns/%52s/%63s",
1095 GNUNET_CRYPTO_ecdsa_public_key_from_string (sh,
1100 _("Invalid URI `%s'\n"),
1102 GNUNET_SCHEDULER_shutdown ();
1106 memset (&rd, 0, sizeof (rd));
1108 rd.data_size = sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey);
1109 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
1110 if (GNUNET_YES == etime_is_rel)
1112 rd.expiration_time = etime_rel.rel_value_us;
1113 rd.flags |= GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION;
1115 else if (GNUNET_NO == etime_is_rel)
1116 rd.expiration_time = etime_abs.abs_value_us;
1118 rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us;
1121 rd.flags |= GNUNET_GNSRECORD_RF_SHADOW_RECORD;
1122 add_qe_uri = GNUNET_NAMESTORE_records_store (ns,
1130 if (NULL != nickstring)
1132 if (0 == strlen(nickstring))
1135 _("Invalid nick `%s'\n"),
1137 GNUNET_SCHEDULER_shutdown ();
1141 add_qe_uri = GNUNET_NAMESTORE_set_nick (ns,
1149 zm = GNUNET_NAMESTORE_zone_monitor_start (cfg,
1154 &display_record_monitor,
1163 default_ego_cb (void *cls,
1164 struct GNUNET_IDENTITY_Ego *ego,
1175 _("No default ego configured in identity service\n"));
1176 GNUNET_SCHEDULER_shutdown ();
1182 identity_cb (cls, ego);
1188 id_connect_cb (void *cls,
1189 struct GNUNET_IDENTITY_Ego *ego,
1193 const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
1200 get_default = GNUNET_IDENTITY_get (idh,
1209 * Main function that will be run.
1211 * @param cls closure
1212 * @param args remaining command-line arguments
1213 * @param cfgfile name of the configuration file used (for saving, can be NULL!)
1214 * @param cfg configuration
1219 const char *cfgfile,
1220 const struct GNUNET_CONFIGURATION_Handle *cfg)
1225 if ( (NULL != args[0]) &&
1227 uri = GNUNET_strdup (args[0]);
1229 GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
1232 if (NULL == ego_name)
1234 idh = GNUNET_IDENTITY_connect (cfg,
1239 _("Cannot connect to identity service\n"));
1243 el = GNUNET_IDENTITY_ego_lookup (cfg,
1251 * The main function for gnunet-namestore.
1253 * @param argc number of arguments from the command line
1254 * @param argv command line arguments
1255 * @return 0 ok, 1 on error
1261 struct GNUNET_GETOPT_CommandLineOption options[] = {
1262 GNUNET_GETOPT_option_flag ('a',
1264 gettext_noop ("add record"),
1266 GNUNET_GETOPT_option_flag ('d',
1268 gettext_noop ("delete record"),
1270 GNUNET_GETOPT_option_flag ('D',
1272 gettext_noop ("display records"),
1274 GNUNET_GETOPT_option_string ('e',
1277 gettext_noop ("expiration time for record to use (for adding only), \"never\" is possible"),
1279 GNUNET_GETOPT_option_string ('i',
1282 gettext_noop ("set the desired nick name for the zone"),
1284 GNUNET_GETOPT_option_flag ('m',
1286 gettext_noop ("monitor changes in the namestore"),
1288 GNUNET_GETOPT_option_string ('n',
1291 gettext_noop ("name of the record to add/delete/display"),
1293 GNUNET_GETOPT_option_string ('r',
1296 gettext_noop ("determine our name for the given PKEY"),
1298 GNUNET_GETOPT_option_string ('t',
1301 gettext_noop ("type of the record to add/delete/display"),
1303 GNUNET_GETOPT_option_string ('u',
1306 gettext_noop ("URI to import into our zone"),
1308 GNUNET_GETOPT_option_string ('V',
1311 gettext_noop ("value of the record to add/delete"),
1313 GNUNET_GETOPT_option_flag ('p',
1315 gettext_noop ("create or list public record"),
1317 GNUNET_GETOPT_option_flag ('s',
1319 gettext_noop ("create shadow record (only valid if all other records of the same type have expired"),
1321 GNUNET_GETOPT_option_string ('z',
1324 gettext_noop ("name of the ego controlling the zone"),
1326 GNUNET_GETOPT_OPTION_END
1330 GNUNET_STRINGS_get_utf8_args (argc, argv,
1336 GNUNET_log_setup ("gnunet-namestore",
1340 GNUNET_PROGRAM_run (argc,
1343 _("GNUnet zone manipulation tool"),
1347 GNUNET_free ((void*) argv);
1348 GNUNET_CRYPTO_ecdsa_key_clear (&zone_pkey);
1351 GNUNET_free ((void*) argv);
1352 GNUNET_CRYPTO_ecdsa_key_clear (&zone_pkey);
1356 /* end of gnunet-namestore.c */