aboutsummaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_management_wire_disable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exchange_api_management_wire_disable.c')
-rw-r--r--src/lib/exchange_api_management_wire_disable.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/src/lib/exchange_api_management_wire_disable.c b/src/lib/exchange_api_management_wire_disable.c
index 613358fdd..fbc6626ad 100644
--- a/src/lib/exchange_api_management_wire_disable.c
+++ b/src/lib/exchange_api_management_wire_disable.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of TALER 2 This file is part of TALER
3 Copyright (C) 2015-2020 Taler Systems SA 3 Copyright (C) 2015-2021 Taler Systems SA
4 4
5 TALER is free software; you can redistribute it and/or modify it under the 5 TALER is free software; you can redistribute it and/or modify it under the
6 terms of the GNU General Public License as published by the Free Software 6 terms of the GNU General Public License as published by the Free Software
@@ -154,21 +154,15 @@ TALER_EXCHANGE_management_disable_wire (
154 GNUNET_free (wh); 154 GNUNET_free (wh);
155 return NULL; 155 return NULL;
156 } 156 }
157 body = json_pack ("{s:s, s:o, s:o}", 157 body = GNUNET_JSON_PACK (
158 "payto_uri", 158 GNUNET_JSON_pack_string ("payto_uri",
159 payto_uri, 159 payto_uri),
160 "master_sig_del", 160 GNUNET_JSON_pack_data_auto ("master_sig_del",
161 GNUNET_JSON_from_data_auto (master_sig), 161 master_sig),
162 "validity_end", 162 GNUNET_JSON_pack_time_abs ("validity_end",
163 GNUNET_JSON_from_time_abs (validity_end)); 163 validity_end));
164 if (NULL == body)
165 {
166 GNUNET_break (0);
167 GNUNET_free (wh->url);
168 GNUNET_free (wh);
169 return NULL;
170 }
171 eh = curl_easy_init (); 164 eh = curl_easy_init ();
165 GNUNET_assert (NULL != eh);
172 if (GNUNET_OK != 166 if (GNUNET_OK !=
173 TALER_curl_easy_post (&wh->post_ctx, 167 TALER_curl_easy_post (&wh->post_ctx,
174 eh, 168 eh,