From 73037b86ac7aabf4c9cca6fc7afd3e8bff70d08e Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 6 Nov 2015 09:01:02 -0500 Subject: [PATCH] fixed build for gcc 4.6 and boost 1.46 --- Reseed.cpp | 2 +- Tunnel.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Reseed.cpp b/Reseed.cpp index 8d4baf8a..2c97cbd3 100644 --- a/Reseed.cpp +++ b/Reseed.cpp @@ -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 s(service, ctx); s.lowest_layer().connect (*it, ecode); diff --git a/Tunnel.cpp b/Tunnel.cpp index 6443180f..375fe6b0 100644 --- a/Tunnel.cpp +++ b/Tunnel.cpp @@ -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)); hop = hop->prev;