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

Unified Diff: net/base/x509_certificate_mac.cc

Issue 3052035: Mac: Look for issuer in a certificate chain instead of subject (Closed)
Patch Set: Add unit test Created 10 years, 5 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 | « no previous file | net/base/x509_certificate_unittest.cc » ('j') | net/base/x509_certificate_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/x509_certificate_mac.cc
diff --git a/net/base/x509_certificate_mac.cc b/net/base/x509_certificate_mac.cc
index 23c3fa4a031f462c6a969cea6cda379ad9c0f3b9..e4c5c7f693317ee9862a973872ad0cf1a625b3af 100644
--- a/net/base/x509_certificate_mac.cc
+++ b/net/base/x509_certificate_mac.cc
@@ -861,7 +861,7 @@ bool X509Certificate::IsIssuedBy(
X509Certificate::SOURCE_LONE_CERT_IMPORT,
X509Certificate::OSCertHandles());
for (unsigned j = 0; j < valid_issuers.size(); j++) {
- if (cert->subject().Matches(valid_issuers[j]))
+ if (cert->issuer().Matches(valid_issuers[j]))
wtc 2010/08/03 03:25:54 No wonder this bug looks familiar to me. I noted
return true;
}
}
« no previous file with comments | « no previous file | net/base/x509_certificate_unittest.cc » ('j') | net/base/x509_certificate_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698