aboutsummaryrefslogtreecommitdiff
path: root/src/revocation
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-02-26 16:05:28 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2022-02-26 16:05:28 +0100
commit52f952df6cd1e8347835573733ceff91c6c4f93e (patch)
tree0e701518b072393725f12b9e04a5ea0d1c9dc832 /src/revocation
parentb00d7788784a7e58a318e0f484886c2d6dbd1ca9 (diff)
downloadgnunet-52f952df6cd1e8347835573733ceff91c6c4f93e.tar.gz
gnunet-52f952df6cd1e8347835573733ceff91c6c4f93e.zip
-silence warnings
Diffstat (limited to 'src/revocation')
-rw-r--r--src/revocation/revocation_api.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/revocation/revocation_api.c b/src/revocation/revocation_api.c
index bc5dae021..9080ab862 100644
--- a/src/revocation/revocation_api.c
+++ b/src/revocation/revocation_api.c
@@ -758,13 +758,11 @@ GNUNET_REVOCATION_proof_get_size (const struct GNUNET_REVOCATION_PowP *pow)
758 size_t size; 758 size_t size;
759 size_t ksize; 759 size_t ksize;
760 const struct GNUNET_IDENTITY_PublicKey *pk; 760 const struct GNUNET_IDENTITY_PublicKey *pk;
761 const struct GNUNET_IDENTITY_Signature *sig;
762 761
763 size = sizeof (struct GNUNET_REVOCATION_PowP); 762 size = sizeof (struct GNUNET_REVOCATION_PowP);
764 pk = (const struct GNUNET_IDENTITY_PublicKey *) &pow[1]; 763 pk = (const struct GNUNET_IDENTITY_PublicKey *) &pow[1];
765 ksize = GNUNET_IDENTITY_key_get_length (pk); 764 ksize = GNUNET_IDENTITY_key_get_length (pk);
766 size += ksize; 765 size += ksize;
767 sig = (struct GNUNET_IDENTITY_Signature *) ((char*) &pow[1] + ksize);
768 size += GNUNET_IDENTITY_signature_get_raw_length_by_type (pk->type); 766 size += GNUNET_IDENTITY_signature_get_raw_length_by_type (pk->type);
769 return size; 767 return size;
770} 768}