2008-02-17 Bin Chen <binary.chen@gmail.com>
authoralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 17 Feb 2008 15:36:49 +0000 (15:36 +0000)
committeralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 17 Feb 2008 15:36:49 +0000 (15:36 +0000)
        Reviewed by Alp Toker.

        http://bugs.webkit.org/show_bug.cgi?id=17404
        Bug 17404: curl certification problem

        Disable SSL cert verification until we have a way of distributing
        certs and/or reporting SSL errors to the user.

        * platform/network/curl/ResourceHandleManager.cpp:
        (WebCore::ResourceHandleManager::startJob):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@30355 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/network/curl/ResourceHandleManager.cpp

index 984ec1d46163a4989846ff3907adbf08e869d310..23595d00296f55ac91d22a3947ce0beee3e30059 100644 (file)
@@ -1,3 +1,16 @@
+2008-02-17  Bin Chen  <binary.chen@gmail.com>
+
+        Reviewed by Alp Toker.
+
+        http://bugs.webkit.org/show_bug.cgi?id=17404
+        Bug 17404: curl certification problem
+
+        Disable SSL cert verification until we have a way of distributing
+        certs and/or reporting SSL errors to the user.
+
+        * platform/network/curl/ResourceHandleManager.cpp:
+        (WebCore::ResourceHandleManager::startJob):
+
 2008-02-17  Alp Toker  <alp@atoker.com>
 
         Reviewed by Mark Rowe.
index c2d9b1f29c8a55909bab7572adcc2aae5c38e2df..19b350927117352aa18dea0384191c9478ac077d 100644 (file)
@@ -562,6 +562,9 @@ void ResourceHandleManager::startJob(ResourceHandle* job)
     curl_easy_setopt(d->m_handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
     curl_easy_setopt(d->m_handle, CURLOPT_SHARE, m_curlShareHandle);
     curl_easy_setopt(d->m_handle, CURLOPT_DNS_CACHE_TIMEOUT, 60 * 5); // 5 minutes
+    // FIXME: Enable SSL verification when we have a way of shipping certs
+    // and/or reporting SSL errors to the user.
+    curl_easy_setopt(d->m_handle, CURLOPT_SSL_VERIFYPEER, false);
     // enable gzip and deflate through Accept-Encoding:
     curl_easy_setopt(d->m_handle, CURLOPT_ENCODING, "");