Browse Source

fixed build for gcc 4.6 and boost 1.46

pull/295/head
orignal 9 years ago
parent
commit
73037b86ac
  1. 2
      Reseed.cpp
  2. 3
      Tunnel.cpp

2
Reseed.cpp

@ -372,7 +372,7 @@ namespace data @@ -372,7 +372,7 @@ namespace data
boost::asio::ip::tcp::resolver::query (u.host_, std::to_string (u.port_)), ecode);
if (!ecode)
{
boost::asio::ssl::context ctx(service, boost::asio::ssl::context::tlsv12);
boost::asio::ssl::context ctx(service, boost::asio::ssl::context::sslv23);
ctx.set_verify_mode(boost::asio::ssl::context::verify_none);
boost::asio::ssl::stream<boost::asio::ip::tcp::socket> s(service, ctx);
s.lowest_layer().connect (*it, ecode);

3
Tunnel.cpp

@ -138,7 +138,8 @@ namespace tunnel @@ -138,7 +138,8 @@ namespace tunnel
hop = m_Config->GetLastHop ();
while (hop)
{
auto tunnelHop = new TunnelHop{ .ident = hop->ident };
auto tunnelHop = new TunnelHop;
tunnelHop->ident = hop->ident;
tunnelHop->decryption.SetKeys (hop->layerKey, hop->ivKey);
m_Hops.push_back (std::unique_ptr<TunnelHop>(tunnelHop));
hop = hop->prev;

Loading…
Cancel
Save