From 5050df2747d7b586dae4890efbe670d2cf584eae Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 19 Apr 2017 17:55:44 +0300 Subject: Make challenge and fingerprint manifest values optional --- bbot/manifest | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'bbot/manifest') 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 fingerprint; machine_header_manifests machines; task_request_manifest (std::string a, - std::string f, + butl::optional 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 challenge; result_manifest result; result_request_manifest (std::string s, - std::string c, + butl::optional c, result_manifest r) : session (std::move (s)), challenge (std::move (c)), -- cgit v1.1