[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-sync] branch master updated: disable use of claim tokens for sync
From: |
gnunet |
Subject: |
[taler-sync] branch master updated: disable use of claim tokens for sync |
Date: |
Wed, 19 Aug 2020 17:28:33 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository sync.
The following commit(s) were added to refs/heads/master by this push:
new fe16111 disable use of claim tokens for sync
fe16111 is described below
commit fe161111be5a51ba3fdd0a61392c222ed01e9b68
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Aug 19 17:28:31 2020 +0200
disable use of claim tokens for sync
---
src/sync/sync-httpd_backup_post.c | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/sync/sync-httpd_backup_post.c
b/src/sync/sync-httpd_backup_post.c
index 3c7fe57..c989bbc 100644
--- a/src/sync/sync-httpd_backup_post.c
+++ b/src/sync/sync-httpd_backup_post.c
@@ -266,6 +266,7 @@ make_payment_request (const char *order_id,
{
char tok[256];
+ /* This path should not be taken, as we disabled tokens */
GNUNET_assert (NULL !=
GNUNET_STRINGS_data_to_string (token,
sizeof (*token),
@@ -562,12 +563,18 @@ begin_payment (struct BackupContext *bc,
"amount", TALER_JSON_from_amount (&SH_annual_fee),
"summary", "annual fee for sync service",
"fulfillment_url", SH_fulfillment_url);
- bc->po = TALER_MERCHANT_orders_post (SH_ctx,
- SH_backend_url,
- order,
- GNUNET_TIME_UNIT_ZERO,
- &proposal_cb,
- bc);
+ bc->po = TALER_MERCHANT_orders_post2 (SH_ctx,
+ SH_backend_url,
+ order,
+ GNUNET_TIME_UNIT_ZERO,
+ NULL, /* no payment target */
+ 0,
+ NULL, /* no inventory products */
+ 0,
+ NULL, /* no uuids */
+ false, /* do NOT require claim token */
+ &proposal_cb,
+ bc);
SH_trigger_curl ();
json_decref (order);
return MHD_YES;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-sync] branch master updated: disable use of claim tokens for sync,
gnunet <=