diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-12 02:17:08 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-12 02:17:08 +0000 |
commit | 8405da12256819349baf47280fcd495bb796a723 (patch) | |
tree | 83f1b318ee853e10985a47a70dcd00d8049b2803 /net/base/cert_database.h | |
parent | e1751fb1116682ffba80cbc127b9da66c6d72a3c (diff) | |
download | chromium_src-8405da12256819349baf47280fcd495bb796a723.zip chromium_src-8405da12256819349baf47280fcd495bb796a723.tar.gz chromium_src-8405da12256819349baf47280fcd495bb796a723.tar.bz2 |
CertDatabase: Add ImportServerCerts method.
BUG=19991
TEST=net_unittests
Review URL: http://codereview.chromium.org/3576016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62228 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cert_database.h')
-rw-r--r-- | net/base/cert_database.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/base/cert_database.h b/net/base/cert_database.h index 113a658..a40a56f 100644 --- a/net/base/cert_database.h +++ b/net/base/cert_database.h @@ -100,6 +100,17 @@ class CertDatabase { unsigned int trust_bits, ImportCertFailureList* not_imported); + // Import server certificate. The first cert should be the server cert. Any + // additional certs should be intermediate/CA certs and will be imported but + // not given any trust. + // Any certificates that could not be imported will be listed in + // |not_imported|. + // Returns false if there is an internal error, otherwise true is returned and + // |not_imported| should be checked for any certificates that were not + // imported. + bool ImportServerCert(const CertificateList& certificates, + ImportCertFailureList* not_imported); + // Get trust bits for certificate. unsigned int GetCertTrust(const X509Certificate* cert, CertType type) const; |