aboutsummaryrefslogtreecommitdiff
path: root/src/util
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/util
parent88bb7f44281a9f8a9474a242f0e2557fed9da781 (diff)
adapations to GNUnet API change
Diffstat (limited to 'src/util')
-rw-r--r--src/util/test_crypto.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/util/test_crypto.c b/src/util/test_crypto.c
index de10e567d..8135dfe35 100644
--- a/src/util/test_crypto.c
+++ b/src/util/test_crypto.c
@@ -32,10 +32,8 @@
static int
test_high_level (void)
{
- struct GNUNET_CRYPTO_EddsaPrivateKey *pk;
struct TALER_CoinSpendPrivateKeyP coin_priv;
struct TALER_CoinSpendPublicKeyP coin_pub;
- struct GNUNET_CRYPTO_EcdhePrivateKey *pk2;
struct TALER_TransferPrivateKeyP trans_priv;
struct TALER_TransferPublicKeyP trans_pub;
struct TALER_TransferSecretP secret;
@@ -43,14 +41,10 @@ test_high_level (void)
struct TALER_PlanchetSecretsP fc1;
struct TALER_PlanchetSecretsP fc2;
- pk = GNUNET_CRYPTO_eddsa_key_create ();
- coin_priv.eddsa_priv = *pk;
- GNUNET_free (pk);
+ GNUNET_CRYPTO_eddsa_key_create (&coin_priv.eddsa_priv);
GNUNET_CRYPTO_eddsa_key_get_public (&coin_priv.eddsa_priv,
&coin_pub.eddsa_pub);
- pk2 = GNUNET_CRYPTO_ecdhe_key_create ();
- trans_priv.ecdhe_priv = *pk2;
- GNUNET_free (pk2);
+ GNUNET_CRYPTO_ecdhe_key_create (&trans_priv.ecdhe_priv);
GNUNET_CRYPTO_ecdhe_key_get_public (&trans_priv.ecdhe_priv,
&trans_pub.ecdhe_pub);
TALER_link_derive_transfer_secret (&coin_priv,