aboutsummaryrefslogtreecommitdiff
path: root/mod/build-config.hxx
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 /mod/build-config.hxx
parent94b04d166c1041028571222b9931121b0f7dfded (diff)
Add support for bbot agent authentication
Diffstat (limited to 'mod/build-config.hxx')
-rw-r--r--mod/build-config.hxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/mod/build-config.hxx b/mod/build-config.hxx
index 6058774..b49819d 100644
--- a/mod/build-config.hxx
+++ b/mod/build-config.hxx
@@ -5,6 +5,8 @@
#ifndef MOD_BUILD_CONFIG_HXX
#define MOD_BUILD_CONFIG_HXX
+#include <map>
+
#include <libbbot/build-config.hxx>
#include <libbrep/types.hxx>
@@ -12,6 +14,8 @@
#include <libbrep/build.hxx>
+#include <mod/options.hxx>
+
namespace brep
{
// Return pointer to the shared build configurations instance, creating one
@@ -21,6 +25,17 @@ namespace brep
shared_ptr<const bbot::build_configs>
shared_build_config (const path&);
+ // Map of build bot agent public keys fingerprints to the key file paths.
+ //
+ using bot_agent_keys = std::map<string, path>;
+
+ // Return pointer to the shared build bot agent public keys map, creating
+ // one on the first call. Throw system_error on the underlying openssl or OS
+ // error. Not thread-safe.
+ //
+ shared_ptr<const bot_agent_keys>
+ shared_bot_agent_keys (const options::openssl_options&, const dir_path&);
+
// Return the package configuration build log url. By default the url is to
// the operations combined log.
//