aboutsummaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_management_auditor_disable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exchange_api_management_auditor_disable.c')
-rw-r--r--src/lib/exchange_api_management_auditor_disable.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/lib/exchange_api_management_auditor_disable.c b/src/lib/exchange_api_management_auditor_disable.c
index 1ae657742..fb68ad6d3 100644
--- a/src/lib/exchange_api_management_auditor_disable.c
+++ b/src/lib/exchange_api_management_auditor_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
@@ -166,19 +166,13 @@ TALER_EXCHANGE_management_disable_auditor (
166 GNUNET_free (ah); 166 GNUNET_free (ah);
167 return NULL; 167 return NULL;
168 } 168 }
169 body = json_pack ("{s:o, s:o}", 169 body = GNUNET_JSON_PACK (
170 "master_sig", 170 GNUNET_JSON_pack_data_auto ("master_sig",
171 GNUNET_JSON_from_data_auto (master_sig), 171 master_sig),
172 "validity_end", 172 GNUNET_JSON_pack_time_abs ("validity_end",
173 GNUNET_JSON_from_time_abs (validity_end)); 173 validity_end));
174 if (NULL == body)
175 {
176 GNUNET_break (0);
177 GNUNET_free (ah->url);
178 GNUNET_free (ah);
179 return NULL;
180 }
181 eh = curl_easy_init (); 174 eh = curl_easy_init ();
175 GNUNET_assert (NULL != eh);
182 if (GNUNET_OK != 176 if (GNUNET_OK !=
183 TALER_curl_easy_post (&ah->post_ctx, 177 TALER_curl_easy_post (&ah->post_ctx,
184 eh, 178 eh,