हमारा पुराना ऐप एमकेनेटवर्ककिट और एमकेनेटवर्क ऑपरेशन का उपयोग करता है।आईओएस 7 में kSecTrustResultConfirm के लिए विकल्प क्या है?
अब आईओएस 7 kSecTrustResultConfirm
के तहत बहिष्कृत किया गया है।
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];
}
}
वहाँ kSecTrustResultConfirm
के लिए प्रतिस्थापन है: MKNetworkOperation में, वहाँ इस कोड है?
वही समस्या यहां है, क्या आपने इसे हल किया? – Vik
प्रलेखन संदर्भ: https://developer.apple.com/library/ios/documentation/Security/Reference/certifkeytrustservices/Reference/reference.html#//apple_ref/c/econst/kSecTrustResultConfirm –
मैं आपको लगता है कि आवश्यकता नहीं आईओएस 7 में इस मामले की जांच के लिए क्योंकि यह मान कभी वापस नहीं आया है। संक्षेप में कोड के ब्लॉक जो इस पर सशर्त है # ifdef'd और अनदेखा किया जा सकता है। हालांकि यकीन नहीं है। अभी भी पूरे एपीआई के चारों ओर अपने सिर लपेटने की कोशिश कर रहा है। –