aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/plugin_block_revocation.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2023-10-18 13:37:38 +0200
committerMartin Schanzenbach <schanzen@gnunet.org>2023-10-18 13:37:38 +0200
commit9ef4abad615bea12d13be542b8ae5fbeb2dfee32 (patch)
tree8875a687e004d331c9ea6a1d511a328c72b88113 /src/revocation/plugin_block_revocation.c
parente95236b3ed78cd597c15f34b89385295702b627f (diff)
downloadgnunet-9ef4abad615bea12d13be542b8ae5fbeb2dfee32.tar.gz
gnunet-9ef4abad615bea12d13be542b8ae5fbeb2dfee32.zip
NEWS: Refactoring components under src/ into lib/, plugin/, cli/ and service/
This also includes a necessary API refactoring of crypto from IDENTITY to UTIL.
Diffstat (limited to 'src/revocation/plugin_block_revocation.c')
-rw-r--r--src/revocation/plugin_block_revocation.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/revocation/plugin_block_revocation.c b/src/revocation/plugin_block_revocation.c
index 7de4fafe9..9686f23ff 100644
--- a/src/revocation/plugin_block_revocation.c
+++ b/src/revocation/plugin_block_revocation.c
@@ -94,7 +94,7 @@ block_plugin_revocation_check_block (void *cls,
94 const struct RevokeMessage *rm = block; 94 const struct RevokeMessage *rm = block;
95 const struct GNUNET_REVOCATION_PowP *pow 95 const struct GNUNET_REVOCATION_PowP *pow
96 = (const struct GNUNET_REVOCATION_PowP *) &rm[1]; 96 = (const struct GNUNET_REVOCATION_PowP *) &rm[1];
97 struct GNUNET_IDENTITY_PublicKey pk; 97 struct GNUNET_CRYPTO_PublicKey pk;
98 size_t pklen; 98 size_t pklen;
99 size_t left; 99 size_t left;
100 100
@@ -115,7 +115,7 @@ block_plugin_revocation_check_block (void *cls,
115 } 115 }
116 left = block_size - sizeof (*rm) - sizeof (*pow); 116 left = block_size - sizeof (*rm) - sizeof (*pow);
117 if (GNUNET_SYSERR == 117 if (GNUNET_SYSERR ==
118 GNUNET_IDENTITY_read_public_key_from_buffer (&pow[1], 118 GNUNET_CRYPTO_read_public_key_from_buffer (&pow[1],
119 left, 119 left,
120 &pk, 120 &pk,
121 &pklen)) 121 &pklen))
@@ -204,7 +204,7 @@ block_plugin_revocation_get_key (void *cls,
204 const struct RevokeMessage *rm = block; 204 const struct RevokeMessage *rm = block;
205 const struct GNUNET_REVOCATION_PowP *pow 205 const struct GNUNET_REVOCATION_PowP *pow
206 = (const struct GNUNET_REVOCATION_PowP *) &rm[1]; 206 = (const struct GNUNET_REVOCATION_PowP *) &rm[1];
207 struct GNUNET_IDENTITY_PublicKey pk; 207 struct GNUNET_CRYPTO_PublicKey pk;
208 size_t pklen; 208 size_t pklen;
209 size_t left; 209 size_t left;
210 210
@@ -224,7 +224,7 @@ block_plugin_revocation_get_key (void *cls,
224 return GNUNET_NO; 224 return GNUNET_NO;
225 } 225 }
226 left = block_size - sizeof (*rm) - sizeof (*pow); 226 left = block_size - sizeof (*rm) - sizeof (*pow);
227 if (GNUNET_SYSERR == GNUNET_IDENTITY_read_public_key_from_buffer (&pow[1], 227 if (GNUNET_SYSERR == GNUNET_CRYPTO_read_public_key_from_buffer (&pow[1],
228 left, 228 left,
229 &pk, 229 &pk,
230 &pklen)) 230 &pklen))