gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] 21/70: -did key check


From: gnunet
Subject: [gnunet] 21/70: -did key check
Date: Wed, 31 Aug 2022 18:00: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.

commit a382fd276c00e40febdf49f326369d54029e24bd
Author: Tristan Schwieren <tristan.schwieren@tum.de>
AuthorDate: Mon Dec 20 14:26:22 2021 +0100

    -did key check
---
 src/did/gnunet-did.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/did/gnunet-did.c b/src/did/gnunet-did.c
index ad88bcaf6..bf5901a79 100644
--- a/src/did/gnunet-did.c
+++ b/src/did/gnunet-did.c
@@ -18,9 +18,7 @@
      SPDX-License-Identifier: AGPL3.0-or-later
  */
 
-// TODO: Public Key in DID Docuement
-// TODO: Correct Key type
-// TODO: valid time when setting DID Docuement - replace - create
+// TODO: Public Key in DID Docuement - pkey_multibase_json
 // TODO: uncrustify
 // TODO: Unit Tests
 
@@ -488,10 +486,7 @@ create_did_ego_lockup_cb(void *cls, struct 
GNUNET_IDENTITY_Ego * ego)
 
   GNUNET_IDENTITY_ego_get_public_key(ego, &pkey);
 
-       printf("DEBUG: Key type: %ld\n", (unsigned long) pkey.type);
-
-       // if (false)
-       if (pkey.type != GNUNET_GNSRECORD_TYPE_EDKEY)
+       if (ntohl(pkey.type) != GNUNET_GNSRECORD_TYPE_EDKEY)
        {
                printf("The EGO has to have an EDDSA key pair\n");
                GNUNET_SCHEDULER_add_now(&cleanup, NULL);

-- 
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]