Changeset 30359 in webkit


Ignore:
Timestamp:
Feb 17, 2008 3:53:27 PM (16 years ago)
Author:
alp@webkit.org
Message:

2008-02-17 Alp Toker <alp@atoker.com>

Reviewed by Sam Weinig.

Fix for change made in r30355. Issue noticed by İsmail Dönmez.

Verify SSL certs by default, but allow checks to be disabled with an
environment variable (WEBKIT_IGNORE_SSL_ERRORS) for now.

  • platform/network/curl/ResourceHandleManager.cpp: (WebCore::ResourceHandleManager::startJob):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r30355 r30359  
     12008-02-17  Alp Toker  <alp@atoker.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Fix for change made in r30355. Issue noticed by İsmail Dönmez.
     6
     7        Verify SSL certs by default, but allow checks to be disabled with an
     8        environment variable (WEBKIT_IGNORE_SSL_ERRORS) for now.
     9
     10        * platform/network/curl/ResourceHandleManager.cpp:
     11        (WebCore::ResourceHandleManager::startJob):
     12
    1132008-02-17  Bin Chen  <binary.chen@gmail.com>
    214
  • trunk/WebCore/platform/network/curl/ResourceHandleManager.cpp

    r30355 r30359  
    5555const int maxRunningJobs = 5;
    5656
     57static const bool ignoreSSLErrors = getenv("WEBKIT_IGNORE_SSL_ERRORS");
     58
    5759ResourceHandleManager::ResourceHandleManager()
    5860    : m_downloadTimer(this, &ResourceHandleManager::downloadTimerCallback)
     
    565567    // FIXME: Enable SSL verification when we have a way of shipping certs
    566568    // and/or reporting SSL errors to the user.
    567     curl_easy_setopt(d->m_handle, CURLOPT_SSL_VERIFYPEER, false);
     569    if (ignoreSSLErrors)
     570        curl_easy_setopt(d->m_handle, CURLOPT_SSL_VERIFYPEER, false);
    568571    // enable gzip and deflate through Accept-Encoding:
    569572    curl_easy_setopt(d->m_handle, CURLOPT_ENCODING, "");
Note: See TracChangeset for help on using the changeset viewer.