diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-07-31 20:27:16 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-07-31 20:27:16 +0200 |
commit | 1d54400a025ff62ad15b77ab117ea5188884b1a1 (patch) | |
tree | 195b21644b44a24b84bee159ca0011a1d372a109 /src/lib/exchange_api_management_wire_disable.c | |
parent | 723a3b742e9b284400c5164d146dc953383b4384 (diff) | |
download | exchange-1d54400a025ff62ad15b77ab117ea5188884b1a1.tar.xz |
-more eliminations of json_pack
Diffstat (limited to 'src/lib/exchange_api_management_wire_disable.c')
-rw-r--r-- | src/lib/exchange_api_management_wire_disable.c | 24 |
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 @@ /* This file is part of TALER - Copyright (C) 2015-2020 Taler Systems SA + Copyright (C) 2015-2021 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -154,21 +154,15 @@ TALER_EXCHANGE_management_disable_wire ( GNUNET_free (wh); return NULL; } - body = json_pack ("{s:s, s:o, s:o}", - "payto_uri", - payto_uri, - "master_sig_del", - GNUNET_JSON_from_data_auto (master_sig), - "validity_end", - GNUNET_JSON_from_time_abs (validity_end)); - if (NULL == body) - { - GNUNET_break (0); - GNUNET_free (wh->url); - GNUNET_free (wh); - return NULL; - } + body = GNUNET_JSON_PACK ( + GNUNET_JSON_pack_string ("payto_uri", + payto_uri), + GNUNET_JSON_pack_data_auto ("master_sig_del", + master_sig), + GNUNET_JSON_pack_time_abs ("validity_end", + validity_end)); eh = curl_easy_init (); + GNUNET_assert (NULL != eh); if (GNUNET_OK != TALER_curl_easy_post (&wh->post_ctx, eh, |