[webkit-changes] [WebKit/WebKit] 078af4: CFArrayGetCount not SecTrustGetCertificateCount

Rose noreply at github.com
Wed Feb 1 13:41:22 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 078af423a71e82ce0563e34d19b7dacb034df5e3
      https://github.com/WebKit/WebKit/commit/078af423a71e82ce0563e34d19b7dacb034df5e3
  Author: Rose <83477269+AtariDreams at users.noreply.github.com>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M Source/WebCore/platform/network/cf/CertificateInfoCFNet.cpp
    M Source/WebCore/platform/network/cocoa/CertificateInfoCocoa.mm

  Log Message:
  -----------
  CFArrayGetCount not SecTrustGetCertificateCount
https://bugs.webkit.org/show_bug.cgi?id=250938

Reviewed by Chris Dumez.

We already have the CFArrayRef, so let's call CFArrayGetCount instead of
SecTrustGetCertificateCount.

* Source\WebCore\platform\network\cf\CertificateInfoCFNet.cpp:
(bool certificatesMatch(SecTrustRef trust1, SecTrustRef trust2)):
Obtain count1 and count2 from CFArrayGetCount if supported.

* Source\WebCore\platform\network\cocoa\CertificateInfoCocoa.mm:
(void CertificateInfo::dump() const): Obtain entries from
CFArrayGetCount if supported.

Canonical link: https://commits.webkit.org/259712@main




More information about the webkit-changes mailing list