MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / setSSLBackEnd

Method setSSLBackEnd

framework/data_source/curl/CURLConnection.cpp:144–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void CURLConnection::setSSLBackEnd(curl_sslbackend sslbackend)
145{
146 //For https ignore CA certificates
147 curl_easy_setopt(mHttp_handle, CURLOPT_SSL_VERIFYPEER, FALSE);
148
149 // openssl not verify host, otherwise will return CURLE_PEER_FAILED_VERIFICATION
150 if (sslbackend == CURLSSLBACKEND_OPENSSL) {
151 curl_easy_setopt(mHttp_handle, CURLOPT_SSL_VERIFYHOST, FALSE);
152 }
153}
154
155Cicada::CURLConnection::~CURLConnection()
156{

Callers 2

initConnectionMethod · 0.45
initConnectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected