-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASIHTTPRequest.validatesSecureCertificate once set to NO can never be reverted #263
Comments
…once set to 'NO' on new requests)
I am facing the same issue even with v1.8.1-61 2011-09-19, which is having the code fixes as said above in Ref "6600374". Thanks |
Issue is, library is not reverting the SSL properties, when user resets validatesSecureCertificate from NO to YES. Though user is saying to perform SSL validation but at OS level, SSL properties are set for not to perform SSL validation [sets when validatesSecureCertificate sets as NO] . Hence library is not giving any error with self-signed certificates and validatesSecureCertificate as YES. Solution for this is as follows:
} Thanks |
Hi Shivani, A patch (merely identical to your code), has already been submitted and merged. |
Fixes dictionary memory leak when certificate checking is disabled. Refs #263. Problem was introduced in commit:6600374880762608baed7e632bce73d45666768b.
Closing based on ikarius's comment |
Hi all,
Title is self explanatory.
If 'validatesSecureCertificate' is set to NO once, it can never be reverted, even on new requests.
Tried this test case:
This is somehow related to kCFStreamPropertySSLSettings / kCFStreamSSLValidatesCertificateChain that can never be reverted once set to true.
The text was updated successfully, but these errors were encountered: