aboutsummaryrefslogtreecommitdiff
path: root/libcmix-network/client.hpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-10-27 09:25:53 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-10-27 09:25:53 +0200
commit25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c (patch)
tree079ea63fcc874506072a91b13d2612b510cf158e /libcmix-network/client.hpp
parent9eaf47d5dfa56ca79ae903aabfc2cf52bdfb981e (diff)
downloadcmix-25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c.tar.gz
cmix-25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c.tar.bz2
cmix-25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c.zip
Adds libgcrypt implementation for elgamal in multiplicative group.
Also adapts the API to both handle sodium and gcrypt libraries.
Diffstat (limited to 'libcmix-network/client.hpp')
-rw-r--r--libcmix-network/client.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcmix-network/client.hpp b/libcmix-network/client.hpp
index 2501908..df8c0c4 100644
--- a/libcmix-network/client.hpp
+++ b/libcmix-network/client.hpp
@@ -174,6 +174,7 @@ public:
* \param message_handler The function to call when a message has been received.
*/
void async_receive(MessageHandler message_handler) {
+ BOOST_LOG_TRIVIAL(trace) << socket.get();
using namespace boost::asio::placeholders;
boost::asio::async_read(
@@ -268,7 +269,7 @@ struct SSLClient : private BaseClient<boost::asio::ssl::stream<boost::asio::ip::
* \brief close Closes the underlying socket.
*/
void close() {
- socket->lowest_layer().close();
+ socket->lowest_layer().cancel();
}
using BaseClient::on_done;