aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/gnunet-revocation.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-10-14 19:47:32 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-10-15 12:11:18 +0200
commit96c802b46be51e5c45f34e2de823f787d26c2929 (patch)
tree457ccfd8f9a61563af86318739c4a8f964a57025 /src/revocation/gnunet-revocation.c
parentc14e3a2769ff0f15fdbb32797e37e43ce2344fa3 (diff)
downloadgnunet-96c802b46be51e5c45f34e2de823f787d26c2929.tar.gz
gnunet-96c802b46be51e5c45f34e2de823f787d26c2929.zip
- towards crypto agility; wip
Diffstat (limited to 'src/revocation/gnunet-revocation.c')
-rw-r--r--src/revocation/gnunet-revocation.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/revocation/gnunet-revocation.c b/src/revocation/gnunet-revocation.c
index 0e1e482ab..2ba5d0420 100644
--- a/src/revocation/gnunet-revocation.c
+++ b/src/revocation/gnunet-revocation.c
@@ -101,7 +101,7 @@ static struct GNUNET_SCHEDULER_Task *pow_task;
101/** 101/**
102 * Proof-of-work object 102 * Proof-of-work object
103 */ 103 */
104static struct GNUNET_REVOCATION_PowP proof_of_work; 104static struct GNUNET_REVOCATION_PowP *proof_of_work;
105 105
106/** 106/**
107 * Function run if the user aborts with CTRL-C. 107 * Function run if the user aborts with CTRL-C.
@@ -325,8 +325,8 @@ calculate_pow (void *cls)
325static void 325static void
326ego_callback (void *cls, struct GNUNET_IDENTITY_Ego *ego) 326ego_callback (void *cls, struct GNUNET_IDENTITY_Ego *ego)
327{ 327{
328 struct GNUNET_CRYPTO_EcdsaPublicKey key; 328 struct GNUNET_IDENTITY_PublicKey key;
329 const struct GNUNET_CRYPTO_EcdsaPrivateKey *privkey; 329 const struct GNUNET_IDENTITY_PrivateKey *privkey;
330 struct GNUNET_REVOCATION_PowCalculationHandle *ph = NULL; 330 struct GNUNET_REVOCATION_PowCalculationHandle *ph = NULL;
331 331
332 el = NULL; 332 el = NULL;
@@ -403,15 +403,14 @@ run (void *cls,
403 const char *cfgfile, 403 const char *cfgfile,
404 const struct GNUNET_CONFIGURATION_Handle *c) 404 const struct GNUNET_CONFIGURATION_Handle *c)
405{ 405{
406 struct GNUNET_CRYPTO_EcdsaPublicKey pk; 406 struct GNUNET_IDENTITY_PublicKey pk;
407 407
408 cfg = c; 408 cfg = c;
409 if (NULL != test_ego) 409 if (NULL != test_ego)
410 { 410 {
411 if (GNUNET_OK != 411 if (GNUNET_OK !=
412 GNUNET_CRYPTO_ecdsa_public_key_from_string (test_ego, 412 GNUNET_IDENTITY_public_key_from_string (test_ego,
413 strlen (test_ego), 413 &pk))
414 &pk))
415 { 414 {
416 fprintf (stderr, _ ("Public key `%s' malformed\n"), test_ego); 415 fprintf (stderr, _ ("Public key `%s' malformed\n"), test_ego);
417 return; 416 return;