anastasis

Credential backup and recovery protocol and service
Log | Files | Refs | Submodules | README | LICENSE

commit 7d93e843f3b1cc41bb5d336d6ab785ae8360a85f
parent 50ffc2d7969088ac8c58c82922b0f259b2dab3cc
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 27 Dec 2021 20:32:11 +0100

fix #7044

Diffstat:
Msrc/lib/anastasis_backup.c | 1+
Msrc/reducer/anastasis_api_backup_redux.c | 5++++-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/anastasis_backup.c b/src/lib/anastasis_backup.c @@ -787,6 +787,7 @@ ANASTASIS_secret_share (struct GNUNET_CURL_Context *ctx, } esc_methods = json_array (); + GNUNET_assert (NULL != esc_methods); for (unsigned int k = 0; k < policies_len; k++) { const struct ANASTASIS_Policy *policy = policies[k]; diff --git a/src/reducer/anastasis_api_backup_redux.c b/src/reducer/anastasis_api_backup_redux.c @@ -3149,8 +3149,11 @@ secret_share_result_cb (void *cls, details = GNUNET_JSON_PACK ( GNUNET_JSON_pack_uint64 ("http_status", sr->details.provider_failure.http_status), - GNUNET_JSON_pack_uint64 ("upload_status", + GNUNET_JSON_pack_uint64 ("code", sr->details.provider_failure.ec), + GNUNET_JSON_pack_string ("hint", + TALER_ErrorCode_get_hint ( + sr->details.provider_failure.ec)), GNUNET_JSON_pack_string ("provider_url", sr->details.provider_failure.provider_url)); uc->cb (uc->cb_cls,