aboutsummaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_management_wire_enable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exchange_api_management_wire_enable.c')
-rw-r--r--src/lib/exchange_api_management_wire_enable.c28
1 files changed, 11 insertions, 17 deletions
diff --git a/src/lib/exchange_api_management_wire_enable.c b/src/lib/exchange_api_management_wire_enable.c
index a45762963..43eb2ce97 100644
--- a/src/lib/exchange_api_management_wire_enable.c
+++ b/src/lib/exchange_api_management_wire_enable.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
@@ -151,23 +151,17 @@ TALER_EXCHANGE_management_enable_wire (
151 GNUNET_free (wh); 151 GNUNET_free (wh);
152 return NULL; 152 return NULL;
153 } 153 }
154 body = json_pack ("{s:s, s:o, s:o, s:o}", 154 body = GNUNET_JSON_PACK (
155 "payto_uri", 155 GNUNET_JSON_pack_string ("payto_uri",
156 payto_uri, 156 payto_uri),
157 "master_sig_add", 157 GNUNET_JSON_pack_data_auto ("master_sig_add",
158 GNUNET_JSON_from_data_auto (master_sig1), 158 master_sig1),
159 "master_sig_wire", 159 GNUNET_JSON_pack_data_auto ("master_sig_wire",
160 GNUNET_JSON_from_data_auto (master_sig2), 160 master_sig2),
161 "validity_start", 161 GNUNET_JSON_pack_time_abs ("validity_start",
162 GNUNET_JSON_from_time_abs (validity_start)); 162 validity_start));
163 if (NULL == body)
164 {
165 GNUNET_break (0);
166 GNUNET_free (wh->url);
167 GNUNET_free (wh);
168 return NULL;
169 }
170 eh = curl_easy_init (); 163 eh = curl_easy_init ();
164 GNUNET_assert (NULL != eh);
171 if (GNUNET_OK != 165 if (GNUNET_OK !=
172 TALER_curl_easy_post (&wh->post_ctx, 166 TALER_curl_easy_post (&wh->post_ctx,
173 eh, 167 eh,