diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-11 12:39:05 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-11 12:39:05 +0200 |
| commit | 0fb433690c0ca5f9561fe9e2e973e2cd61b873ba (patch) | |
| tree | 9422a034b09d1e0b46144f35a1f9bcf7860156d6 /node/main.cpp | |
| parent | d8e48c32f8435076382543edfafbf81c223f9e87 (diff) | |
| download | cmix-0fb433690c0ca5f9561fe9e2e973e2cd61b873ba.tar.gz cmix-0fb433690c0ca5f9561fe9e2e973e2cd61b873ba.tar.bz2 cmix-0fb433690c0ca5f9561fe9e2e973e2cd61b873ba.zip | |
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.
Diffstat (limited to 'node/main.cpp')
| -rw-r--r-- | node/main.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/node/main.cpp b/node/main.cpp index 7425f00..527e3c5 100644 --- a/node/main.cpp +++ b/node/main.cpp @@ -10,10 +10,6 @@ int main(int argc, char* argv[]) { namespace po = boost::program_options; - init_logging(boost::log::trivial::severity_level::trace, "node"); - - BOOST_LOG_TRIVIAL(info) << "Started node"; - po::options_description desc("Allowed options"); desc.add_options() ("help,h", "produce help message.") @@ -41,6 +37,11 @@ int main(int argc, char* argv[]) { std::string if6 = vm["interface6"].as<std::string>(); uint16_t port = vm["port"].as<uint16_t>(); + init_logging(boost::log::trivial::severity_level::trace, "node_" + std::to_string(port)); + + BOOST_LOG_TRIVIAL(info) << "Started node"; + + ListenSettings lsettings{en4, if4, en6, if6, port}; bool is_first = bool(vm.count("first")); |
