summaryrefslogtreecommitdiff
path: root/src/json
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/json
parent88bb7f44281a9f8a9474a242f0e2557fed9da781 (diff)
downloadexchange-44272bf1cee4312d8d9c83eedc34dbb63fa1c0a4.tar.gz
exchange-44272bf1cee4312d8d9c83eedc34dbb63fa1c0a4.tar.bz2
exchange-44272bf1cee4312d8d9c83eedc34dbb63fa1c0a4.zip
adapations to GNUnet API change
Diffstat (limited to 'src/json')
-rw-r--r--src/json/test_json_wire.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/json/test_json_wire.c b/src/json/test_json_wire.c
index 3b2123e26..2725173b2 100644
--- a/src/json/test_json_wire.c
+++ b/src/json/test_json_wire.c
@@ -29,7 +29,6 @@ main (int argc,
const char *const argv[])
{
struct TALER_MasterPublicKeyP master_pub;
- struct GNUNET_CRYPTO_EddsaPrivateKey *priv;
struct TALER_MasterPrivateKeyP master_priv;
json_t *wire;
const char *payto = "payto://x-taler-bank/42";
@@ -40,9 +39,7 @@ main (int argc,
GNUNET_log_setup ("test-json-wire",
"WARNING",
NULL);
- priv = GNUNET_CRYPTO_eddsa_key_create ();
- master_priv.eddsa_priv = *priv;
- GNUNET_free (priv);
+ GNUNET_CRYPTO_eddsa_key_create (&master_priv.eddsa_priv);
GNUNET_CRYPTO_eddsa_key_get_public (&master_priv.eddsa_priv,
&master_pub.eddsa_pub);
wire = TALER_JSON_exchange_wire_signature_make (payto,