exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 0847e16ea5d338c4281963d2efa0bd94c37bd188
parent 744274480959110374ba2036d5b1a691a06df468
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 12 Dec 2020 22:42:33 +0100

fix misc bugs

Diffstat:
Msrc/lib/exchange_api_management_get_keys.c | 28++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)

diff --git a/src/lib/exchange_api_management_get_keys.c b/src/lib/exchange_api_management_get_keys.c @@ -163,20 +163,18 @@ handle_ok (struct TALER_EXCHANGE_ManagementGetKeysHandle *gh, = &fk.denom_keys[i]; const char *section_name; struct GNUNET_JSON_Specification spec[] = { - GNUNET_JSON_spec_string ("section_name", - &section_name), - GNUNET_JSON_spec_fixed_auto ("denom_secmod_sig", - &denom_key->denom_secmod_sig), - TALER_JSON_spec_absolute_time ("stamp_expire_deposit", - &denom_key->expire_deposit), - TALER_JSON_spec_absolute_time ("stamp_expire_withdraw", - &denom_key->withdraw_valid_until), + TALER_JSON_spec_amount ("value", + &denom_key->value), TALER_JSON_spec_absolute_time ("stamp_start", &denom_key->valid_from), + TALER_JSON_spec_absolute_time ("stamp_expire_withdraw", + &denom_key->withdraw_valid_until), + TALER_JSON_spec_absolute_time ("stamp_expire_deposit", + &denom_key->expire_deposit), TALER_JSON_spec_absolute_time ("stamp_expire_legal", &denom_key->expire_legal), - TALER_JSON_spec_amount ("value", - &denom_key->value), + GNUNET_JSON_spec_rsa_public_key ("denom_pub", + &denom_key->key.rsa_public_key), TALER_JSON_spec_amount ("fee_withdraw", &denom_key->fee_withdraw), TALER_JSON_spec_amount ("fee_deposit", @@ -185,8 +183,10 @@ handle_ok (struct TALER_EXCHANGE_ManagementGetKeysHandle *gh, &denom_key->fee_refresh), TALER_JSON_spec_amount ("fee_refund", &denom_key->fee_refund), - GNUNET_JSON_spec_rsa_public_key ("denom_pub", - &denom_key->key.rsa_public_key), + GNUNET_JSON_spec_fixed_auto ("denom_secmod_sig", + &denom_key->denom_secmod_sig), + GNUNET_JSON_spec_string ("section_name", + &section_name), GNUNET_JSON_spec_end () }; @@ -196,6 +196,9 @@ handle_ok (struct TALER_EXCHANGE_ManagementGetKeysHandle *gh, NULL, NULL)) { GNUNET_break_op (0); + json_dumpf (j, + stderr, + JSON_INDENT (2)); ok = false; break; } @@ -221,6 +224,7 @@ handle_ok (struct TALER_EXCHANGE_ManagementGetKeysHandle *gh, break; } } + GNUNET_JSON_parse_free (spec); } if (ok) {