diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-11 21:42:52 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-11 21:42:52 +0200 |
commit | 4b60d2540f48e2b9bfd17898dcdac2705603fde3 (patch) | |
tree | cc28590d021c1e227bc21f6421e08aed5fcc9898 /src/testing | |
parent | 44272bf1cee4312d8d9c83eedc34dbb63fa1c0a4 (diff) | |
download | exchange-4b60d2540f48e2b9bfd17898dcdac2705603fde3.tar.xz |
adapations related to GNUnet fixing #6149
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/testing_api_cmd_bank_admin_add_incoming.c | 12 |
1 files changed, 6 insertions, 6 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 6ab287f66..2399825d9 100644 --- a/src/testing/testing_api_cmd_bank_admin_add_incoming.c +++ b/src/testing/testing_api_cmd_bank_admin_add_incoming.c @@ -304,7 +304,6 @@ admin_add_incoming_run (void *cls, { char *section; char *keys; - struct GNUNET_CRYPTO_EddsaPrivateKey *priv; struct GNUNET_CONFIGURATION_Handle *cfg; GNUNET_assert (NULL != fts->config_filename); @@ -336,21 +335,22 @@ admin_add_incoming_run (void *cls, TALER_TESTING_interpreter_fail (is); return; } - priv = GNUNET_CRYPTO_eddsa_key_create_from_file (keys); - GNUNET_free (keys); - if (NULL == priv) + if (GNUNET_OK != + GNUNET_CRYPTO_eddsa_key_from_file (keys, + GNUNET_NO, + &fts->reserve_priv.eddsa_priv)) { GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR, section, "TIP_RESERVE_PRIV_FILENAME", "Failed to read private key"); GNUNET_free (section); + GNUNET_free (keys); TALER_TESTING_interpreter_fail (is); return; } - fts->reserve_priv.eddsa_priv = *priv; + GNUNET_free (keys); GNUNET_free (section); - GNUNET_free (priv); GNUNET_CONFIGURATION_destroy (cfg); } else |