diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/anastasis_recovery.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/anastasis_recovery.c b/src/lib/anastasis_recovery.c index 4e23db0..623e882 100644 --- a/src/lib/anastasis_recovery.c +++ b/src/lib/anastasis_recovery.c @@ -348,6 +348,7 @@ keyshare_lookup_cb (void *cls, = dd->details.server_failure.http_status }; + c->ci.async = true; c->af (c->af_cls, &csr); return; @@ -1043,7 +1044,9 @@ ANASTASIS_recovery_serialize (const struct ANASTASIS_Recovery *r) GNUNET_JSON_pack_string ("instructions", c->instructions), GNUNET_JSON_pack_bool ("solved", - c->ci.solved)); + c->ci.solved), + GNUNET_JSON_pack_bool ("async", + c->ci.async)); GNUNET_assert (0 == json_array_append_new (cs_arr, cs)); @@ -1119,6 +1122,9 @@ parse_cs_array (struct ANASTASIS_Recovery *r, GNUNET_JSON_spec_string ("type", &escrow_type), GNUNET_JSON_spec_mark_optional ( + GNUNET_JSON_spec_bool ("async", + &c->ci.async)), + GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_fixed_auto ("key_share", &c->key_share)), GNUNET_JSON_spec_end () |