diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2014-04-06 22:21:34 +0400 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2014-04-06 22:21:34 +0400 |
commit | 45acbba8447362e43d9a17ad1df1250ccb80bac7 (patch) | |
tree | 5021fdd3a9ebda43121a45baf08dfd4f277d15bb | |
parent | 95b46a572eddfd23b5f08dbfc4e859d36c7124b8 (diff) |
MKConnection: silence deprecation warning for kSecTrustResultConfirm.
-rw-r--r-- | src/MKConnection.m | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/MKConnection.m b/src/MKConnection.m index d6f6bf7..2c546e6 100644 --- a/src/MKConnection.m +++ b/src/MKConnection.m @@ -988,8 +988,6 @@ out: case kSecTrustResultInvalid: // May be trusted for the purposes designated. ('Always Trust' in Keychain) case kSecTrustResultProceed: - // User confirmation is required before proceeding. ('Ask Permission' in Keychain) - case kSecTrustResultConfirm: // This certificate is not trusted. ('Never Trust' in Keychain) case kSecTrustResultDeny: // No trust setting specified. ('Use System Policy' in Keychain) @@ -1001,6 +999,15 @@ out: case kSecTrustResultOtherError: break; + // kSecTrustResultConfirm is deprecated since iOS 7 and Mavericks, + // but MumbleKit's deployment target is 5.1, so silence the deprecation warning. +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + // User confirmation is required before proceeding. ('Ask Permission' in Keychain) + case kSecTrustResultConfirm: + break; +#pragma clang diagnostic pop + // A recoverable trust failure. case kSecTrustResultRecoverableTrustFailure: { if ([_delegate respondsToSelector:@selector(connection:trustFailureInCertificateChain:)]) { |