summaryrefslogtreecommitdiffhomepage
path: root/https.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-15 16:28:32 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-15 16:28:32 +0200
commit2a3c27aadee91cd7b179e762ef0fe99128345bd1 (patch)
treeca6c49de6ec9b19e968cd33f38368da635f26afe /https.h
parent27a7f04277cacee6ca4517653f63d5cad9c61ee3 (diff)
Reload certificates daily
Diffstat (limited to 'https.h')
-rw-r--r--https.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/https.h b/https.h
index 738e122..e87fc6d 100644
--- a/https.h
+++ b/https.h
@@ -38,11 +38,16 @@ public:
private:
ctx_type m_ctx;
-
+ boost::asio::steady_timer m_certificates_timer;
+ std::function<void(const boost::system::error_code&)> m_certificates_timer_callback;
+
public:
Server(Config& config, boost::asio::io_context& ioc, const Socket& socket, plugins_container_type& plugins, Statistics& statistics);
virtual ~Server();
+ void load_certificates();
+ void reload_certificates();
+
int start() override;
};