Skip to content

Commit

Permalink
Add a log when SSL pinning fails
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesis committed Aug 2, 2016
1 parent f472f81 commit 1e3294b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/API/SERequestHandlerURLSessionDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ - (void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticat
} else {
[[challenge sender] cancelAuthenticationChallenge:challenge];
completionHandler(NSURLSessionAuthChallengeCancelAuthenticationChallenge, nil);
NSLog(@"*** SSL Pinning FAILED *** Request to %@://%@ cancelled.", challenge.protectionSpace.protocol, challenge.protectionSpace.host);
}
}

Expand Down

0 comments on commit 1e3294b

Please sign in to comment.