Removed option to disable CURLOPT_SSL_VERIFYPEER, since it's not needed
anymore.
This commit is contained in:
parent
93b4aa15c2
commit
f0ddaa50a5
@ -768,11 +768,6 @@ namespace UserConfigParams
|
||||
&m_online_group,
|
||||
"Version of the server API to use."));
|
||||
|
||||
PARAM_PREFIX BoolUserConfigParam m_verify_peer
|
||||
PARAM_DEFAULT(BoolUserConfigParam(1, "verify-peer", &m_online_group,
|
||||
"If curl should check peer address. Should always be enabled,"
|
||||
"unless there are authentication problems."));
|
||||
|
||||
|
||||
// ---- Addon server related entries
|
||||
PARAM_PREFIX GroupUserConfigParam m_addon_group
|
||||
|
@ -186,14 +186,7 @@ namespace Online
|
||||
Log::error("HTTPRequest", "Error %d: '%s'.", error,
|
||||
curl_easy_strerror(error));
|
||||
}
|
||||
// In case that there are authentication problems (e.g. on osx)
|
||||
// disable peer verification. Not ideal, but still better than
|
||||
// no encryption.
|
||||
if (UserConfigParams::m_verify_peer)
|
||||
curl_easy_setopt(m_curl_session, CURLOPT_SSL_VERIFYPEER, 1L);
|
||||
else
|
||||
curl_easy_setopt(m_curl_session, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||
|
||||
curl_easy_setopt(m_curl_session, CURLOPT_SSL_VERIFYPEER, 1L);
|
||||
#ifdef __APPLE__
|
||||
curl_easy_setopt(m_curl_session, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user