[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 01/02: REVOCATION: Rename GNS recovation signature purpose
From: |
gnunet |
Subject: |
[gnunet] 01/02: REVOCATION: Rename GNS recovation signature purpose |
Date: |
Mon, 28 Aug 2023 22:18:17 +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 3143c60c997c8a4099c8194d8a2f0380aeb7c55e
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Mon Aug 28 22:17:57 2023 +0200
REVOCATION: Rename GNS recovation signature purpose
---
src/revocation/revocation_api.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/revocation/revocation_api.c b/src/revocation/revocation_api.c
index 327b03494..cffab5acd 100644
--- a/src/revocation/revocation_api.c
+++ b/src/revocation/revocation_api.c
@@ -412,7 +412,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],
@@ -433,7 +433,7 @@ 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,
+ GNUNET_IDENTITY_signature_verify_raw_
(GNUNET_SIGNATURE_PURPOSE_GNS_REVOCATION,
&spurp->purpose,
sig,
key);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.