diff options
Diffstat (limited to 'net/cert')
-rw-r--r-- | net/cert/cert_verify_proc_mac.cc | 7 | ||||
-rw-r--r-- | net/cert/x509_cert_types_mac.cc | 7 | ||||
-rw-r--r-- | net/cert/x509_certificate_mac.cc | 7 | ||||
-rw-r--r-- | net/cert/x509_util_mac.cc | 7 | ||||
-rw-r--r-- | net/cert/x509_util_mac.h | 7 |
5 files changed, 35 insertions, 0 deletions
diff --git a/net/cert/cert_verify_proc_mac.cc b/net/cert/cert_verify_proc_mac.cc index c4e0c41..07a49a2 100644 --- a/net/cert/cert_verify_proc_mac.cc +++ b/net/cert/cert_verify_proc_mac.cc @@ -32,6 +32,11 @@ #include "net/cert/x509_certificate.h" #include "net/cert/x509_util_mac.h" +// CSSM functions are deprecated as of OSX 10.7, but have no replacement. +// https://bugs.chromium.org/p/chromium/issues/detail?id=590914#c1 +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + // From 10.7.2 libsecurity_keychain-55035/lib/SecTrustPriv.h, for use with // SecTrustCopyExtendedResult. #ifndef kSecEVOrganizationName @@ -835,3 +840,5 @@ int CertVerifyProcMac::VerifyInternal( } } // namespace net + +#pragma clang diagnostic pop // "-Wdeprecated-declarations" diff --git a/net/cert/x509_cert_types_mac.cc b/net/cert/x509_cert_types_mac.cc index c8ed4fe..4a7a968 100644 --- a/net/cert/x509_cert_types_mac.cc +++ b/net/cert/x509_cert_types_mac.cc @@ -19,6 +19,11 @@ namespace net { namespace { +// CSSM functions are deprecated as of OSX 10.7, but have no replacement. +// https://bugs.chromium.org/p/chromium/issues/detail?id=590914#c1 +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + // The BER encoding of 0.9.2342.19200300.100.1.25. // On 10.6 and later this is available as CSSMOID_DomainComponent, which is an // external symbol from Security.framework. However, it appears that Apple's @@ -289,4 +294,6 @@ bool CertPrincipal::Matches(const CertPrincipal& against) const { match(domain_components, against.domain_components); } +#pragma clang diagnostic pop // "-Wdeprecated-declarations" + } // namespace net diff --git a/net/cert/x509_certificate_mac.cc b/net/cert/x509_certificate_mac.cc index e27576a..83f8993 100644 --- a/net/cert/x509_certificate_mac.cc +++ b/net/cert/x509_certificate_mac.cc @@ -29,6 +29,11 @@ using base::Time; namespace net { +// CSSM functions are deprecated as of OSX 10.7, but have no replacement. +// https://bugs.chromium.org/p/chromium/issues/detail?id=590914#c1 +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + namespace { void GetCertDistinguishedName( @@ -573,4 +578,6 @@ bool X509Certificate::IsSelfSigned(OSCertHandle cert_handle) { return true; } +#pragma clang diagnostic pop // "-Wdeprecated-declarations" + } // namespace net diff --git a/net/cert/x509_util_mac.cc b/net/cert/x509_util_mac.cc index 3959b80..7971a73 100644 --- a/net/cert/x509_util_mac.cc +++ b/net/cert/x509_util_mac.cc @@ -9,6 +9,11 @@ namespace net { +// CSSM functions are deprecated as of OSX 10.7, but have no replacement. +// https://bugs.chromium.org/p/chromium/issues/detail?id=590914#c1 +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + namespace x509_util { namespace { @@ -228,4 +233,6 @@ OSStatus CSSMCachedCertificate::GetField(const CSSM_OID* field_oid, } // namespace x509_util +#pragma clang diagnostic pop // "-Wdeprecated-declarations" + } // namespace net diff --git a/net/cert/x509_util_mac.h b/net/cert/x509_util_mac.h index a35266b..08c1589 100644 --- a/net/cert/x509_util_mac.h +++ b/net/cert/x509_util_mac.h @@ -57,6 +57,11 @@ OSStatus NET_EXPORT CreateRevocationPolicies(bool enable_revocation_checking, bool enable_ev_checking, CFMutableArrayRef policies); +// CSSM functions are deprecated as of OSX 10.7, but have no replacement. +// https://bugs.chromium.org/p/chromium/issues/detail?id=590914#c1 +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + // Wrapper for a CSSM_DATA_PTR that was obtained via one of the CSSM field // accessors (such as CSSM_CL_CertGet[First/Next]Value or // CSSM_CL_CertGet[First/Next]CachedValue). @@ -132,6 +137,8 @@ class CSSMCachedCertificate { CSSM_HANDLE cached_cert_handle_; }; +#pragma clang diagnostic pop // "-Wdeprecated-declarations" + } // namespace x509_util } // namespace net |