aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/gnunet-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/gnunet-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/gnunet-revocation.c')
-rw-r--r--src/revocation/gnunet-revocation.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/revocation/gnunet-revocation.c b/src/revocation/gnunet-revocation.c
index 853ca0f71..9667e7655 100644
--- a/src/revocation/gnunet-revocation.c
+++ b/src/revocation/gnunet-revocation.c
@@ -323,8 +323,8 @@ calculate_pow (void *cls)
323static void 323static void
324ego_callback (void *cls, struct GNUNET_IDENTITY_Ego *ego) 324ego_callback (void *cls, struct GNUNET_IDENTITY_Ego *ego)
325{ 325{
326 struct GNUNET_IDENTITY_PublicKey key; 326 struct GNUNET_CRYPTO_PublicKey key;
327 const struct GNUNET_IDENTITY_PrivateKey *privkey; 327 const struct GNUNET_CRYPTO_PrivateKey *privkey;
328 struct GNUNET_REVOCATION_PowCalculationHandle *ph = NULL; 328 struct GNUNET_REVOCATION_PowCalculationHandle *ph = NULL;
329 size_t psize; 329 size_t psize;
330 330
@@ -343,7 +343,7 @@ ego_callback (void *cls, struct GNUNET_IDENTITY_Ego *ego)
343 GNUNET_DISK_fn_read (filename, proof_of_work, 343 GNUNET_DISK_fn_read (filename, proof_of_work,
344 GNUNET_REVOCATION_MAX_PROOF_SIZE)))) 344 GNUNET_REVOCATION_MAX_PROOF_SIZE))))
345 { 345 {
346 ssize_t ksize = GNUNET_IDENTITY_public_key_get_length (&key); 346 ssize_t ksize = GNUNET_CRYPTO_public_key_get_length (&key);
347 if (0 > ksize) 347 if (0 > ksize)
348 { 348 {
349 fprintf (stderr, 349 fprintf (stderr,
@@ -411,14 +411,14 @@ run (void *cls,
411 const char *cfgfile, 411 const char *cfgfile,
412 const struct GNUNET_CONFIGURATION_Handle *c) 412 const struct GNUNET_CONFIGURATION_Handle *c)
413{ 413{
414 struct GNUNET_IDENTITY_PublicKey pk; 414 struct GNUNET_CRYPTO_PublicKey pk;
415 size_t psize; 415 size_t psize;
416 416
417 cfg = c; 417 cfg = c;
418 if (NULL != test_ego) 418 if (NULL != test_ego)
419 { 419 {
420 if (GNUNET_OK != 420 if (GNUNET_OK !=
421 GNUNET_IDENTITY_public_key_from_string (test_ego, 421 GNUNET_CRYPTO_public_key_from_string (test_ego,
422 &pk)) 422 &pk))
423 { 423 {
424 fprintf (stderr, _ ("Public key `%s' malformed\n"), test_ego); 424 fprintf (stderr, _ ("Public key `%s' malformed\n"), test_ego);