summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_common.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-10 22:33:04 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-10 22:33:04 +0200
commitddf95c491af05732220ac35c6fb1bea48e6f4050 (patch)
tree7003f28a16a693c10d71ba2ddd16232491c2fb42 /src/lib/exchange_api_common.c
parentd01c6fd9028ff766d7604533b30c949e5bec5527 (diff)
downloadexchange-ddf95c491af05732220ac35c6fb1bea48e6f4050.tar.gz
exchange-ddf95c491af05732220ac35c6fb1bea48e6f4050.tar.bz2
exchange-ddf95c491af05732220ac35c6fb1bea48e6f4050.zip
remove unused/unusable coin_sig, return correct coin_pub in recoup-reveal failure context
Diffstat (limited to 'src/lib/exchange_api_common.c')
-rw-r--r--src/lib/exchange_api_common.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c
index feaef7b3..743adb0f 100644
--- a/src/lib/exchange_api_common.c
+++ b/src/lib/exchange_api_common.c
@@ -876,10 +876,11 @@ TALER_EXCHANGE_verify_coin_history (
TALER_amount_hton (&pc.recoup_amount,
&amount);
if (GNUNET_OK !=
- GNUNET_CRYPTO_eddsa_verify (TALER_SIGNATURE_EXCHANGE_CONFIRM_RECOUP,
- &pc,
- &exchange_sig.eddsa_signature,
- &exchange_pub.eddsa_pub))
+ GNUNET_CRYPTO_eddsa_verify (
+ TALER_SIGNATURE_EXCHANGE_CONFIRM_RECOUP_REFRESH,
+ &pc,
+ &exchange_sig.eddsa_signature,
+ &exchange_pub.eddsa_pub))
{
GNUNET_break_op (0);
return GNUNET_SYSERR;
@@ -890,6 +891,9 @@ TALER_EXCHANGE_verify_coin_history (
{
/* signature not supported, new version on server? */
GNUNET_break_op (0);
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Unexpected type `%s' in response\n",
+ type);
GNUNET_assert (GNUNET_SYSERR == add);
return GNUNET_SYSERR;
}