summaryrefslogtreecommitdiffstats
path: root/net/cert/x509_cert_types_mac.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/cert/x509_cert_types_mac.cc')
-rw-r--r--net/cert/x509_cert_types_mac.cc7
1 files changed, 7 insertions, 0 deletions
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