diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-21 14:01:26 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-21 18:15:46 +0200 |
| commit | 510ce3bec7915a790fbf75ace5521e437d9d416a (patch) | |
| tree | 7b9286875652b677a110287d11d024f85879cc7a /libcmix-network/server.hpp | |
| parent | 640e0ad7a762d0473581c2114c2c945961bea80f (diff) | |
| download | cmix-510ce3bec7915a790fbf75ace5521e437d9d416a.tar.gz cmix-510ce3bec7915a790fbf75ace5521e437d9d416a.tar.bz2 cmix-510ce3bec7915a790fbf75ace5521e437d9d416a.zip | |
Adds SSL connections between nodes.
Diffstat (limited to 'libcmix-network/server.hpp')
| -rw-r--r-- | libcmix-network/server.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<boost::asio::ssl::context> ctx, SSLAcceptHandler accept_handler); + void close(); + }; |
