diff options
Diffstat (limited to 'src/exchange')
| -rw-r--r-- | src/exchange/Makefile.am | 2 | ||||
| -rw-r--r-- | src/exchange/taler-exchange-httpd_db.c | 13 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/exchange/Makefile.am b/src/exchange/Makefile.am index ff4fe91d..42fe8252 100644 --- a/src/exchange/Makefile.am +++ b/src/exchange/Makefile.am @@ -74,7 +74,7 @@ test_taler_exchange_aggregator_postgres_SOURCES = \ test_taler_exchange_aggregator_postgres_LDADD = \ $(LIBGCRYPT_LIBS) \ $(top_builddir)/src/exchangedb/libtalerexchangedb.la \ - $(top_builddir)/src/bank-lib/libfakebank.la \ + $(top_builddir)/src/bank-lib/libtalerfakebank.la \ $(top_builddir)/src/json/libtalerjson.la \ $(top_builddir)/src/util/libtalerutil.la \ -lmicrohttpd \ diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c index 43de27e9..73e264e0 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")) |
