AFNetworking / AFNetworking
Showing 1 of 2 files from the diff.

@@ -158,17 +158,6 @@
Loading
158 158
    return [NSSet setWithSet:certificates];
159 159
}
160 160
161 -
+ (NSSet *)defaultPinnedCertificates {
162 -
    static NSSet *_defaultPinnedCertificates = nil;
163 -
    static dispatch_once_t onceToken;
164 -
    dispatch_once(&onceToken, ^{
165 -
        NSBundle *bundle = [NSBundle bundleForClass:[self class]];
166 -
        _defaultPinnedCertificates = [self certificatesInBundle:bundle];
167 -
    });
168 -
169 -
    return _defaultPinnedCertificates;
170 -
}
171 -
172 161
+ (instancetype)defaultPolicy {
173 162
    AFSecurityPolicy *securityPolicy = [[self alloc] init];
174 163
    securityPolicy.SSLPinningMode = AFSSLPinningModeNone;
@@ -177,7 +166,8 @@
Loading
177 166
}
178 167
179 168
+ (instancetype)policyWithPinningMode:(AFSSLPinningMode)pinningMode {
180 -
    return [self policyWithPinningMode:pinningMode withPinnedCertificates:[self defaultPinnedCertificates]];
169 +
    NSSet <NSData *> *defaultPinnedCertificates = [self certificatesInBundle:[NSBundle mainBundle]];
170 +
    return [self policyWithPinningMode:pinningMode withPinnedCertificates:defaultPinnedCertificates];
181 171
}
182 172
183 173
+ (instancetype)policyWithPinningMode:(AFSSLPinningMode)pinningMode withPinnedCertificates:(NSSet *)pinnedCertificates {
Files Coverage
AFNetworking 77.12%
UIKit+AFNetworking 85.24%
Project Totals (15 files) 79.56%
3037.1
default=
TRAVIS_OS_NAME=osx
1
ignore:
2
  - "Tests"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading