From 2a3c27aadee91cd7b179e762ef0fe99128345bd1 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 15 May 2020 16:28:32 +0200 Subject: Reload certificates daily --- https.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'https.h') 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 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; }; -- cgit v1.2.3