diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-06-07 16:57:12 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-06-07 16:57:12 +0200 |
commit | 446761b6029298410000181697abef5dbdbd4b57 (patch) | |
tree | 0b750b4c34ce8f66e24f6b319fb3dcf5cb5ea221 /src/testing | |
parent | f0bcbf65862c8e44e245bda21ea078803dcd5ad0 (diff) |
-more minor bugfixes
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/testing_api_cmd_insert_deposit.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/testing/testing_api_cmd_insert_deposit.c b/src/testing/testing_api_cmd_insert_deposit.c index a82caa730..032ff72dc 100644 --- a/src/testing/testing_api_cmd_insert_deposit.c +++ b/src/testing/testing_api_cmd_insert_deposit.c @@ -164,14 +164,16 @@ insert_deposit_run (void *cls, 0, sizeof (deposit)); - GNUNET_CRYPTO_kdf (&merchant_priv, - sizeof (struct TALER_MerchantPrivateKeyP), - "merchant-priv", - strlen ("merchant-priv"), - ids->merchant_name, - strlen (ids->merchant_name), - NULL, - 0); + GNUNET_assert ( + GNUNET_YES == + GNUNET_CRYPTO_kdf (&merchant_priv, + sizeof (struct TALER_MerchantPrivateKeyP), + "merchant-priv", + strlen ("merchant-priv"), + ids->merchant_name, + strlen (ids->merchant_name), + NULL, + 0)); GNUNET_CRYPTO_eddsa_key_get_public (&merchant_priv.eddsa_priv, &deposit.merchant_pub.eddsa_pub); GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK, |