Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Search for default pinned certificates in the main bundle #3752
Even though this behavior is documented, this is dangerous. Using the main bundle makes the behavior deterministic.
Using `[NSBundle bundleForClass:[self class]]` is dangerous because the code will behave differently depending on how AFNetworking is integrated. * If it is integrated as a static library (for example using CocoaPods), certificates will be searched in the main bundle. * If it is integrated as a framework (for example using Carthage), certificates will be searched in the AFNetworking framework. Even though this behavior is documented, this is dangerous. Using the main bundle makes the behavior deterministic. Fixes #3575
Current coverage is 87.42% (diff: 100%)
@@ master #3752 diff @@ ========================================== Files 45 45 Lines 6227 6220 -7 Methods 1104 1102 -2 Messages 0 0 Branches 416 416 ========================================== - Hits 5445 5438 -7 Misses 779 779 Partials 3 3