From 96307738008591afe220cc9feab309e42c20411b Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 19 Apr 2017 18:05:31 +0300 Subject: Adapt to challenge and fingerprint manifest values being optional now --- bbot/agent.cxx | 4 ++-- doc/manual.cli | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bbot/agent.cxx b/bbot/agent.cxx index 2df96e6..b926908 100644 --- a/bbot/agent.cxx +++ b/bbot/agent.cxx @@ -839,7 +839,7 @@ try // // @@ TODO: key fingerprint. // - task_request_manifest tq {hname, "", machine_header_manifests {}}; + task_request_manifest tq {hname, nullopt, machine_header_manifests {}}; for (const bootstrapped_machine_manifest& m: ms) tq.machines.emplace_back (m.machine.id, @@ -977,7 +977,7 @@ try // // @@ TODO challange // - result_request_manifest rq {tr.session, "", move (r)}; + result_request_manifest rq {tr.session, nullopt, move (r)}; { const string& u (*tr.result_url); diff --git a/doc/manual.cli b/doc/manual.cli index b96ddd9..505585b 100644 --- a/doc/manual.cli +++ b/doc/manual.cli @@ -410,7 +410,9 @@ starts with the task request manifest followed by a list of machine manifests. \li|\n\c{fingerprint: }\n - The SHA256 fingerprint of the agent's public key.|| + The SHA256 fingerprint of the agent's public key. If not present, and + the controller is configured to require it, then it responds with the + \c{unauthorized} (401) HTTP status code.|| \h#arch-task-res-manifest|Task Response Manifest| @@ -475,6 +477,7 @@ result response and only a successful but empty POST result is returned. \li|\n\c{challenge: }\n The answer to the private key challenge as posed by the controller in the + task response. Must present only if the challenge value was present in the task response.|| -- cgit v1.1