diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-09 14:52:00 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-09 14:52:00 +0200 |
commit | c179734ccfc8a9dc9571d4a39ca2d37513c409a6 (patch) | |
tree | 993301a08f12db403e3bce4329adede0ac48ae35 /src/exchange/taler-exchange-httpd_db.c | |
parent | 3b9248e9c6d0abb3311dd7db25b5a227609b9bd1 (diff) | |
download | exchange-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.c | 13 |
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")) |