diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-11-07 12:53:59 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-11-07 12:53:59 +0100 |
| commit | 46f22621759d388f7cef4bf0d2ac03667a5d611e (patch) | |
| tree | b26cd49fe2552680eb16d9008695c8f56e757ded /client/cmixclient.hpp | |
| parent | 7e21069bea9e8e6276591eee98f22cb07d67392d (diff) | |
| download | cmix-46f22621759d388f7cef4bf0d2ac03667a5d611e.tar.gz cmix-46f22621759d388f7cef4bf0d2ac03667a5d611e.tar.bz2 cmix-46f22621759d388f7cef4bf0d2ac03667a5d611e.zip | |
prepares the api for sending and mixing messages in the realtime phase.
Diffstat (limited to 'client/cmixclient.hpp')
| -rw-r--r-- | client/cmixclient.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/client/cmixclient.hpp b/client/cmixclient.hpp index ee99d38..59aeba6 100644 --- a/client/cmixclient.hpp +++ b/client/cmixclient.hpp @@ -1,6 +1,7 @@ #pragma once #include "senderreceiver.hpp" +#include "cmix.h" #include "api.h" #include "groupelement.h" #include "keypair.h" @@ -44,19 +45,17 @@ class CMixClient { struct NodeData { GroupElement secret_value; - SharedKey shared_value; + GroupElement shared_value; }; boost::asio::io_service io_service; - std::shared_ptr<boost::asio::ssl::context> ctx; + std::shared_ptr<boost::asio::ssl::context> ssl_ctx; + CMixContext cmix_ctx; NetworkDetails network_details; std::vector<SSLSenderReceiver> network_connections; std::vector<NodeData> data; - Api api; - KeyPair keypair; - void key_exchange(size_t node_id); void initialize_connections(); |
