diff options
author | rsn8887 | 2019-10-13 14:18:02 -0500 |
---|---|---|
committer | rsn8887 | 2019-10-13 14:19:05 -0500 |
commit | cdbcb296090cd0c5ff8c6a04b7184e7b45b7188a (patch) | |
tree | a6d1955f1e270e1786921afcf6a6da4829e24bd8 /backends/networking | |
parent | 53eae6c937e68b3dc306f868f7d25e52ee7dd08a (diff) | |
download | scummvm-rg350-cdbcb296090cd0c5ff8c6a04b7184e7b45b7188a.tar.gz scummvm-rg350-cdbcb296090cd0c5ff8c6a04b7184e7b45b7188a.tar.bz2 scummvm-rg350-cdbcb296090cd0c5ff8c6a04b7184e7b45b7188a.zip |
SWITCH: Fix cloud integration
Diffstat (limited to 'backends/networking')
-rw-r--r-- | backends/networking/curl/networkreadstream.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/networking/curl/networkreadstream.cpp b/backends/networking/curl/networkreadstream.cpp index dee48856bf..be9779409b 100644 --- a/backends/networking/curl/networkreadstream.cpp +++ b/backends/networking/curl/networkreadstream.cpp @@ -84,6 +84,9 @@ void NetworkReadStream::init(const char *url, curl_slist *headersList, const byt curl_easy_setopt(_easy, CURLOPT_NOPROGRESS, 0L); curl_easy_setopt(_easy, CURLOPT_PROGRESSFUNCTION, curlProgressCallbackOlder); curl_easy_setopt(_easy, CURLOPT_PROGRESSDATA, this); +#ifdef NINTENDO_SWITCH + curl_easy_setopt(_easy, CURLOPT_SSL_VERIFYPEER, 0); +#endif #if LIBCURL_VERSION_NUM >= 0x072000 // CURLOPT_XFERINFOFUNCTION introduced in libcurl 7.32.0 // CURLOPT_PROGRESSFUNCTION is used as a backup plan in case older version is used @@ -136,6 +139,9 @@ void NetworkReadStream::init(const char *url, curl_slist *headersList, Common::H curl_easy_setopt(_easy, CURLOPT_NOPROGRESS, 0L); curl_easy_setopt(_easy, CURLOPT_PROGRESSFUNCTION, curlProgressCallbackOlder); curl_easy_setopt(_easy, CURLOPT_PROGRESSDATA, this); +#ifdef NINTENDO_SWITCH + curl_easy_setopt(_easy, CURLOPT_SSL_VERIFYPEER, 0); +#endif #if LIBCURL_VERSION_NUM >= 0x072000 // CURLOPT_XFERINFOFUNCTION introduced in libcurl 7.32.0 // CURLOPT_PROGRESSFUNCTION is used as a backup plan in case older version is used |