Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(894)

Unified Diff: net/ssl/client_cert_store_mac.cc

Issue 2000503002: Remove the fingerprint and ca_fingerprint from X509Certificate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_cache
Patch Set: Fix IDN test Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/x509_certificate_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/client_cert_store_mac.cc
diff --git a/net/ssl/client_cert_store_mac.cc b/net/ssl/client_cert_store_mac.cc
index dad8b21e978f9dd7374348ad9059bce8190f05da..4b44ab37d1219ba18c5caed09d084797940e06ed 100644
--- a/net/ssl/client_cert_store_mac.cc
+++ b/net/ssl/client_cert_store_mac.cc
@@ -146,11 +146,11 @@ void GetClientCertsImpl(const scoped_refptr<X509Certificate>& preferred_cert,
continue;
// Skip duplicates (a cert may be in multiple keychains).
- const SHA1HashValue& fingerprint = cert->fingerprint();
auto cert_iter = std::find_if(
selected_certs->begin(), selected_certs->end(),
- [&fingerprint](const scoped_refptr<X509Certificate>& cert) {
- return cert->fingerprint() == fingerprint;
+ [&cert](const scoped_refptr<X509Certificate>& other_cert) {
+ return X509Certificate::IsSameOSCert(cert->os_cert_handle(),
+ other_cert->os_cert_handle());
});
if (cert_iter != selected_certs->end())
continue;
« no previous file with comments | « net/cert/x509_certificate_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698