gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated (08db4c455 -> 9cdd03679)


From: gnunet
Subject: [gnunet] branch master updated (08db4c455 -> 9cdd03679)
Date: Mon, 28 Aug 2023 22:18:16 +0200

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

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

    from 08db4c455 GANA/SPHINX: Update submodules
     new 3143c60c9 REVOCATION: Rename GNS recovation signature purpose
     new 9cdd03679 - uncrustify

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/revocation/revocation_api.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/revocation/revocation_api.c b/src/revocation/revocation_api.c
index 327b03494..819c34b71 100644
--- a/src/revocation/revocation_api.c
+++ b/src/revocation/revocation_api.c
@@ -401,6 +401,7 @@ calculate_score (const struct 
GNUNET_REVOCATION_PowCalculationHandle *ph)
   return avg;
 }
 
+
 struct GNUNET_REVOCATION_SignaturePurposePS *
 REV_create_signature_message (const struct GNUNET_REVOCATION_PowP *pow)
 {
@@ -412,7 +413,7 @@ REV_create_signature_message (const struct 
GNUNET_REVOCATION_PowP *pow)
   ksize = GNUNET_IDENTITY_public_key_get_length (pk);
   spurp = GNUNET_malloc (sizeof (*spurp) + ksize);
   spurp->timestamp = pow->timestamp;
-  spurp->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_REVOCATION);
+  spurp->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_GNS_REVOCATION);
   spurp->purpose.size = htonl (sizeof(*spurp) + ksize);
   GNUNET_IDENTITY_write_public_key_to_buffer (pk,
                                               (char*) &spurp[1],
@@ -420,6 +421,7 @@ REV_create_signature_message (const struct 
GNUNET_REVOCATION_PowP *pow)
   return spurp;
 }
 
+
 enum GNUNET_GenericReturnValue
 check_signature_identity (const struct GNUNET_REVOCATION_PowP *pow,
                           const struct GNUNET_IDENTITY_PublicKey *key)
@@ -433,10 +435,11 @@ check_signature_identity (const struct 
GNUNET_REVOCATION_PowP *pow,
   spurp = REV_create_signature_message (pow);
   sig = ((unsigned char*) &pow[1] + ksize);
   ret =
-    GNUNET_IDENTITY_signature_verify_raw_ (GNUNET_SIGNATURE_PURPOSE_REVOCATION,
-                                           &spurp->purpose,
-                                           sig,
-                                           key);
+    GNUNET_IDENTITY_signature_verify_raw_ (
+      GNUNET_SIGNATURE_PURPOSE_GNS_REVOCATION,
+      &spurp->purpose,
+      sig,
+      key);
   GNUNET_free (spurp);
   return ret == GNUNET_OK ? GNUNET_OK : GNUNET_SYSERR;
 }

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