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 --- mod/build-config.hxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'mod/build-config.hxx') 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 + #include #include @@ -12,6 +14,8 @@ #include +#include + namespace brep { // Return pointer to the shared build configurations instance, creating one @@ -21,6 +25,17 @@ namespace brep shared_ptr shared_build_config (const path&); + // Map of build bot agent public keys fingerprints to the key file paths. + // + using bot_agent_keys = std::map; + + // 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 + 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. // -- cgit v1.1