⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 288310 in webkit


Ignore:
Timestamp:
Jan 20, 2022, 11:12:51 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[ iOS15 ] TestWebKitAPI.WebKit.ServerTrust and TestWebKitAPI.WebKit.FastServerTrust tests timing out
​https://bugs.webkit.org/show_bug.cgi?id=231320
<rdar://80352256>

Patch by Alex Christensen <​achristensen@webkit.org> on 2022-01-20
Reviewed by Chris Dumez.

SecTrustCopyCertificateChain returns a CFArrayRef of SecCertificateRef, not CFData.

  • TestWebKitAPI/Tests/WebKitCocoa/Challenge.mm:

(verifyCertificateAndPublicKey):
(TestWebKitAPI::TEST):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r288276 r288310  
     12022-01-20  Alex Christensen  <achristensen@webkit.org>
     2
     3        [ iOS15 ] TestWebKitAPI.WebKit.ServerTrust and TestWebKitAPI.WebKit.FastServerTrust tests timing out
     4        https://bugs.webkit.org/show_bug.cgi?id=231320
     5        <rdar://80352256>
     6
     7        Reviewed by Chris Dumez.
     8
     9        SecTrustCopyCertificateChain returns a CFArrayRef of SecCertificateRef, not CFData.
     10
     11        * TestWebKitAPI/Tests/WebKitCocoa/Challenge.mm:
     12        (verifyCertificateAndPublicKey):
     13        (TestWebKitAPI::TEST):
     14
    1152022-01-20  Angelos Oikonomopoulos  <angelos@igalia.com>
    216
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/Challenge.mm

    r285547 r288310  
    453453
    454454#if HAVE(SEC_TRUST_COPY_CERTIFICATE_CHAIN)
    455     auto certificate = adoptCF((CFDataRef)CFArrayGetValueAtIndex(adoptCF(SecTrustCopyCertificateChain(trust)).get(), 0));
     455    auto certificate = adoptCF(SecCertificateCopyData((SecCertificateRef)CFArrayGetValueAtIndex(adoptCF(SecTrustCopyCertificateChain(trust)).get(), 0)));
    456456#else
    457457    auto certificate = adoptCF(SecCertificateCopyData(SecTrustGetCertificateAtIndex(trust, 0)));
    … …  
    601601namespace TestWebKitAPI {
    602602
    603 // FIXME: Re-enable these tests once webkit.org/b/231320 is resolved.
    604 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 120000) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED < 150000)
    605603TEST(WebKit, ServerTrust)
    606604{
    … …  
    632630    EXPECT_EQ([delegate authenticationChallengeCount], 1ull);
    633631}
    634 #endif // (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 120000) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED < 150000)
    635632
    636633TEST(WebKit, ErrorSecureCoding)
Note: See TracChangeset for help on using the changeset viewer.