summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_db.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-09 14:52:00 +0200
committerChristian Grothoff <christian@grothoff.org>2016-06-09 14:52:00 +0200
commitc179734ccfc8a9dc9571d4a39ca2d37513c409a6 (patch)
tree993301a08f12db403e3bce4329adede0ac48ae35 /src/exchange/taler-exchange-httpd_db.c
parent3b9248e9c6d0abb3311dd7db25b5a227609b9bd1 (diff)
downloadexchange-c179734ccfc8a9dc9571d4a39ca2d37513c409a6.tar.gz
exchange-c179734ccfc8a9dc9571d4a39ca2d37513c409a6.tar.bz2
exchange-c179734ccfc8a9dc9571d4a39ca2d37513c409a6.zip
make code build against revised GNUnet blind signing API
Diffstat (limited to 'src/exchange/taler-exchange-httpd_db.c')
-rw-r--r--src/exchange/taler-exchange-httpd_db.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c
index 43de27e9c..73e264e0c 100644
--- a/src/exchange/taler-exchange-httpd_db.c
+++ b/src/exchange/taler-exchange-httpd_db.c
@@ -1262,14 +1262,15 @@ check_commitment (struct MHD_Connection *connection,
GNUNET_CRYPTO_hash (&coin_pub,
sizeof (struct TALER_CoinSpendPublicKeyP),
&h_msg);
- if (0 == (buf_len =
- GNUNET_CRYPTO_rsa_blind (&h_msg,
- &link_data.blinding_key.bks,
- denom_pubs[j].rsa_public_key,
- &buf)))
+ if (GNUNET_YES !=
+ GNUNET_CRYPTO_rsa_blind (&h_msg,
+ &link_data.blinding_key.bks,
+ denom_pubs[j].rsa_public_key,
+ &buf,
+ &buf_len))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "blind failed\n");
+ "Blind failed (bad denomination key!?)\n");
GNUNET_free (commit_coins);
return (MHD_YES == TMH_RESPONSE_reply_internal_error (connection,
"Blinding error"))