avoid overriding of the property kCFStreamPropertySSLSettings#343
avoid overriding of the property kCFStreamPropertySSLSettings#343tkanzakic wants to merge 1 commit intopokeb:masterfrom
Conversation
the call to the function CFReadStreamSetProperty((CFReadStreamRef)[self readStream], kCFStreamPropertySSLSettings, sslProperties); to set the client certificate was overriding the previous values of the property kCFStreamPropertySSLSettings set to ignore certificates validation
|
Please, merge this critical pull request! |
|
@anivaros There's generally not anybody left maintaining ASIHTTPRequest that actually uses it (and you really shouldn't be using it anymore unless you have a legacy huge project that just can't update to something more modern for some reason.) I find the patch pretty difficult to read because of the white space changes (and because I'm tired). Comments along the lines of "I have tested this code and it works. I have reviewed the code and it does not seem to have any potential to cause regressions." would be helpful. Does the original problem only occur when certificate validation is disabled? |
It's my situation :) I've tested this patch on own fork, and it works fine. Code seems to be ok too. A weak ago i've switched to CocoaPods and moved there ASIHttp too. You'll help me a lot by making new version of .podspec (1.8.3) with that fix. |
the call to the function
CFReadStreamSetProperty((CFReadStreamRef)[self readStream], kCFStreamPropertySSLSettings, sslProperties);
to set the client certificate was overriding the previous values of the property kCFStreamPropertySSLSettings set to ignore certificates validation