Changeset 280879 in webkit
- Timestamp:
- Aug 10, 2021, 6:51:25 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
NetworkProcess/cocoa/NetworkSessionCocoa.mm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r280875 r280879 1 2021-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 1 11 2021-08-10 Alex Christensen <achristensen@webkit.org> 2 12 -
trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm
r280575 r280879 164 164 static String stringForTLSProtocolVersion(tls_protocol_version_t protocol) 165 165 { 166 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 166 167 switch (protocol) { 167 168 case tls_protocol_version_TLSv10: … … 178 179 return "DTLS 1.2"_s; 179 180 } 181 ALLOW_DEPRECATED_DECLARATIONS_END 180 182 return { }; 181 183 } … … 711 713 NSURLSessionTaskTransactionMetrics *metrics = task._incompleteTaskMetrics.transactionMetrics.lastObject; 712 714 auto tlsVersion = (tls_protocol_version_t)metrics.negotiatedTLSProtocolVersion.unsignedShortValue; 715 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 713 716 if (tlsVersion == tls_protocol_version_TLSv10 || tlsVersion == tls_protocol_version_TLSv11) 714 717 negotiatedLegacyTLS = NegotiatedLegacyTLS::Yes; 718 ALLOW_DEPRECATED_DECLARATIONS_END 715 719 #endif 716 720 ALLOW_DEPRECATED_DECLARATIONS_BEGIN … … 936 940 NSURLSessionTaskTransactionMetrics *metrics = taskMetrics.transactionMetrics.lastObject; 937 941 auto tlsVersion = (tls_protocol_version_t)metrics.negotiatedTLSProtocolVersion.unsignedShortValue; 942 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 938 943 if (tlsVersion == tls_protocol_version_TLSv10 || tlsVersion == tls_protocol_version_TLSv11) 939 944 negotiatedLegacyTLS = NegotiatedLegacyTLS::Yes; 945 ALLOW_DEPRECATED_DECLARATIONS_END 940 946 #else // We do not need to check _TLSNegotiatedProtocolVersion if we have metrics.negotiatedTLSProtocolVersion because it works at response time even before rdar://problem/56522601 941 947 ALLOW_DEPRECATED_DECLARATIONS_BEGIN
Note:
See TracChangeset
for help on using the changeset viewer.