diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2017-02-11 14:48:52 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2017-02-11 17:54:40 +0100 |
| commit | 623dffe2c054d1639dbf9c8f21ddfb088c7950fb (patch) | |
| tree | f8159c5b3cf9872f9b271d03ad5a4b65ecec19b8 /libcmix-network/accept.cpp | |
| parent | b229dc91d8825689c5e66264b462ce01398e621e (diff) | |
| download | cmix-623dffe2c054d1639dbf9c8f21ddfb088c7950fb.tar.gz cmix-623dffe2c054d1639dbf9c8f21ddfb088c7950fb.tar.bz2 cmix-623dffe2c054d1639dbf9c8f21ddfb088c7950fb.zip | |
Working Ed25519 Implementation of libcmix.
Diffstat (limited to 'libcmix-network/accept.cpp')
| -rw-r--r-- | libcmix-network/accept.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcmix-network/accept.cpp b/libcmix-network/accept.cpp index 1ec26fe..9806a67 100644 --- a/libcmix-network/accept.cpp +++ b/libcmix-network/accept.cpp @@ -36,12 +36,12 @@ void accept_connection(tcp::acceptor& acceptor, std::shared_ptr<ssl::context> ct { if(!bool(ec)) { - socket->async_handshake(boost::asio::ssl::stream_base::server, [&acceptor, ctx, socket, f](boost::system::error_code const& ec) { - if(!bool(ec)) { + socket->async_handshake(boost::asio::ssl::stream_base::server, [&acceptor, ctx, socket, f](boost::system::error_code const& ec2) { + if(!bool(ec2)) { f(std::unique_ptr<ssl::stream<tcp::socket>>(socket), ctx); } else { std::stringstream ss; - ss << ec.message(); + ss << ec2.message(); delete socket; throw std::runtime_error(ss.str()); } |
