diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-28 15:35:41 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-28 15:35:41 +0100 |
commit | e19f1906a3363f0f49553d35d95429c92bec29d4 (patch) | |
tree | b5c644a5600e1f629bc7dd72d2f88461f4ad5526 /src/mint/taler-mint-httpd_db.c | |
parent | 7f171e69b27d48f02acd8c79e3a173a448be7ebd (diff) |
avoid using struct Deposit in response
Diffstat (limited to 'src/mint/taler-mint-httpd_db.c')
-rw-r--r-- | src/mint/taler-mint-httpd_db.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/mint/taler-mint-httpd_db.c b/src/mint/taler-mint-httpd_db.c index 1fa42f8de..6949da22d 100644 --- a/src/mint/taler-mint-httpd_db.c +++ b/src/mint/taler-mint-httpd_db.c @@ -72,7 +72,13 @@ TALER_MINT_db_execute_deposit (struct MHD_Connection *connection, if (0 == memcmp (&existing_deposit, deposit, sizeof (struct Deposit))) - return TALER_MINT_reply_deposit_success (connection, deposit); + return TALER_MINT_reply_deposit_success (connection, + &deposit->coin.coin_pub, + &deposit->h_wire, + &deposit->h_contract, + deposit->transaction_id, + &deposit->merchant_pub, + &deposit->amount); // FIXME: in the future, check if there's enough credits // left on the coin. For now: refuse // FIXME: return more information here @@ -136,7 +142,13 @@ TALER_MINT_db_execute_deposit (struct MHD_Connection *connection, } // FIXME: check commit return value! TALER_MINT_DB_commit (db_conn); - return TALER_MINT_reply_deposit_success (connection, deposit); + return TALER_MINT_reply_deposit_success (connection, + &deposit->coin.coin_pub, + &deposit->h_wire, + &deposit->h_contract, + deposit->transaction_id, + &deposit->merchant_pub, + &deposit->amount); } |