From 677c7e87a5da584e68194c9cca19a91191c3140c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 19 Aug 2021 14:43:39 +0200 Subject: -implement 'poll' transition in state machine --- src/lib/anastasis_recovery.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lib') 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)); @@ -1118,6 +1121,9 @@ parse_cs_array (struct ANASTASIS_Recovery *r, &c->provider_salt), 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)), -- cgit v1.2.3