diff options
Diffstat (limited to 'src/bank-lib/test_bank_interpreter.c')
-rw-r--r-- | src/bank-lib/test_bank_interpreter.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bank-lib/test_bank_interpreter.c b/src/bank-lib/test_bank_interpreter.c index f088cfc40..346e32085 100644 --- a/src/bank-lib/test_bank_interpreter.c +++ b/src/bank-lib/test_bank_interpreter.c @@ -188,6 +188,7 @@ interpreter_run (void *cls) struct TALER_WireTransferIdentifierRawP wtid; struct TALER_Amount amount; const struct GNUNET_SCHEDULER_TaskContext *tc; + json_t *auth; is->task = NULL; tc = GNUNET_SCHEDULER_get_task_context (); @@ -219,8 +220,14 @@ interpreter_run (void *cls) GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, &cmd->details.admin_add_incoming.wtid, sizeof (cmd->details.admin_add_incoming.wtid)); + auth = json_pack ("{s:s, s:{s:s, s:s}}", + "type", "basic", + "data", + "username", "user", + "password", "pass"); cmd->details.admin_add_incoming.aih = TALER_BANK_admin_add_incoming (is->ctx, + auth, "http://localhost:8081", cmd->details.admin_add_incoming.exchange_base_url, &cmd->details.admin_add_incoming.wtid, @@ -229,6 +236,7 @@ interpreter_run (void *cls) cmd->details.admin_add_incoming.credit_account_no, &add_incoming_cb, is); + json_decref (auth); if (NULL == cmd->details.admin_add_incoming.aih) { GNUNET_break (0); |