mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-22 12:05:53 +00:00
Switch to turn of SSL peer verification.
This commit is contained in:
@@ -34,6 +34,8 @@ HttpsClient::HttpsClient(
|
||||
mResponseMax(responseMax),
|
||||
mDeadline(io_service)
|
||||
{
|
||||
if (!theConfig.SSL_VERIFY)
|
||||
mSocket.SSLSocket().set_verify_mode(boost::asio::ssl::verify_none);
|
||||
}
|
||||
|
||||
void HttpsClient::makeGet(const std::string& strPath, boost::asio::streambuf& sb, const std::string& strHost)
|
||||
@@ -206,11 +208,13 @@ void HttpsClient::handleConnect(const boost::system::error_code& ecResult)
|
||||
{
|
||||
cLog(lsTRACE) << "Connected.";
|
||||
|
||||
mShutdown = mSocket.verify(mDeqSites[0]);
|
||||
|
||||
if (mShutdown)
|
||||
if (theConfig.SSL_VERIFY)
|
||||
{
|
||||
cLog(lsTRACE) << "set_verify_callback: " << mDeqSites[0] << ": " << mShutdown.message();
|
||||
mShutdown = mSocket.verify(mDeqSites[0]);
|
||||
if (mShutdown)
|
||||
{
|
||||
cLog(lsTRACE) << "set_verify_callback: " << mDeqSites[0] << ": " << mShutdown.message();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user