File hodlcoin-boost1.patch of Package hodlcoin
--- src/bitcoin-cli.cpp 2016-07-04 00:51:12.000000000 +0200
+++ bitcoin-cli.cpp 2018-01-11 09:01:09.040927400 +0100
@@ -105,7 +105,7 @@
// Connect to localhost
bool fUseSSL = GetBoolArg("-rpcssl", false);
boost::asio::io_service io_service;
- boost::asio::ssl::context context(io_service, boost::asio::ssl::context::sslv23);
+ boost::asio::ssl::context context(boost::asio::ssl::context::sslv23);
context.set_options(boost::asio::ssl::context::no_sslv2 | boost::asio::ssl::context::no_sslv3);
boost::asio::ssl::stream<boost::asio::ip::tcp::socket> sslStream(io_service, context);
SSLIOStreamDevice<boost::asio::ip::tcp> d(sslStream, fUseSSL);
--- src/rpcprotocol.h 2016-07-04 00:51:12.000000000 +0200
+++ rpcprotocol.h 2019-10-27 16:17:00.756622338 +0100
@@ -111,7 +111,7 @@
bool connect(const std::string& server, const std::string& port)
{
using namespace boost::asio::ip;
- tcp::resolver resolver(stream.get_io_service());
+ tcp::resolver resolver((boost::asio::io_context&)stream.get_executor().context());
tcp::resolver::iterator endpoint_iterator;
#if BOOST_VERSION >= 104300
try {
--- src/rpcserver.cpp 2016-07-04 00:51:12.000000000 +0200
+++ rpcserver.cpp 2019-10-27 16:17:43.844621081 +0100
@@ -509,7 +509,7 @@
const bool fUseSSL)
{
// Accept connection
- boost::shared_ptr< AcceptedConnectionImpl<Protocol> > conn(new AcceptedConnectionImpl<Protocol>(acceptor->get_io_service(), context, fUseSSL));
+ boost::shared_ptr< AcceptedConnectionImpl<Protocol> > conn(new AcceptedConnectionImpl<Protocol>((boost::asio::io_context&)acceptor->get_executor().context(), context, fUseSSL));
acceptor->async_accept(
conn->sslStream.lowest_layer(),
@@ -621,7 +621,7 @@
assert(rpc_io_service == NULL);
rpc_io_service = new boost::asio::io_service();
- rpc_ssl_context = new ssl::context(*rpc_io_service, ssl::context::sslv23);
+ rpc_ssl_context = new ssl::context(ssl::context::sslv23);
const bool fUseSSL = GetBoolArg("-rpcssl", false);
@@ -640,7 +640,7 @@
else LogPrintf("ThreadRPCServer ERROR: missing server private key file %s\n", pathPKFile.string());
string strCiphers = GetArg("-rpcsslciphers", "TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH");
- SSL_CTX_set_cipher_list(rpc_ssl_context->impl(), strCiphers.c_str());
+ SSL_CTX_set_cipher_list(rpc_ssl_context->native_handle(), strCiphers.c_str());
}
std::vector<ip::tcp::endpoint> vEndpoints;