summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-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