Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merging latest changes from CocoaAsyncSocket project (GCDAsyncSocket …

…compiler warnings fixed)
  • Loading branch information...
commit 16272508e22f03a6a3d0e54263f4fc4aff0ab6c6 1 parent 93a37fe
@robbiehanson authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 Vendor/CocoaAsyncSocket/GCDAsyncSocket.m
View
15 Vendor/CocoaAsyncSocket/GCDAsyncSocket.m
@@ -6430,7 +6430,10 @@ - (void)ssl_startTLS
// 10. kCFStreamSSLAllowsAnyRoot
+ #pragma clang diagnostic push
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
value = [tlsSettings objectForKey:(NSString *)kCFStreamSSLAllowsAnyRoot];
+ #pragma clang diagnostic pop
if (value)
{
NSAssert(NO, @"Security option unavailable - kCFStreamSSLAllowsAnyRoot"
@@ -6442,7 +6445,10 @@ - (void)ssl_startTLS
// 11. kCFStreamSSLAllowsExpiredRoots
+ #pragma clang diagnostic push
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
value = [tlsSettings objectForKey:(NSString *)kCFStreamSSLAllowsExpiredRoots];
+ #pragma clang diagnostic pop
if (value)
{
NSAssert(NO, @"Security option unavailable - kCFStreamSSLAllowsExpiredRoots"
@@ -6454,7 +6460,10 @@ - (void)ssl_startTLS
// 12. kCFStreamSSLValidatesCertificateChain
+ #pragma clang diagnostic push
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
value = [tlsSettings objectForKey:(NSString *)kCFStreamSSLValidatesCertificateChain];
+ #pragma clang diagnostic pop
if (value)
{
NSAssert(NO, @"Security option unavailable - kCFStreamSSLValidatesCertificateChain"
@@ -6466,7 +6475,10 @@ - (void)ssl_startTLS
// 13. kCFStreamSSLAllowsExpiredCertificates
+ #pragma clang diagnostic push
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
value = [tlsSettings objectForKey:(NSString *)kCFStreamSSLAllowsExpiredCertificates];
+ #pragma clang diagnostic pop
if (value)
{
NSAssert(NO, @"Security option unavailable - kCFStreamSSLAllowsExpiredCertificates"
@@ -6478,7 +6490,10 @@ - (void)ssl_startTLS
// 14. kCFStreamSSLLevel
+ #pragma clang diagnostic push
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
value = [tlsSettings objectForKey:(NSString *)kCFStreamSSLLevel];
+ #pragma clang diagnostic pop
if (value)
{
NSAssert(NO, @"Security option unavailable - kCFStreamSSLLevel"

0 comments on commit 1627250

Please sign in to comment.
Something went wrong with that request. Please try again.