Skip to content

Commit

Permalink
Don't use deprecated boost::asio::ssl::context ctor
Browse files Browse the repository at this point in the history
This was removed in boost 1.66, in prior versions the service
argument was not used
  • Loading branch information
AMDmi3 committed Dec 11, 2017
1 parent 13b17c5 commit 0f2d215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion daemon/I2PControl.cpp
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion libi2pd/Reseed.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 0f2d215

Please sign in to comment.