[Scummvm-git-logs] scummvm master -> 33bfcd6eac67f16e98d63f8e43378d5f197cd79a
LittleToonCat
noreply at scummvm.org
Fri Mar 31 08:14:58 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
33bfcd6eac SCUMM HE: Disable cert verification on Android.
Commit: 33bfcd6eac67f16e98d63f8e43378d5f197cd79a
https://github.com/scummvm/scummvm/commit/33bfcd6eac67f16e98d63f8e43378d5f197cd79a
Author: Little Cat (toontownlittlecat at gmail.com)
Date: 2023-03-31T05:14:44-03:00
Commit Message:
SCUMM HE: Disable cert verification on Android.
Changed paths:
backends/networking/curl/socket.cpp
diff --git a/backends/networking/curl/socket.cpp b/backends/networking/curl/socket.cpp
index ccfa98ee62a..8e861ddfa79 100644
--- a/backends/networking/curl/socket.cpp
+++ b/backends/networking/curl/socket.cpp
@@ -75,10 +75,9 @@ bool CurlSocket::connect(Common::String url) {
// Just connect to the host, do not do any transfers.
curl_easy_setopt(_easy, CURLOPT_CONNECT_ONLY, 1L);
- // Uncomment this to disable SSL certificate verification
- // (e.g. self-signed certs).
- // curl_easy_setopt(_easy, CURLOPT_SSL_VERIFYPEER, 0L);
-
+#ifdef ANDROID_PLAIN_PORT
+ curl_easy_setopt(_easy, CURLOPT_SSL_VERIFYPEER, 0L);
+#endif
CURLcode res = curl_easy_perform(_easy);
if (res != CURLE_OK) {
warning("libcurl: Failed to connect: %s", curl_easy_strerror(res));
@@ -164,4 +163,3 @@ size_t CurlSocket::recv(void *data, int maxLen) {
}
} // End of namespace Networking
-
More information about the Scummvm-git-logs
mailing list