From 76bf6a3fdb60e06cb0baabd79054f3d8f26112ab Mon Sep 17 00:00:00 2001 From: Rob Date: Sat, 31 Oct 2015 12:50:41 +0000 Subject: [PATCH] Remove kCFStreamSocketSecurityLevelNegotiatedSSL to keep ssl working with current CocoaAsyncSocket this presumably reduces the security of the server, but the alternative is crashing with the default subspecs when installed through cocoa pods. Users can re-enable this if they manually use pod 'CocoaAsyncSocket', '~> 7.3.5' --- Core/HTTPConnection.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Core/HTTPConnection.m b/Core/HTTPConnection.m index d4ac82f5..5c7ea234 100644 --- a/Core/HTTPConnection.m +++ b/Core/HTTPConnection.m @@ -621,8 +621,9 @@ - (void)startConnection forKey:(NSString *)kCFStreamSSLCertificates]; // Configure this connection to use the highest possible SSL level - [settings setObject:(NSString *)kCFStreamSocketSecurityLevelNegotiatedSSL - forKey:(NSString *)kCFStreamSSLLevel]; + // This is no longer supported by CocoaAsyncSocket + //[settings setObject:(NSString *)kCFStreamSocketSecurityLevelNegotiatedSSL + // forKey:(NSString *)kCFStreamSSLLevel]; [asyncSocket startTLS:settings]; }