diff options
Diffstat (limited to 'src/lib/exchange_api_management_auditor_enable.c')
-rw-r--r-- | src/lib/exchange_api_management_auditor_enable.c | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/src/lib/exchange_api_management_auditor_enable.c b/src/lib/exchange_api_management_auditor_enable.c index 8bad2026c..1f53cb120 100644 --- a/src/lib/exchange_api_management_auditor_enable.c +++ b/src/lib/exchange_api_management_auditor_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 |
@@ -150,25 +150,19 @@ TALER_EXCHANGE_management_enable_auditor ( | |||
150 | GNUNET_free (ah); | 150 | GNUNET_free (ah); |
151 | return NULL; | 151 | return NULL; |
152 | } | 152 | } |
153 | body = json_pack ("{s:s, s:s, s:o, s:o, s:o}", | 153 | body = GNUNET_JSON_PACK ( |
154 | "auditor_url", | 154 | GNUNET_JSON_pack_string ("auditor_url", |
155 | auditor_url, | 155 | auditor_url), |
156 | "auditor_name", | 156 | GNUNET_JSON_pack_string ("auditor_name", |
157 | auditor_name, | 157 | auditor_name), |
158 | "auditor_pub", | 158 | GNUNET_JSON_pack_data_auto ("auditor_pub", |
159 | GNUNET_JSON_from_data_auto (auditor_pub), | 159 | auditor_pub), |
160 | "master_sig", | 160 | GNUNET_JSON_pack_data_auto ("master_sig", |
161 | GNUNET_JSON_from_data_auto (master_sig), | 161 | master_sig), |
162 | "validity_start", | 162 | GNUNET_JSON_pack_time_abs ("validity_start", |
163 | GNUNET_JSON_from_time_abs (validity_start)); | 163 | validity_start)); |
164 | if (NULL == body) | ||
165 | { | ||
166 | GNUNET_break (0); | ||
167 | GNUNET_free (ah->url); | ||
168 | GNUNET_free (ah); | ||
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 (&ah->post_ctx, | 167 | TALER_curl_easy_post (&ah->post_ctx, |
174 | eh, | 168 | eh, |