diff options
| author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-06-11 14:34:04 +0200 |
|---|---|---|
| committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-06-11 14:34:04 +0200 |
| commit | e52574e9b95d5be1ab12668195b53b5a82c85279 (patch) | |
| tree | 9d5146c9fdaf90b4e6bf24487bb532b4f28aa93a /src/exchange/taler-exchange-httpd_keystate.c | |
| parent | d7f38a845a41cae501ef8d251cadf4fababf64e0 (diff) | |
| parent | 7dc075ae283f76669065c7357d6c8e4d39ae811e (diff) | |
Merge branch 'master' of ssh://taler.net/var/git/exchange
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keystate.c')
| -rw-r--r-- | src/exchange/taler-exchange-httpd_keystate.c | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c index dc70fdba..5366f9aa 100644 --- a/src/exchange/taler-exchange-httpd_keystate.c +++ b/src/exchange/taler-exchange-httpd_keystate.c @@ -347,9 +347,10 @@ reload_keys_denom_iter (void *cls, } ctx->min_dk_expire = GNUNET_TIME_absolute_min (ctx->min_dk_expire, expire_deposit); - json_array_append_new (ctx->denom_keys_array, - denom_key_issue_to_json (&dki->denom_pub, - &dki->issue)); + GNUNET_assert (0 == + json_array_append_new (ctx->denom_keys_array, + denom_key_issue_to_json (&dki->denom_pub, + &dki->issue))); return GNUNET_OK; } @@ -436,8 +437,9 @@ reload_keys_sign_iter (void *cls, /* We use the most recent one, if it is valid now (not just in the near future) */ ctx->current_sign_key_issue = *ski; } - json_array_append_new (ctx->sign_keys_array, - sign_key_issue_to_json (&ski->issue)); + GNUNET_assert (0 == + json_array_append_new (ctx->sign_keys_array, + sign_key_issue_to_json (&ski->issue))); return GNUNET_OK; } @@ -465,12 +467,13 @@ auditor_to_json (const struct TALER_AuditorPublicKeyP *apub, ja = json_array (); for (i=0;i<dki_len;i++) - json_array_append_new (ja, - json_pack ("{s:o, s:o}", - "denom_pub_h", - GNUNET_JSON_from_data_auto (&dki[i]->denom_hash), - "auditor_sig", - GNUNET_JSON_from_data_auto (asigs[i]))); + GNUNET_assert (0 == + json_array_append_new (ja, + json_pack ("{s:o, s:o}", + "denom_pub_h", + GNUNET_JSON_from_data_auto (&dki[i]->denom_hash), + "auditor_sig", + GNUNET_JSON_from_data_auto (asigs[i])))); return json_pack ("{s:o, s:s, s:o}", "denomination_keys", ja, @@ -536,12 +539,13 @@ reload_auditor_iter (void *cls, } } /* add auditor information to our /keys response */ - json_array_append_new (ctx->auditors_array, - auditor_to_json (apub, - auditor_url, - keep, - kept_asigs, - kept_dkis)); + GNUNET_assert (0 == + json_array_append_new (ctx->auditors_array, + auditor_to_json (apub, + auditor_url, + keep, + kept_asigs, + kept_dkis))); return GNUNET_OK; } |
