aboutsummaryrefslogtreecommitdiff
path: root/libbrep
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-25 21:12:03 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-31 01:10:52 +0300
commitd6a34b68d4667d4b99c1e76d63604a7bc1c9c3dd (patch)
treeb3429ea208e804bdd4b7f80416510e509ff36181 /libbrep
parent94b04d166c1041028571222b9931121b0f7dfded (diff)
Add support for bbot agent authentication
Diffstat (limited to 'libbrep')
-rw-r--r--libbrep/build.cxx2
-rw-r--r--libbrep/build.hxx10
-rw-r--r--libbrep/build.xml2
-rw-r--r--libbrep/utility.hxx3
4 files changed, 15 insertions, 2 deletions
diff --git a/libbrep/build.cxx b/libbrep/build.cxx
index 2391165..0941c5f 100644
--- a/libbrep/build.cxx
+++ b/libbrep/build.cxx
@@ -60,6 +60,7 @@ namespace brep
build (string pnm, version pvr,
string cfg,
string tnm, version tvr,
+ optional<string> afp, optional<string> ach,
string mnm, string msm,
optional<butl::target_triplet> trg)
: id (package_id (move (pnm), pvr), move (cfg), tvr),
@@ -71,6 +72,7 @@ namespace brep
state (build_state::building),
timestamp (timestamp_type::clock::now ()),
force (force_state::unforced),
+ agent_fingerprint (move (afp)), agent_challenge (move (ach)),
machine (move (mnm)),
machine_summary (move (msm)),
target (move (trg))
diff --git a/libbrep/build.hxx b/libbrep/build.hxx
index afa96ed..6b58402 100644
--- a/libbrep/build.hxx
+++ b/libbrep/build.hxx
@@ -145,6 +145,8 @@ namespace brep
build (string package_name, version package_version,
string configuration,
string toolchain_name, version toolchain_version,
+ optional<string> agent_fingerprint,
+ optional<string> agent_challenge,
string machine, string machine_summary,
optional<butl::target_triplet> target);
@@ -164,10 +166,16 @@ namespace brep
force_state force;
- // Must present for the built state, may present for the building state.
+ // Must be present for the built state, may be present for the building
+ // state.
//
optional<result_status> status;
+ // May be present only for the building state.
+ //
+ optional<string> agent_fingerprint;
+ optional<string> agent_challenge;
+
// Present only for building and built states.
//
optional<string> machine;
diff --git a/libbrep/build.xml b/libbrep/build.xml
index 7466c97..cee65ac 100644
--- a/libbrep/build.xml
+++ b/libbrep/build.xml
@@ -20,6 +20,8 @@
<column name="timestamp" type="BIGINT" null="false"/>
<column name="force" type="TEXT" null="false"/>
<column name="status" type="TEXT" null="true"/>
+ <column name="agent_fingerprint" type="TEXT" null="true"/>
+ <column name="agent_challenge" type="TEXT" null="true"/>
<column name="machine" type="TEXT" null="true"/>
<column name="machine_summary" type="TEXT" null="true"/>
<column name="target" type="TEXT" null="true"/>
diff --git a/libbrep/utility.hxx b/libbrep/utility.hxx
index c81413c..1900bc4 100644
--- a/libbrep/utility.hxx
+++ b/libbrep/utility.hxx
@@ -11,7 +11,8 @@
#include <cassert> // assert()
#include <iterator> // make_move_iterator()
-#include <libbutl/utility.hxx> // reverse_iterate(), operator<<(ostream, exception)
+#include <libbutl/utility.hxx> // reverse_iterate(),
+ // operator<<(ostream, exception)
namespace brep
{