From 510ce3bec7915a790fbf75ace5521e437d9d416a Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Fri, 21 Oct 2016 14:01:26 +0200 Subject: Adds SSL connections between nodes. --- libcmix-network/server.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libcmix-network/server.hpp') diff --git a/libcmix-network/server.hpp b/libcmix-network/server.hpp index fad7c71..6976f04 100644 --- a/libcmix-network/server.hpp +++ b/libcmix-network/server.hpp @@ -19,6 +19,9 @@ struct ListenSettings { std::string ipv6_inaddr; ///< Listen on this ipv6 address uint16_t port; ///< Listen on this port. bool use_ssl; ///< Should we use ssl + std::string cert; ///< The cert to use in pem format. + std::string key; ///< The corresponding key in pem format. + std::string dhparam; ///< The diffie helman parameters. }; /*! @@ -50,4 +53,6 @@ public: */ Server(boost::asio::io_service& io_service, ListenSettings const& listen_settings, std::shared_ptr ctx, SSLAcceptHandler accept_handler); + void close(); + }; -- cgit v1.2.3-70-g09d2