Nasza stara aplikacja korzysta z MKNetworkKit i MKNetworkOperation.Jaka jest alternatywa dla kSecTrustResultConfirm w iOS 7?
Teraz pod iOS 7 kSecTrustResultConfirm
jest przestarzałe. W MKNetworkOperation, jest to kod:
else if(result == kSecTrustResultConfirm) { // DEPRECATED
if(self.shouldContinueWithInvalidCertificate) {
// Cert not trusted, but user is OK with that
DLog(@"Certificate is not trusted, but self.shouldContinueWithInvalidCertificate is YES");
[challenge.sender useCredential:[NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust] forAuthenticationChallenge:challenge];
} else {
DLog(@"Certificate is not trusted, continuing without credentials. Might result in 401 Unauthorized");
[challenge.sender continueWithoutCredentialForAuthenticationChallenge:challenge];
}
}
istnieje zamiennik kSecTrustResultConfirm
?
Ten sam problem tutaj, rozwiązałeś? odniesienie – Vik
Dokumentacja: https://developer.apple.com/library/ios/documentation/Security/Reference/certifkeytrustservices/Reference/reference.html#//apple_ref/c/econst/kSecTrustResultConfirm –
wierzę, nie jest już potrzebna aby sprawdzić tę sprawę w systemie iOS 7, ponieważ ta wartość nigdy nie jest zwracana. W skrócie blok kodu, który jest zależny od tego, COULD może być # ifdef'd i zignorowany. Nie jestem tego pewien. Nadal próbuję objąć głowę całym API. –