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

Changeset 280879 in webkit


Ignore:
Timestamp:
Aug 10, 2021, 6:51:25 PM (5 years ago)
Author:
timothy_horton@apple.com
Message:

Unreviewed build fix.

  • NetworkProcess/cocoa/NetworkSessionCocoa.mm:

(stringForTLSProtocolVersion):
(-[WKNetworkSessionDelegate URLSession:task:didReceiveChallenge:completionHandler:]):
(-[WKNetworkSessionDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]):
Ignore some slightly less unconventional deprecation warnings.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r280875 r280879  
     12021-08-10  Tim Horton  <timothy_horton@apple.com>
     2
     3        Unreviewed build fix.
     4
     5        * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
     6        (stringForTLSProtocolVersion):
     7        (-[WKNetworkSessionDelegate URLSession:task:didReceiveChallenge:completionHandler:]):
     8        (-[WKNetworkSessionDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]):
     9        Ignore some slightly less unconventional deprecation warnings.
     10
    1112021-08-10  Alex Christensen  <achristensen@webkit.org>
    212
  • trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm

    r280575 r280879  
    164164static String stringForTLSProtocolVersion(tls_protocol_version_t protocol)
    165165{
     166ALLOW_DEPRECATED_DECLARATIONS_BEGIN
    166167    switch (protocol) {
    167168    case tls_protocol_version_TLSv10:
     
    178179        return "DTLS 1.2"_s;
    179180    }
     181ALLOW_DEPRECATED_DECLARATIONS_END
    180182    return { };
    181183}
     
    711713        NSURLSessionTaskTransactionMetrics *metrics = task._incompleteTaskMetrics.transactionMetrics.lastObject;
    712714        auto tlsVersion = (tls_protocol_version_t)metrics.negotiatedTLSProtocolVersion.unsignedShortValue;
     715ALLOW_DEPRECATED_DECLARATIONS_BEGIN
    713716        if (tlsVersion == tls_protocol_version_TLSv10 || tlsVersion == tls_protocol_version_TLSv11)
    714717            negotiatedLegacyTLS = NegotiatedLegacyTLS::Yes;
     718ALLOW_DEPRECATED_DECLARATIONS_END
    715719#endif
    716720        ALLOW_DEPRECATED_DECLARATIONS_BEGIN
     
    936940        NSURLSessionTaskTransactionMetrics *metrics = taskMetrics.transactionMetrics.lastObject;
    937941        auto tlsVersion = (tls_protocol_version_t)metrics.negotiatedTLSProtocolVersion.unsignedShortValue;
     942ALLOW_DEPRECATED_DECLARATIONS_BEGIN
    938943        if (tlsVersion == tls_protocol_version_TLSv10 || tlsVersion == tls_protocol_version_TLSv11)
    939944            negotiatedLegacyTLS = NegotiatedLegacyTLS::Yes;
     945ALLOW_DEPRECATED_DECLARATIONS_END
    940946#else // We do not need to check _TLSNegotiatedProtocolVersion if we have metrics.negotiatedTLSProtocolVersion because it works at response time even before rdar://problem/56522601
    941947        ALLOW_DEPRECATED_DECLARATIONS_BEGIN
Note: See TracChangeset for help on using the changeset viewer.