Changeset 181455 in webkit


Ignore:
Timestamp:
Mar 12, 2015 2:01:37 PM (9 years ago)
Author:
mitz@apple.com
Message:

Finish up <rdar://problem/20086546> [Cocoa] Add an option to treat certificate chains with SHA1-signed certificates as insecure

Added back OS X bits that I couldn’t land initially in r181317 or had to remove in r181327.

  • platform/network/mac/CertificateInfoMac.mm:

(WebCore::CertificateInfo::containsNonRootSHA1SignedCertificate):

  • platform/spi/cocoa/SecuritySPI.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r181453 r181455  
     12015-03-12  Dan Bernstein  <mitz@apple.com>
     2
     3        Finish up <rdar://problem/20086546> [Cocoa] Add an option to treat certificate chains with SHA1-signed certificates as insecure
     4
     5        Added back OS X bits that I couldn’t land initially in r181317 or had to remove in r181327.
     6
     7        * platform/network/mac/CertificateInfoMac.mm:
     8        (WebCore::CertificateInfo::containsNonRootSHA1SignedCertificate):
     9        * platform/spi/cocoa/SecuritySPI.h:
     10
    1112015-03-12  Geoffrey Garen  <ggaren@apple.com>
    212
  • trunk/Source/WebCore/platform/network/mac/CertificateInfoMac.mm

    r181328 r181455  
    3434bool CertificateInfo::containsNonRootSHA1SignedCertificate() const
    3535{
    36 #if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 90000
     36#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 90000)
    3737    if (!m_certificateChain)
    3838        return false;
  • trunk/Source/WebCore/platform/spi/cocoa/SecuritySPI.h

    r181327 r181455  
    4646#endif
    4747
    48 #if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 90000
     48#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 90000)
    4949EXTERN_C SecSignatureHashAlgorithm SecCertificateGetSignatureHashAlgorithm(SecCertificateRef certificate);
    5050#endif
Note: See TracChangeset for help on using the changeset viewer.