summaryrefslogtreecommitdiff
path: root/src/lib/anastasis_recovery.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-19 13:52:16 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-19 13:52:16 +0200
commit4067891ed9f66eb5e47a709d3ea21c2ed36a1e86 (patch)
tree6af58030bf1d7b85999fe346ff5d1b1c64705fbc /src/lib/anastasis_recovery.c
parent81d0e570be0db784e98fdb7ad63f9b65c6745be3 (diff)
downloadanastasis-4067891ed9f66eb5e47a709d3ea21c2ed36a1e86.tar.gz
anastasis-4067891ed9f66eb5e47a709d3ea21c2ed36a1e86.tar.bz2
anastasis-4067891ed9f66eb5e47a709d3ea21c2ed36a1e86.zip
modify lib/ to pass 202 status back to reducer
Diffstat (limited to 'src/lib/anastasis_recovery.c')
-rw-r--r--src/lib/anastasis_recovery.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/anastasis_recovery.c b/src/lib/anastasis_recovery.c
index f65da8c..4e23db0 100644
--- a/src/lib/anastasis_recovery.c
+++ b/src/lib/anastasis_recovery.c
@@ -352,6 +352,25 @@ keyshare_lookup_cb (void *cls,
&csr);
return;
}
+ case ANASTASIS_KSD_EXTERNAL_CHALLENGE_INSTRUCTIONS:
+ {
+ struct ANASTASIS_ChallengeStartResponse csr = {
+ .cs = ANASTASIS_CHALLENGE_STATUS_EXTERNAL_INSTRUCTIONS,
+ .challenge = c,
+ .details.open_challenge.body
+ = dd->details.open_challenge.body,
+ .details.open_challenge.content_type
+ = dd->details.open_challenge.content_type,
+ .details.open_challenge.body_size
+ = dd->details.open_challenge.body_size,
+ .details.open_challenge.http_status
+ = dd->details.open_challenge.http_status
+ };
+
+ c->af (c->af_cls,
+ &csr);
+ return;
+ }
}
GNUNET_assert (NULL != dd);