gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r6938 - in GNUnet: . src/applications/fs/tools


From: gnunet
Subject: [GNUnet-SVN] r6938 - in GNUnet: . src/applications/fs/tools
Date: Fri, 30 May 2008 22:40:50 -0600 (MDT)

Author: grothoff
Date: 2008-05-30 22:40:49 -0600 (Fri, 30 May 2008)
New Revision: 6938

Modified:
   GNUnet/src/applications/fs/tools/gnunet-pseudonym.c
   GNUnet/todo
Log:
fixing gnunet-pseudonym to report new namespace name

Modified: GNUnet/src/applications/fs/tools/gnunet-pseudonym.c
===================================================================
--- GNUnet/src/applications/fs/tools/gnunet-pseudonym.c 2008-05-31 04:35:58 UTC 
(rev 6937)
+++ GNUnet/src/applications/fs/tools/gnunet-pseudonym.c 2008-05-31 04:40:49 UTC 
(rev 6938)
@@ -193,6 +193,10 @@
   int i;
   GNUNET_HashCode hc;
   GNUNET_HashCode nsid;
+  GNUNET_HashCode rootEntry;
+  struct GNUNET_ECRS_URI *rootURI;
+  char *root;
+  char *ns_name;
 
   meta = GNUNET_ECRS_meta_data_create ();
   i = GNUNET_init (argc,
@@ -263,10 +267,6 @@
         }
       else
         {                       /* no collection */
-          GNUNET_HashCode rootEntry;
-          struct GNUNET_ECRS_URI *rootURI;
-          char *root;
-
           if (root_name == NULL)
             {
               memset (&rootEntry, 0, sizeof (GNUNET_HashCode));
@@ -303,9 +303,13 @@
             }
           else
             {
+             GNUNET_ECRS_uri_get_namespace_from_sks(rootURI,
+                                                    &nsid);
+             ns_name = GNUNET_PSEUDO_id_to_name(ectx, cfg, &nsid);
               root = GNUNET_ECRS_uri_to_string (rootURI);
               printf (_("Namespace `%s' created (root: %s).\n"),
-                      create_name, root);
+                      ns_name, root);
+             GNUNET_free (ns_name);
               GNUNET_free (root);
               GNUNET_ECRS_uri_destroy (rootURI);
             }

Modified: GNUnet/todo
===================================================================
--- GNUnet/todo 2008-05-31 04:35:58 UTC (rev 6937)
+++ GNUnet/todo 2008-05-31 04:40:49 UTC (rev 6938)
@@ -4,12 +4,9 @@
   RC == Release Critical
 
 0.8.0 [5'08] (aka "new protocol"):
-- namespaces: 
-  + need way to map nsid to namespace name (for ECRS interaction!)
-    => additional store? (used to have it, gone with libpseudonym!)
-    => rather: use pseudo's mapping (used already in gnunet-insert, etc!)
-    => need to inform user creating pseudonym about mapped name!!!
+- namespaces / pseudonyms: 
   + need better / actual / compiling testcase!
+  + including testing for id_to_name and back!
 - chat:  [RC]
   + adapt gnunet-chat for new client api 
     => add support for new options (private msg, anon msg, confirmation)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]