aboutsummaryrefslogtreecommitdiff
path: root/client/cmixclient.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/cmixclient.hpp')
-rw-r--r--client/cmixclient.hpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/client/cmixclient.hpp b/client/cmixclient.hpp
index d87c4b3..db5e690 100644
--- a/client/cmixclient.hpp
+++ b/client/cmixclient.hpp
@@ -24,6 +24,14 @@ struct NodeDetails {
};
/*!
+ * \brief The NetworkDetails struct
+ */
+struct NetworkDetails {
+ std::vector<NodeDetails> node_details; ///< Vector with all the node hosts and ports in network order.
+ std::string certdir; ///< The directory with trusted certificates.
+};
+
+/*!
* \brief The CMixClient class
*/
class CMixClient {
@@ -33,9 +41,10 @@ class CMixClient {
};
boost::asio::io_service io_service;
+ std::shared_ptr<boost::asio::ssl::context> ctx;
- std::vector<NodeDetails> network_details;
- std::vector<SenderReceiver> network_connections;
+ NetworkDetails network_details;
+ std::vector<SSLSenderReceiver> network_connections;
std::vector<NodeData> data;
Api api;
@@ -54,7 +63,7 @@ public:
* \brief CMixClient
* \param details A vector of the connectiondetails for the cmix network
*/
- CMixClient(std::vector<NodeDetails> details);
+ CMixClient(NetworkDetails details);
~CMixClient();
/*!