aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/test_exchangedb_denomkeys.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-11 21:06:30 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-11 21:06:30 +0200
commit44272bf1cee4312d8d9c83eedc34dbb63fa1c0a4 (patch)
treeaab79cc966bad591aadc7f4b469d816a9e261229 /src/exchangedb/test_exchangedb_denomkeys.c
parent88bb7f44281a9f8a9474a242f0e2557fed9da781 (diff)
adapations to GNUnet API change
Diffstat (limited to 'src/exchangedb/test_exchangedb_denomkeys.c')
-rw-r--r--src/exchangedb/test_exchangedb_denomkeys.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/exchangedb/test_exchangedb_denomkeys.c b/src/exchangedb/test_exchangedb_denomkeys.c
index 12add14da..1acb61dde 100644
--- a/src/exchangedb/test_exchangedb_denomkeys.c
+++ b/src/exchangedb/test_exchangedb_denomkeys.c
@@ -114,7 +114,6 @@ main (int argc,
void *enc;
size_t enc_size;
struct TALER_EXCHANGEDB_DenominationKey dki_read;
- struct GNUNET_CRYPTO_EddsaPrivateKey *pk;
struct TALER_MasterPrivateKeyP master_priv;
struct TALER_MasterPublicKeyP master_pub;
void *enc_read;
@@ -136,11 +135,9 @@ main (int argc,
tmpfile = NULL;
dki.denom_priv.rsa_private_key = NULL;
dki_read.denom_priv.rsa_private_key = NULL;
- pk = GNUNET_CRYPTO_eddsa_key_create ();
- master_priv.eddsa_priv = *pk;
- GNUNET_CRYPTO_eddsa_key_get_public (pk,
+ GNUNET_CRYPTO_eddsa_key_create (&master_priv.eddsa_priv);
+ GNUNET_CRYPTO_eddsa_key_get_public (&master_priv.eddsa_priv,
&master_pub.eddsa_pub);
- GNUNET_free (pk);
GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK,
&dki.issue,
sizeof (struct