Merge pull request #1451 from mdornseif/pinningWarning_1.x

1.x: Give a human readable Warning when SSL Pinning fails.
This commit is contained in:
Mattt Thompson 2013-10-10 19:28:04 -07:00
commit e18e4e01bc

View file

@ -634,6 +634,7 @@ willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challe
}
}
NSLog(@"Error: Unknown Public Key during Pinning operation");
[[challenge sender] cancelAuthenticationChallenge:challenge];
break;
}
@ -646,6 +647,7 @@ willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challe
}
}
NSLog(@"Error: Unknown Certificate during Pinning operation");
[[challenge sender] cancelAuthenticationChallenge:challenge];
break;
}