Skip to content

Commit

Permalink
Correct example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Stromire committed Jun 20, 2018
1 parent 7819714 commit 92dd676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ The following shows an example of how to use the `URLSessionDelegate` callback
to restrict network activity to an intermediate certificate in a cert chain.

```swift
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping CertificateCompletion) {
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
// Adapted from OWASP https://www.owasp.org/index.php/Certificate_and_Public_Key_Pinning#iOS
let cancel = URLSession.AuthChallengeDisposition.cancelAuthenticationChallenge

Expand Down

0 comments on commit 92dd676

Please sign in to comment.