diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-19 13:52:16 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-19 13:52:16 +0200 |
commit | 4067891ed9f66eb5e47a709d3ea21c2ed36a1e86 (patch) | |
tree | 6af58030bf1d7b85999fe346ff5d1b1c64705fbc /src/lib/anastasis_recovery.c | |
parent | 81d0e570be0db784e98fdb7ad63f9b65c6745be3 (diff) | |
download | anastasis-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.c | 19 |
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); |