Aktualizr
C++ SOTA Client
bootstrap.h
1 #ifndef AKTUALIZR_BOOTSTRAP_H
2 #define AKTUALIZR_BOOTSTRAP_H
3 
4 #include <boost/filesystem.hpp>
5 #include <string>
6 
7 class Bootstrap {
8  public:
9  Bootstrap(const boost::filesystem::path& provision_path, const std::string& provision_password);
10 
11  static std::string readServerUrl(const boost::filesystem::path& provision_path);
12  static std::string readServerCa(const boost::filesystem::path& provision_path);
13 
14  std::string getCa() const { return ca; }
15  std::string getCert() const { return cert; }
16  std::string getPkey() const { return pkey; }
17 
18  private:
19  std::string ca;
20  std::string cert;
21  std::string pkey;
22 };
23 
24 #endif // AKTUALIZR_BOOTSTRAP_H