Skip to content

Commit 0f2d215

Browse files
committed
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
1 parent 13b17c5 commit 0f2d215

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

daemon/I2PControl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace client
3535
I2PControlService::I2PControlService (const std::string& address, int port):
3636
m_IsRunning (false), m_Thread (nullptr),
3737
m_Acceptor (m_Service, boost::asio::ip::tcp::endpoint(boost::asio::ip::address::from_string(address), port)),
38-
m_SSLContext (m_Service, boost::asio::ssl::context::sslv23),
38+
m_SSLContext (boost::asio::ssl::context::sslv23),
3939
m_ShutdownTimer (m_Service)
4040
{
4141
i2p::config::GetOption("i2pcontrol.password", m_Password);

libi2pd/Reseed.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ namespace data
522522
boost::asio::io_service service;
523523
boost::system::error_code ecode;
524524

525-
boost::asio::ssl::context ctx(service, boost::asio::ssl::context::sslv23);
525+
boost::asio::ssl::context ctx(boost::asio::ssl::context::sslv23);
526526
ctx.set_verify_mode(boost::asio::ssl::context::verify_none);
527527
boost::asio::ssl::stream<boost::asio::ip::tcp::socket> s(service, ctx);
528528

0 commit comments

Comments
 (0)