Make NoVerifySSLCert work for all LLURLRequest
Moved CURLOPT_ENCODING from CurlEasyRequest::setPost_raw, and CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST from CurlResponderBuffer::prepRequest, to LLURLRequest::configure, enabling the debug setting NoVerifySSLCert for the latter two to work as follows: old behavior if "NoVerifySSLCert" is not set, and check neither if it is set. However, if the (new) bool mIsAuth is set the behavior of LLXMLRPCTransaction::Impl::init is used. This is so in a next commit we can replace LLXMLRPCTransaction with LLURLRequest: LLXMLRPCTransaction::Impl::init will be removed. For the same reason, when the new boolean mNoCompression is set then CURLOPT_ENCODING is set to "identity", otherwise the old behavior (of clearing it) is used.
This commit is contained in:
@@ -2482,12 +2482,13 @@ void AICurlEasyRequest::removeRequest(void)
|
||||
|
||||
namespace AICurlInterface {
|
||||
|
||||
void startCurlThread(U32 CurlConcurrentConnections)
|
||||
void startCurlThread(U32 CurlConcurrentConnections, bool NoVerifySSLCert)
|
||||
{
|
||||
using namespace AICurlPrivate::curlthread;
|
||||
|
||||
llassert(is_main_thread());
|
||||
curl_concurrent_connections = CurlConcurrentConnections; // Debug Setting.
|
||||
gNoVerifySSLCert = NoVerifySSLCert; // Debug Setting.
|
||||
AICurlThread::sInstance = new AICurlThread;
|
||||
AICurlThread::sInstance->start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user