pokeb / asi-http-request

Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone
http://allseeing-i.com/ASIHTTPRequest
Other
5.78k stars 1.41k forks source link

Compiler warnings in Xcode 6 #395

Open zubko opened 9 years ago

zubko commented 9 years ago
.../ASIHTTPRequest.m:1215:70: 'kCFStreamSSLAllowsExpiredCertificates' is deprecated: first deprecated in iOS 4.0
.../ASIHTTPRequest.m:1216:70: 'kCFStreamSSLAllowsAnyRoot' is deprecated: first deprecated in iOS 4.0

According to the comments in CFNetwork/CFSocketStream.h, where these const are declared, it's enough to use only one kCFStreamSSLValidatesCertificateChain param.

So as the kCFStreamSSLValidatesCertificateChain is set to @NO in the same piece of code where deprecated consts are used, will the fix be to remove deprecated consts?

jonasman commented 9 years ago

There is another one: Classes/ASIDataCompressor.m:101:11: Initialization of pointer of type 'NSData *' to null from a constant boolean expression

jonasman commented 9 years ago

I fixed all warnings. Those 2 you mention with your sugestion. Chaning the key and the value to @NO.

The last one, the one i mention, i just set the NSData to nil, instead on NO. And no more warnings now

manishparihar948 commented 9 years ago

@jonasman : where to change the values exactly? am not able to understand it.