aboutsummaryrefslogtreecommitdiff
path: root/bbot/manifest
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-19 17:55:44 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-19 17:55:44 +0300
commit5050df2747d7b586dae4890efbe670d2cf584eae (patch)
treee5dc33c0f14a806e7defcad47caf05478613edcc /bbot/manifest
parentd81b21e46f325d0c12df3054fe08aa29bb1061f3 (diff)
Make challenge and fingerprint manifest values optional
Diffstat (limited to 'bbot/manifest')
-rw-r--r--bbot/manifest11
1 files changed, 7 insertions, 4 deletions
diff --git a/bbot/manifest b/bbot/manifest
index 7e14b7d..3022535 100644
--- a/bbot/manifest
+++ b/bbot/manifest
@@ -60,12 +60,12 @@ namespace bbot
//
// $ cat key.pub | openssl sha256
//
- std::string fingerprint;
+ butl::optional<std::string> fingerprint;
machine_header_manifests machines;
task_request_manifest (std::string a,
- std::string f,
+ butl::optional<std::string> f,
machine_header_manifests m)
: agent (std::move (a)),
fingerprint (std::move (f)),
@@ -260,12 +260,15 @@ namespace bbot
{
public:
std::string session; // The task response session.
- std::string challenge; // The answer to challenge in the task response.
+
+ // The answer to challenge in the task response.
+ //
+ butl::optional<std::string> challenge;
result_manifest result;
result_request_manifest (std::string s,
- std::string c,
+ butl::optional<std::string> c,
result_manifest r)
: session (std::move (s)),
challenge (std::move (c)),