From d6a34b68d4667d4b99c1e76d63604a7bc1c9c3dd Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 25 May 2017 21:12:03 +0300 Subject: Add support for bbot agent authentication --- libbrep/build.cxx | 2 ++ libbrep/build.hxx | 10 +++++++++- libbrep/build.xml | 2 ++ libbrep/utility.hxx | 3 ++- 4 files changed, 15 insertions(+), 2 deletions(-) (limited to 'libbrep') 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 afp, optional ach, string mnm, string msm, optional 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 agent_fingerprint, + optional agent_challenge, string machine, string machine_summary, optional 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 status; + // May be present only for the building state. + // + optional agent_fingerprint; + optional agent_challenge; + // Present only for building and built states. // optional 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 @@ + + 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 // assert() #include // make_move_iterator() -#include // reverse_iterate(), operator<<(ostream, exception) +#include // reverse_iterate(), + // operator<<(ostream, exception) namespace brep { -- cgit v1.1