From 0fb433690c0ca5f9561fe9e2e973e2cd61b873ba Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Tue, 11 Oct 2016 12:39:05 +0200 Subject: Commit introducing Client keyexchange, triggering bugs. Clients now send their public key to each node and the node calculates the shared secret. The node does not yet respond with it's public key. To keep this commit smaller. Nodes now disconnect from each other in a better way. Getting the relevant crypto api is now done with a generic function. What crypto algorithm and implemenation is beign used can be selected in the cmake cache (use cmake-gui or ccmake) Clients now connect correctly to multiple nodes. --- libcmix-protobuf/cmix.proto | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libcmix-protobuf/cmix.proto') diff --git a/libcmix-protobuf/cmix.proto b/libcmix-protobuf/cmix.proto index 8be9b1f..8bbc303 100644 --- a/libcmix-protobuf/cmix.proto +++ b/libcmix-protobuf/cmix.proto @@ -16,11 +16,16 @@ message Bye { } +message KeyExchange { + required bytes public_key = 1; +} + message CMixMessage { oneof contents { Initialization initialization = 1; ImANode imanode = 2; ImAClient imaclient = 3; Bye bye = 4; + KeyExchange keyexchange= 5; } } -- cgit v1.2.3-70-g09d2