Browse Source

Merge pull request #1031 from AMDmi3/boost-asio-fix

Don't use deprecated boost::asio::ssl::context ctor
pull/1034/head
orignal 7 years ago committed by GitHub
parent
commit
6dba0c6e0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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