Add support for global root CA chain

This commit is contained in:
feedc0de committed 2023-08-04 16:26:22 +02:00
1 parent 4d38eb6548
commit 05efeec4a4
2 files changed
+13 -3

No files matched your search

+3 -1
View File
@@ -38,7 +38,8 @@ public:
const std::string &message() const { return m_message; }
const std::optional<esp_app_desc_t> &appDesc() const { return m_appDesc; }
OtaCloudUpdateStatus status() const;
std::expected<void, std::string> trigger(std::string_view url, std::string_view cert_pem, std::string_view client_key, std::string_view client_cert);
std::expected<void, std::string> trigger(std::string_view url, std::string_view cert_pem, bool use_global_ca,
std::string_view client_key, std::string_view client_cert);
std::expected<void, std::string> abort();
void update();
@@ -64,6 +65,7 @@ private:
std::string m_url;
std::string_view m_cert_pem;
bool m_use_global_ca;
std::string_view m_client_key;
std::string_view m_client_cert;
};