gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: -output public key not private


From: gnunet
Subject: [gnunet] branch master updated: -output public key not private
Date: Mon, 24 Oct 2022 14:29:15 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 7a1793b34 -output public key not private
7a1793b34 is described below

commit 7a1793b347a72ec0b3437effe6faeb4170f1c445
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Mon Oct 24 21:29:07 2022 +0900

    -output public key not private
---
 src/namestore/gnunet-namestore.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c
index c97ada671..f6e53a340 100644
--- a/src/namestore/gnunet-namestore.c
+++ b/src/namestore/gnunet-namestore.c
@@ -614,6 +614,7 @@ display_record (const struct GNUNET_IDENTITY_PrivateKey 
*zone_key,
   const char *typestr;
   char *s;
   const char *ets;
+  struct GNUNET_IDENTITY_PublicKey pk;
   struct GNUNET_TIME_Absolute at;
   struct GNUNET_TIME_Relative rt;
   struct EgoEntry *ego;
@@ -646,11 +647,12 @@ display_record (const struct GNUNET_IDENTITY_PrivateKey 
*zone_key,
       break;
     }
   }
-  if (list_orphaned && !is_orphaned)
+  if (list_orphaned && ! is_orphaned)
     return;
-  if (!list_orphaned && is_orphaned)
+  if (! list_orphaned && is_orphaned)
     return;
-  orphaned_str = GNUNET_IDENTITY_private_key_to_string (zone_key);
+  GNUNET_IDENTITY_key_get_public (zone_key, &pk);
+  orphaned_str = GNUNET_IDENTITY_public_key_to_string (&pk);
   fprintf (stdout, "%s.%s:\n", rname, is_orphaned ? orphaned_str :
            ego->identifier);
   GNUNET_free (orphaned_str);
@@ -1914,7 +1916,7 @@ main (int argc, char *const *argv)
     GNUNET_GETOPT_option_flag ('X',
                                "purge-zone-records",
                                gettext_noop (
-                               "delete all records in specified zone"),
+                                 "delete all records in specified zone"),
                                &purge_zone),
     GNUNET_GETOPT_option_flag (
       's',

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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