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 it
6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your 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 Affero General Public License for more details.
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 * @file gnunet-namestore.c
20 * @brief command line tool to manipulate the local zone
21 * @author Christian Grothoff
27 #include <gnunet_util_lib.h>
28 #include <gnunet_dnsparser_lib.h>
29 #include <gnunet_identity_service.h>
30 #include <gnunet_gnsrecord_lib.h>
31 #include <gnunet_gns_service.h>
32 #include <gnunet_namestore_service.h>
36 * Handle to the namestore.
38 static struct GNUNET_NAMESTORE_Handle *ns;
41 * Private key for the our zone.
43 static struct GNUNET_CRYPTO_EcdsaPrivateKey zone_pkey;
46 * Handle to identity lookup.
48 static struct GNUNET_IDENTITY_EgoLookup *el;
51 * Identity service handle
53 static struct GNUNET_IDENTITY_Handle *idh;
58 struct GNUNET_IDENTITY_Operation *get_default;
61 * Name of the ego controlling the zone.
63 static char *ego_name;
66 * Desired action is to add a record.
71 * Queue entry for the 'add-uri' operation.
73 static struct GNUNET_NAMESTORE_QueueEntry *add_qe_uri;
76 * Queue entry for the 'add' operation.
78 static struct GNUNET_NAMESTORE_QueueEntry *add_qe;
81 * Queue entry for the 'lookup' operation.
83 static struct GNUNET_NAMESTORE_QueueEntry *get_qe;
86 * Queue entry for the 'reverse lookup' operation (in combination with a name).
88 static struct GNUNET_NAMESTORE_QueueEntry *reverse_qe;
91 * Desired action is to list records.
96 * List iterator for the 'list' operation.
98 static struct GNUNET_NAMESTORE_ZoneIterator *list_it;
101 * Desired action is to remove a record.
106 * Is record public (opposite of #GNUNET_GNSRECORD_RF_PRIVATE)
108 static int is_public;
111 * Is record a shadow record (#GNUNET_GNSRECORD_RF_SHADOW_RECORD)
113 static int is_shadow;
116 * Queue entry for the 'del' operation.
118 static struct GNUNET_NAMESTORE_QueueEntry *del_qe;
121 * Name of the records to add/list/remove.
126 * Value of the record to add/remove.
136 * Reverse lookup to perform.
138 static char *reverse_pkey;
141 * Type of the record to add/remove, NULL to remove all.
143 static char *typestring;
146 * Desired expiration time.
148 static char *expirationstring;
153 static char *nickstring;
156 * Global return value
161 * Type string converted to DNS type value.
163 static uint32_t type;
166 * Value in binary format.
171 * Number of bytes in #data.
173 static size_t data_size;
176 * Expirationstring converted to relative time.
178 static struct GNUNET_TIME_Relative etime_rel;
181 * Expirationstring converted to absolute time.
183 static struct GNUNET_TIME_Absolute etime_abs;
186 * Is expiration time relative or absolute time?
188 static int etime_is_rel = GNUNET_SYSERR;
193 static struct GNUNET_NAMESTORE_ZoneMonitor *zm;
196 * Enables monitor mode.
202 * Task run on shutdown. Cleans up everything.
207 do_shutdown (void *cls)
210 if (NULL != get_default)
212 GNUNET_IDENTITY_cancel (get_default);
217 GNUNET_IDENTITY_disconnect (idh);
222 GNUNET_IDENTITY_ego_lookup_cancel (el);
227 GNUNET_NAMESTORE_zone_iteration_stop (list_it);
232 GNUNET_NAMESTORE_cancel (add_qe);
235 if (NULL != add_qe_uri)
237 GNUNET_NAMESTORE_cancel (add_qe_uri);
242 GNUNET_NAMESTORE_cancel (get_qe);
247 GNUNET_NAMESTORE_cancel (del_qe);
252 GNUNET_NAMESTORE_disconnect (ns);
255 memset (&zone_pkey, 0, sizeof (zone_pkey));
263 GNUNET_NAMESTORE_zone_monitor_stop (zm);
275 * Check if we are finished, and if so, perform shutdown.
280 if ( (NULL == add_qe) &&
281 (NULL == add_qe_uri) &&
284 (NULL == reverse_qe) &&
286 GNUNET_SCHEDULER_shutdown ();
291 * Continuation called to notify client about result of the
294 * @param cls closure, location of the QueueEntry pointer to NULL out
295 * @param success #GNUNET_SYSERR on failure (including timeout/queue drop/failure to validate)
296 * #GNUNET_NO if content was already there
297 * #GNUNET_YES (or other positive value) on success
298 * @param emsg NULL on success, otherwise an error message
301 add_continuation (void *cls,
305 struct GNUNET_NAMESTORE_QueueEntry **qe = cls;
308 if (GNUNET_YES != success)
311 _("Adding record failed: %s\n"),
312 (GNUNET_NO == success) ? "record exists" : emsg);
313 if (GNUNET_NO != success)
322 * Continuation called to notify client about result of the
325 * @param cls closure, unused
326 * @param success #GNUNET_SYSERR on failure (including timeout/queue drop/failure to validate)
327 * #GNUNET_NO if content was already there
328 * #GNUNET_YES (or other positive value) on success
329 * @param emsg NULL on success, otherwise an error message
332 del_continuation (void *cls,
338 if (GNUNET_NO == success)
341 _("Deleting record failed, record does not exist%s%s\n"),
342 (NULL != emsg) ? ": " : "",
343 (NULL != emsg) ? emsg : "");
345 if (GNUNET_SYSERR == success)
348 _("Deleting record failed%s%s\n"),
349 (NULL != emsg) ? ": " : "",
350 (NULL != emsg) ? emsg : "");
357 * Function called when we are done with a zone iteration.
360 zone_iteration_finished (void *cls)
369 * Function called when we encountered an error in a zone iteration.
372 zone_iteration_error_cb (void *cls)
377 "Error iterating over zone\n");
384 * Process a record that was stored in the namestore.
386 * @param rname name that is being mapped (at most 255 characters long)
387 * @param rd_len number of entries in @a rd array
388 * @param rd array of records with data to store
391 display_record (const char *rname,
393 const struct GNUNET_GNSRECORD_Data *rd)
395 const char *typestring;
398 struct GNUNET_TIME_Absolute at;
399 struct GNUNET_TIME_Relative rt;
401 if ( (NULL != name) &&
402 (0 != strcmp (name, rname)) )
404 GNUNET_NAMESTORE_zone_iterator_next (list_it,
411 for (unsigned int i=0;i<rd_len;i++)
413 if ( (GNUNET_GNSRECORD_TYPE_NICK == rd[i].record_type) &&
415 GNUNET_GNS_EMPTY_LABEL_AT)) )
417 typestring = GNUNET_GNSRECORD_number_to_typename (rd[i].record_type);
418 s = GNUNET_GNSRECORD_value_to_string (rd[i].record_type,
424 _("\tCorrupt or unsupported record of type %u\n"),
425 (unsigned int) rd[i].record_type);
428 if (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION))
430 rt.rel_value_us = rd[i].expiration_time;
431 ets = GNUNET_STRINGS_relative_time_to_string (rt, GNUNET_YES);
435 at.abs_value_us = rd[i].expiration_time;
436 ets = GNUNET_STRINGS_absolute_time_to_string (at);
439 "\t%s: %s (%s)\t%s\t%s\n",
443 (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_PRIVATE)) ? "PRIVATE" : "PUBLIC",
444 (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_SHADOW_RECORD)) ? "SHADOW" : "");
447 FPRINTF (stdout, "%s", "\n");
452 * Process a record that was stored in the namestore.
455 * @param zone_key private key of the zone
456 * @param rname name that is being mapped (at most 255 characters long)
457 * @param rd_len number of entries in @a rd array
458 * @param rd array of records with data to store
461 display_record_iterator (void *cls,
462 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key,
465 const struct GNUNET_GNSRECORD_Data *rd)
469 display_record (rname,
472 GNUNET_NAMESTORE_zone_iterator_next (list_it,
478 * Process a record that was stored in the namestore.
481 * @param zone_key private key of the zone
482 * @param rname name that is being mapped (at most 255 characters long)
483 * @param rd_len number of entries in @a rd array
484 * @param rd array of records with data to store
487 display_record_monitor (void *cls,
488 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key,
491 const struct GNUNET_GNSRECORD_Data *rd)
495 display_record (rname,
498 GNUNET_NAMESTORE_zone_monitor_next (zm,
504 * Process a record that was stored in the namestore.
507 * @param zone_key private key of the zone
508 * @param rname name that is being mapped (at most 255 characters long)
509 * @param rd_len number of entries in @a rd array
510 * @param rd array of records with data to store
513 display_record_lookup (void *cls,
514 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key,
517 const struct GNUNET_GNSRECORD_Data *rd)
520 display_record (rname,
528 * Function called once we are in sync in monitor mode.
538 "Monitor is now in sync.\n");
543 * Function called on errors while monitoring.
548 monitor_error_cb (void *cls)
553 "Monitor disconnected and out of sync.\n");
558 * Function called on errors while monitoring.
563 lookup_error_cb (void *cls)
569 "Failed to lookup record.\n");
575 * Function called if lookup fails.
578 add_error_cb (void *cls)
589 * We're storing a record; this function is given the existing record
590 * so that we can merge the information.
592 * @param cls closure, unused
593 * @param zone_key private key of the zone
594 * @param rec_name name that is being mapped (at most 255 characters long)
595 * @param rd_count number of entries in @a rd array
596 * @param rd array of records with data to store
599 get_existing_record (void *cls,
600 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key,
601 const char *rec_name,
602 unsigned int rd_count,
603 const struct GNUNET_GNSRECORD_Data *rd)
605 struct GNUNET_GNSRECORD_Data rdn[rd_count + 1];
606 struct GNUNET_GNSRECORD_Data *rde;
611 if (0 != strcmp (rec_name, name))
619 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
620 "Received %u records for name `%s'\n",
622 for (unsigned int i=0;i<rd_count;i++)
624 switch (rd[i].record_type)
626 case GNUNET_DNSPARSER_TYPE_CNAME:
628 _("A %s record exists already under `%s', no other records can be added.\n"),
634 case GNUNET_GNSRECORD_TYPE_PKEY:
636 _("A %s record exists already under `%s', no other records can be added.\n"),
646 case GNUNET_DNSPARSER_TYPE_CNAME:
650 _("Records already exist under `%s', cannot add `%s' record.\n"),
658 case GNUNET_GNSRECORD_TYPE_PKEY:
662 _("Records already exist under `%s', cannot add `%s' record.\n"),
670 case GNUNET_GNSRECORD_TYPE_GNS2DNS:
671 for (unsigned int i=0;i<rd_count;i++)
672 if (GNUNET_GNSRECORD_TYPE_GNS2DNS != rd[i].record_type)
675 _("Non-GNS2DNS records already exist under `%s', cannot add GNS2DNS record.\n"),
685 sizeof (struct GNUNET_GNSRECORD_Data));
686 GNUNET_memcpy (&rdn[1],
688 rd_count * sizeof (struct GNUNET_GNSRECORD_Data));
691 rde->data_size = data_size;
692 rde->record_type = type;
694 rde->flags |= GNUNET_GNSRECORD_RF_SHADOW_RECORD;
696 rde->flags |= GNUNET_GNSRECORD_RF_PRIVATE;
697 if (GNUNET_YES == etime_is_rel)
699 rde->expiration_time = etime_rel.rel_value_us;
700 rde->flags |= GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION;
702 else if (GNUNET_NO == etime_is_rel)
703 rde->expiration_time = etime_abs.abs_value_us;
705 rde->expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us;
706 GNUNET_assert (NULL != name);
707 add_qe = GNUNET_NAMESTORE_records_store (ns,
718 * Function called if we encountered an error in zone-to-name.
721 reverse_error_cb (void *cls)
732 * Function called with the result of our attempt to obtain a name for a given
736 * @param zone private key of the zone; NULL on disconnect
737 * @param label label of the records; NULL on disconnect
738 * @param rd_count number of entries in @a rd array, 0 if label was deleted
739 * @param rd array of records with data to store
742 handle_reverse_lookup (void *cls,
743 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone,
745 unsigned int rd_count,
746 const struct GNUNET_GNSRECORD_Data *rd)
766 * Function called if lookup for deletion fails.
769 del_lookup_error_cb (void *cls)
780 * We were asked to delete something; this function is called with
781 * the existing records. Now we should determine what should be
782 * deleted and then issue the deletion operation.
785 * @param zone private key of the zone we are deleting from
786 * @param label name of the records we are editing
787 * @param rd_count size of the @a rd array
788 * @param rd existing records
791 del_monitor (void *cls,
792 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone,
794 unsigned int rd_count,
795 const struct GNUNET_GNSRECORD_Data *rd)
797 struct GNUNET_GNSRECORD_Data rdx[rd_count];
798 unsigned int rd_left;
808 _("There are no records under label `%s' that could be deleted.\n"),
814 if ( (NULL == value) &&
815 (NULL == typestring) )
817 /* delete everything */
818 del_qe = GNUNET_NAMESTORE_records_store (ns,
828 if (NULL != typestring)
829 type = GNUNET_GNSRECORD_typename_to_number (typestring);
831 type = GNUNET_GNSRECORD_TYPE_ANY;
832 for (unsigned int i=0;i<rd_count;i++)
835 if (! ( ( (GNUNET_GNSRECORD_TYPE_ANY == type) ||
836 (rd[i].record_type == type) ) &&
838 (NULL == (vs = (GNUNET_GNSRECORD_value_to_string (rd[i].record_type,
840 rd[i].data_size)))) ||
841 (0 == strcmp (vs, value)) ) ) )
842 rdx[rd_left++] = rd[i];
843 GNUNET_free_non_null (vs);
845 if (rd_count == rd_left)
847 /* nothing got deleted */
849 _("There are no records under label `%s' that match the request for deletion.\n"),
854 /* delete everything but what we copied to 'rdx' */
855 del_qe = GNUNET_NAMESTORE_records_store (ns,
866 * Callback invoked from identity service with ego information.
867 * An @a ego of NULL means the ego was not found.
869 * @param cls closure with the configuration
870 * @param ego an ego known to identity service, or NULL
873 identity_cb (void *cls,
874 const struct GNUNET_IDENTITY_Ego *ego)
876 const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
877 struct GNUNET_CRYPTO_EcdsaPublicKey pub;
878 struct GNUNET_GNSRECORD_Data rd;
883 if (NULL != ego_name)
886 _("Ego `%s' not known to identity service\n"),
889 GNUNET_SCHEDULER_shutdown ();
893 zone_pkey = *GNUNET_IDENTITY_ego_get_private_key (ego);
894 GNUNET_free_non_null (ego_name);
897 if (! (add|del|list|(NULL != nickstring)|(NULL != uri)|(NULL != reverse_pkey)) )
899 /* nothing more to be done */
901 _("No options given\n"));
902 GNUNET_SCHEDULER_shutdown ();
905 GNUNET_CRYPTO_ecdsa_key_get_public (&zone_pkey,
908 ns = GNUNET_NAMESTORE_connect (cfg);
911 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
912 _("Failed to connect to namestore\n"));
920 _("Missing option `%s' for operation `%s'\n"),
922 GNUNET_SCHEDULER_shutdown ();
926 if (NULL == typestring)
929 _("Missing option `%s' for operation `%s'\n"),
931 GNUNET_SCHEDULER_shutdown ();
935 type = GNUNET_GNSRECORD_typename_to_number (typestring);
936 if (UINT32_MAX == type)
939 _("Unsupported type `%s'\n"),
941 GNUNET_SCHEDULER_shutdown ();
948 _("Missing option `%s' for operation `%s'\n"),
951 GNUNET_SCHEDULER_shutdown ();
955 GNUNET_GNSRECORD_string_to_value (type,
961 _("Value `%s' invalid for record type `%s'\n"),
964 GNUNET_SCHEDULER_shutdown ();
968 if (NULL == expirationstring)
971 _("Missing option `%s' for operation `%s'\n"),
974 GNUNET_SCHEDULER_shutdown ();
978 if (0 == strcmp (expirationstring,
981 etime_abs = GNUNET_TIME_UNIT_FOREVER_ABS;
982 etime_is_rel = GNUNET_NO;
984 else if (GNUNET_OK ==
985 GNUNET_STRINGS_fancy_time_to_relative (expirationstring,
988 etime_is_rel = GNUNET_YES;
989 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
990 "Storing record with relative expiration time of %s\n",
991 GNUNET_STRINGS_relative_time_to_string (etime_rel,
994 else if (GNUNET_OK ==
995 GNUNET_STRINGS_fancy_time_to_absolute (expirationstring,
998 etime_is_rel = GNUNET_NO;
999 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1000 "Storing record with absolute expiration time of %s\n",
1001 GNUNET_STRINGS_absolute_time_to_string (etime_abs));
1006 _("Invalid time format `%s'\n"),
1008 GNUNET_SCHEDULER_shutdown ();
1012 add_qe = GNUNET_NAMESTORE_records_lookup (ns,
1017 &get_existing_record,
1025 _("Missing option `%s' for operation `%s'\n"),
1027 GNUNET_SCHEDULER_shutdown ();
1031 del_qe = GNUNET_NAMESTORE_records_lookup (ns,
1034 &del_lookup_error_cb,
1042 get_qe = GNUNET_NAMESTORE_records_lookup (ns,
1047 &display_record_lookup,
1050 list_it = GNUNET_NAMESTORE_zone_iteration_start (ns,
1052 &zone_iteration_error_cb,
1054 &display_record_iterator,
1056 &zone_iteration_finished,
1059 if (NULL != reverse_pkey)
1061 struct GNUNET_CRYPTO_EcdsaPublicKey pubkey;
1064 GNUNET_CRYPTO_ecdsa_public_key_from_string (reverse_pkey,
1065 strlen (reverse_pkey),
1069 _("Invalid public key for reverse lookup `%s'\n"),
1071 GNUNET_SCHEDULER_shutdown ();
1073 reverse_qe = GNUNET_NAMESTORE_zone_to_name (ns,
1078 &handle_reverse_lookup,
1085 struct GNUNET_CRYPTO_EcdsaPublicKey pkey;
1087 GNUNET_STRINGS_utf8_tolower (uri, uri);
1088 if ( (2 != (sscanf (uri,
1089 "gnunet://gns/%52s/%63s",
1093 GNUNET_CRYPTO_ecdsa_public_key_from_string (sh,
1098 _("Invalid URI `%s'\n"),
1100 GNUNET_SCHEDULER_shutdown ();
1104 memset (&rd, 0, sizeof (rd));
1106 rd.data_size = sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey);
1107 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
1108 if (GNUNET_YES == etime_is_rel)
1110 rd.expiration_time = etime_rel.rel_value_us;
1111 rd.flags |= GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION;
1113 else if (GNUNET_NO == etime_is_rel)
1114 rd.expiration_time = etime_abs.abs_value_us;
1116 rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us;
1119 rd.flags |= GNUNET_GNSRECORD_RF_SHADOW_RECORD;
1120 add_qe_uri = GNUNET_NAMESTORE_records_store (ns,
1128 if (NULL != nickstring)
1130 if (0 == strlen(nickstring))
1133 _("Invalid nick `%s'\n"),
1135 GNUNET_SCHEDULER_shutdown ();
1139 add_qe_uri = GNUNET_NAMESTORE_set_nick (ns,
1147 zm = GNUNET_NAMESTORE_zone_monitor_start (cfg,
1152 &display_record_monitor,
1161 default_ego_cb (void *cls,
1162 struct GNUNET_IDENTITY_Ego *ego,
1173 _("No default ego configured in identity service\n"));
1174 GNUNET_SCHEDULER_shutdown ();
1180 identity_cb (cls, ego);
1186 id_connect_cb (void *cls,
1187 struct GNUNET_IDENTITY_Ego *ego,
1191 const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
1198 get_default = GNUNET_IDENTITY_get (idh,
1207 * Main function that will be run.
1209 * @param cls closure
1210 * @param args remaining command-line arguments
1211 * @param cfgfile name of the configuration file used (for saving, can be NULL!)
1212 * @param cfg configuration
1217 const char *cfgfile,
1218 const struct GNUNET_CONFIGURATION_Handle *cfg)
1223 if ( (NULL != args[0]) &&
1225 uri = GNUNET_strdup (args[0]);
1227 GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
1230 if (NULL == ego_name)
1232 idh = GNUNET_IDENTITY_connect (cfg,
1237 _("Cannot connect to identity service\n"));
1241 el = GNUNET_IDENTITY_ego_lookup (cfg,
1249 * The main function for gnunet-namestore.
1251 * @param argc number of arguments from the command line
1252 * @param argv command line arguments
1253 * @return 0 ok, 1 on error
1259 struct GNUNET_GETOPT_CommandLineOption options[] = {
1260 GNUNET_GETOPT_option_flag ('a',
1262 gettext_noop ("add record"),
1264 GNUNET_GETOPT_option_flag ('d',
1266 gettext_noop ("delete record"),
1268 GNUNET_GETOPT_option_flag ('D',
1270 gettext_noop ("display records"),
1272 GNUNET_GETOPT_option_string ('e',
1275 gettext_noop ("expiration time for record to use (for adding only), \"never\" is possible"),
1277 GNUNET_GETOPT_option_string ('i',
1280 gettext_noop ("set the desired nick name for the zone"),
1282 GNUNET_GETOPT_option_flag ('m',
1284 gettext_noop ("monitor changes in the namestore"),
1286 GNUNET_GETOPT_option_string ('n',
1289 gettext_noop ("name of the record to add/delete/display"),
1291 GNUNET_GETOPT_option_string ('r',
1294 gettext_noop ("determine our name for the given PKEY"),
1296 GNUNET_GETOPT_option_string ('t',
1299 gettext_noop ("type of the record to add/delete/display"),
1301 GNUNET_GETOPT_option_string ('u',
1304 gettext_noop ("URI to import into our zone"),
1306 GNUNET_GETOPT_option_string ('V',
1309 gettext_noop ("value of the record to add/delete"),
1311 GNUNET_GETOPT_option_flag ('p',
1313 gettext_noop ("create or list public record"),
1315 GNUNET_GETOPT_option_flag ('s',
1317 gettext_noop ("create shadow record (only valid if all other records of the same type have expired"),
1319 GNUNET_GETOPT_option_string ('z',
1322 gettext_noop ("name of the ego controlling the zone"),
1324 GNUNET_GETOPT_OPTION_END
1328 GNUNET_STRINGS_get_utf8_args (argc, argv,
1334 GNUNET_log_setup ("gnunet-namestore",
1338 GNUNET_PROGRAM_run (argc,
1341 _("GNUnet zone manipulation tool"),
1345 GNUNET_free ((void*) argv);
1346 GNUNET_CRYPTO_ecdsa_key_clear (&zone_pkey);
1349 GNUNET_free ((void*) argv);
1350 GNUNET_CRYPTO_ecdsa_key_clear (&zone_pkey);
1354 /* end of gnunet-namestore.c */