diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-07-05 13:18:49 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-07-05 13:18:49 +0200 |
commit | dde1ff88217e8dd3dc72ec733e8b53c02839df0e (patch) | |
tree | 04b86de4d9235bb1fcf85a89df297c103fb9f5cf /src/mint-lib/mint_api_withdraw.c | |
parent | 7d8783dee3d0f11aae0c43aeb96329fcbdfa3a58 (diff) | |
download | exchange-dde1ff88217e8dd3dc72ec733e8b53c02839df0e.tar.xz |
fix type
Diffstat (limited to 'src/mint-lib/mint_api_withdraw.c')
-rw-r--r-- | src/mint-lib/mint_api_withdraw.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mint-lib/mint_api_withdraw.c b/src/mint-lib/mint_api_withdraw.c index 1b13a0d9a..491f4d765 100644 --- a/src/mint-lib/mint_api_withdraw.c +++ b/src/mint-lib/mint_api_withdraw.c @@ -655,7 +655,7 @@ withdraw_sign_ok (struct TALER_MINT_WithdrawSignHandle *wsh, struct GNUNET_CRYPTO_rsa_Signature *sig; struct TALER_DenominationSignature dsig; struct MAJ_Specification spec[] = { - MAJ_spec_fixed_auto ("ev_sig", &blind_sig), + MAJ_spec_rsa_signature ("ev_sig", &blind_sig), MAJ_spec_end }; @@ -771,10 +771,10 @@ withdraw_sign_payment_required (struct TALER_MINT_WithdrawSignHandle *wsh, return GNUNET_SYSERR; } /* Check that funds were really insufficient */ - if (0 < TALER_amount_cmp (&requested_amount, - &balance)) + if (0 >= TALER_amount_cmp (&requested_amount, + &balance)) { - /* Requested amount is smaller than reported balance, + /* Requested amount is smaller or equal to reported balance, so this should not have failed. */ GNUNET_break_op (0); return GNUNET_SYSERR; @@ -971,6 +971,7 @@ TALER_MINT_withdraw_sign (struct TALER_MINT_Handle *mint, wsh->mint = mint; wsh->cb = res_cb; wsh->cb_cls = res_cb_cls; + wsh->pk = pk; GNUNET_CRYPTO_eddsa_key_get_public (&coin_priv->eddsa_priv, &coin_pub.eddsa_pub); |