Index: net/cert/x509_certificate_mac.cc |
diff --git a/net/cert/x509_certificate_mac.cc b/net/cert/x509_certificate_mac.cc |
index 3c3c8cfc94a56c4bd3b1eedab664f3ba7bb3603b..b4db758502342b6d9704863fcbb0a011cc618d90 100644 |
--- a/net/cert/x509_certificate_mac.cc |
+++ b/net/cert/x509_certificate_mac.cc |
@@ -286,15 +286,7 @@ bool X509Certificate::GetDEREncoded(X509Certificate::OSCertHandle cert_handle, |
bool X509Certificate::IsSameOSCert(X509Certificate::OSCertHandle a, |
X509Certificate::OSCertHandle b) { |
DCHECK(a && b); |
- if (a == b) |
mattm
2017/03/17 01:15:53
was doing this check here before calling CFEqual a
Ryan Sleevi
2017/03/17 14:13:58
Yup
|
- return true; |
- if (CFEqual(a, b)) |
- return true; |
- CSSM_DATA a_data, b_data; |
- return SecCertificateGetData(a, &a_data) == noErr && |
- SecCertificateGetData(b, &b_data) == noErr && |
- a_data.Length == b_data.Length && |
- memcmp(a_data.Data, b_data.Data, a_data.Length) == 0; |
+ return CFEqual(a, b); |
} |
// static |