Browse Source

Don't use deprecated boost::asio::ssl::context ctor

This was removed in boost 1.66, in prior versions the service
argument was not used
pull/1031/head
Dmitry Marakasov 7 years ago
parent
commit
0f2d2156e6
  1. 2
      daemon/I2PControl.cpp
  2. 2
      libi2pd/Reseed.cpp

2
daemon/I2PControl.cpp

@ -35,7 +35,7 @@ namespace client @@ -35,7 +35,7 @@ namespace client
I2PControlService::I2PControlService (const std::string& address, int port):
m_IsRunning (false), m_Thread (nullptr),
m_Acceptor (m_Service, boost::asio::ip::tcp::endpoint(boost::asio::ip::address::from_string(address), port)),
m_SSLContext (m_Service, boost::asio::ssl::context::sslv23),
m_SSLContext (boost::asio::ssl::context::sslv23),
m_ShutdownTimer (m_Service)
{
i2p::config::GetOption("i2pcontrol.password", m_Password);

2
libi2pd/Reseed.cpp

@ -522,7 +522,7 @@ namespace data @@ -522,7 +522,7 @@ namespace data
boost::asio::io_service service;
boost::system::error_code ecode;
boost::asio::ssl::context ctx(service, boost::asio::ssl::context::sslv23);
boost::asio::ssl::context ctx(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);

Loading…
Cancel
Save