diff options
Diffstat (limited to 'src/lib/exchange_api_management_revoke_signing_key.c')
-rw-r--r-- | src/lib/exchange_api_management_revoke_signing_key.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/lib/exchange_api_management_revoke_signing_key.c b/src/lib/exchange_api_management_revoke_signing_key.c index f403cee28..f43a46c40 100644 --- a/src/lib/exchange_api_management_revoke_signing_key.c +++ b/src/lib/exchange_api_management_revoke_signing_key.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 |
@@ -160,17 +160,11 @@ TALER_EXCHANGE_management_revoke_signing_key ( | |||
160 | GNUNET_free (rh); | 160 | GNUNET_free (rh); |
161 | return NULL; | 161 | return NULL; |
162 | } | 162 | } |
163 | body = json_pack ("{s:o}", | 163 | body = GNUNET_JSON_PACK ( |
164 | "master_sig", | 164 | GNUNET_JSON_pack_data_auto ("master_sig", |
165 | GNUNET_JSON_from_data_auto (master_sig)); | 165 | master_sig)); |
166 | if (NULL == body) | ||
167 | { | ||
168 | GNUNET_break (0); | ||
169 | GNUNET_free (rh->url); | ||
170 | GNUNET_free (rh); | ||
171 | return NULL; | ||
172 | } | ||
173 | eh = curl_easy_init (); | 166 | eh = curl_easy_init (); |
167 | GNUNET_assert (NULL != eh); | ||
174 | if (GNUNET_OK != | 168 | if (GNUNET_OK != |
175 | TALER_curl_easy_post (&rh->post_ctx, | 169 | TALER_curl_easy_post (&rh->post_ctx, |
176 | eh, | 170 | eh, |