Skip to content

Commit 1428519

Browse files
committed
Guard deprecated code
1 parent f388b97 commit 1428519

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

FirebaseDatabase/Sources/third_party/SocketRocket/FSRWebSocket.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,10 @@ - (void)stream:(NSStream *)aStream handleEvent:(NSStreamEvent)eventCode;
14801480
if (secTrust) {
14811481
NSInteger numCerts = SecTrustGetCertificateCount(secTrust);
14821482
for (NSInteger i = 0; i < numCerts && !_pinnedCertFound; i++) {
1483+
#pragma clang diagnostic push
1484+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
14831485
SecCertificateRef cert = SecTrustGetCertificateAtIndex(secTrust, i);
1486+
#pragma clang diagnostic pop
14841487
NSData *certData = CFBridgingRelease(SecCertificateCopyData(cert));
14851488

14861489
for (id ref in sslCerts) {

0 commit comments

Comments
 (0)