Skip to content

Commit

Permalink
Add an assertion for the certificate when initializing the URL sessio…
Browse files Browse the repository at this point in the history
…n delegate
  • Loading branch information
nemesis committed Aug 2, 2016
1 parent 5554cb9 commit f472f81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/API/SERequestHandlerURLSessionDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ + (instancetype)sharedInstance
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_sharedInstance = [[self alloc] init];
NSString* cerPath = [[NSBundle mainBundle] pathForResource:@"saltedge.com" ofType:@"cer"];
NSAssert(cerPath != nil, @"The saltedge.com SSL certificate could not be located in the app bundle.");
});
return _sharedInstance;
}
Expand Down

0 comments on commit f472f81

Please sign in to comment.