Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9ff899b9b2f4121ebf7e7f5b376e5ad8dab21574
      
https://github.com/WebKit/WebKit/commit/9ff899b9b2f4121ebf7e7f5b376e5ad8dab21574
  Author: Ian Grunert <[email protected]>
  Date:   2026-06-08 (Mon, 08 Jun 2026)

  Changed paths:
    M Source/WebCore/platform/network/curl/OpenSSLHelper.cpp

  Log Message:
  -----------
  [Win] Fix OpenSSLHelper summary() fallback
https://bugs.webkit.org/show_bug.cgi?id=316490

Reviewed by Yusuke Suzuki.

http/tests/inspector/network/resource-certificate-subject-format.html expects
the certificate subject shown in Web Inspector to be a human-readable summary.
The layout test certificate has no CN attribute (its subject is
"C=AU, ST=Some-State, O=WebKit Layout Tests"), so the curl port fell back to
printing the whole distinguished name ("WebKit Layout Tests, Some-State, AU").

Fall back to the organization name (O) before the full subject string, matching
the behavior of SecCertificateCopySubjectSummary on macOS and the soup port's
subjectSummaryFromDN() (314545@main).

* Source/WebCore/platform/network/curl/OpenSSLHelper.cpp:
(WebCore::OpenSSL::getSubjectEntry): Added, generalized from getCommonName.
(WebCore::OpenSSL::getCommonName):
(WebCore::OpenSSL::getOrganizationName): Added.
(WebCore::OpenSSL::createSummaryInfo): Prefer CN, then O, then the full subject.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to