title: What's the alternative for kSecTrustResultConfirm in iOS 7?
body: <p>Our old app uses MKNetworkKit and MKNetworkOperation.</p>
  
  <p>Now under iOS 7 <code>kSecTrustResultConfirm</code> is deprecated.
  In MKNetworkOperation, there is this code:</p>
  
  <pre><code> 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];
            }
          }
  </code></pre>
  
  <p>is there replacement for <code>kSecTrustResultConfirm</code>?</p>