diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-11 21:06:30 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-11 21:06:30 +0200 |
commit | 44272bf1cee4312d8d9c83eedc34dbb63fa1c0a4 (patch) | |
tree | aab79cc966bad591aadc7f4b469d816a9e261229 /src/testing | |
parent | 88bb7f44281a9f8a9474a242f0e2557fed9da781 (diff) | |
download | exchange-44272bf1cee4312d8d9c83eedc34dbb63fa1c0a4.tar.xz |
adapations to GNUnet API change
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/testing_api_cmd_bank_admin_add_incoming.c | 6 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_deposit.c | 5 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/testing/testing_api_cmd_bank_admin_add_incoming.c b/src/testing/testing_api_cmd_bank_admin_add_incoming.c index 04e6839d1..6ab287f66 100644 --- a/src/testing/testing_api_cmd_bank_admin_add_incoming.c +++ b/src/testing/testing_api_cmd_bank_admin_add_incoming.c @@ -357,11 +357,7 @@ admin_add_incoming_run (void *cls, { /* No referenced reserve, no instance to take priv * from, no explicit subject given: create new key! */ - struct GNUNET_CRYPTO_EddsaPrivateKey *priv; - - priv = GNUNET_CRYPTO_eddsa_key_create (); - fts->reserve_priv.eddsa_priv = *priv; - GNUNET_free (priv); + GNUNET_CRYPTO_eddsa_key_create (&fts->reserve_priv.eddsa_priv); } } GNUNET_CRYPTO_eddsa_key_get_public (&fts->reserve_priv.eddsa_priv, diff --git a/src/testing/testing_api_cmd_deposit.c b/src/testing/testing_api_cmd_deposit.c index c251aada3..9468e7acb 100644 --- a/src/testing/testing_api_cmd_deposit.c +++ b/src/testing/testing_api_cmd_deposit.c @@ -581,7 +581,6 @@ TALER_TESTING_cmd_deposit (const char *label, { struct DepositState *ds; json_t *wire_details; - struct GNUNET_CRYPTO_EddsaPrivateKey *merchant_priv; wire_details = TALER_TESTING_make_wire_details (target_account_payto); ds = GNUNET_new (struct DepositState); @@ -591,9 +590,7 @@ TALER_TESTING_cmd_deposit (const char *label, ds->contract_terms = json_loads (contract_terms, JSON_REJECT_DUPLICATES, NULL); - merchant_priv = GNUNET_CRYPTO_eddsa_key_create (); - ds->merchant_priv.eddsa_priv = *merchant_priv; - GNUNET_free (merchant_priv); + GNUNET_CRYPTO_eddsa_key_create (&ds->merchant_priv.eddsa_priv); if (NULL == ds->contract_terms) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |