summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
authorhawk@chromium.org <hawk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 20:55:37 +0000
committerhawk@chromium.org <hawk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 20:55:37 +0000
commit9af506084e92488285a4f213d35784449979bb97 (patch)
treebed80525d62c45dd38db3b59847dd5e9861bb53c /net/base
parent2a34f5a924c6fea7f30a9a891bd90869eded13ef (diff)
downloadchromium_src-9af506084e92488285a4f213d35784449979bb97.zip
chromium_src-9af506084e92488285a4f213d35784449979bb97.tar.gz
chromium_src-9af506084e92488285a4f213d35784449979bb97.tar.bz2
View Certificate dialog sometimes shows incorrect status because it didn't have the full certificate chain.
BUG=23122 TEST=https://www.paypal.com should have "This certificate is valid" in View Page Info->View Certificate Information Review URL: http://codereview.chromium.org/256064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28882 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r--net/base/x509_certificate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h
index 4ae6554..2628dbb 100644
--- a/net/base/x509_certificate.h
+++ b/net/base/x509_certificate.h
@@ -213,6 +213,11 @@ class X509Certificate : public base::RefCountedThreadSafe<X509Certificate> {
// Adds an untrusted intermediate certificate that may be needed for
// chain building.
void AddIntermediateCertificate(SecCertificateRef cert);
+
+ // Returns intermediate certificates added via AddIntermediateCertificate().
+ // Ownership follows the "get" rule: it is the caller's responsibility to
+ // retain the result.
+ CFArrayRef GetIntermediateCertificates() { return intermediate_ca_certs_; }
#endif
// Verifies the certificate against the given hostname. Returns OK if