diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-13 01:21:13 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-13 01:21:13 +0000 |
commit | 7a3a965742838666dbfb3665783d08f3976f1d6c (patch) | |
tree | 31380e6ab890536b8cfc186772c974b62e88c012 /chrome/browser/certificate_manager_model.h | |
parent | 8d260e51fdb7b92eae3dc4a1800dc571711c9277 (diff) | |
download | chromium_src-7a3a965742838666dbfb3665783d08f3976f1d6c.zip chromium_src-7a3a965742838666dbfb3665783d08f3976f1d6c.tar.gz chromium_src-7a3a965742838666dbfb3665783d08f3976f1d6c.tar.bz2 |
DOMUI Cert Manager: Add import server cert function.
BUG=19991
TEST=manual
Review URL: http://codereview.chromium.org/3691008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62368 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/certificate_manager_model.h')
-rw-r--r-- | chrome/browser/certificate_manager_model.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/certificate_manager_model.h b/chrome/browser/certificate_manager_model.h index 12c16bb..4ff0be7 100644 --- a/chrome/browser/certificate_manager_model.h +++ b/chrome/browser/certificate_manager_model.h @@ -73,6 +73,18 @@ class CertificateManagerModel { unsigned int trust_bits, net::CertDatabase::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 net::CertificateList& certificates, + net::CertDatabase::ImportCertFailureList* not_imported); + // Set trust values for certificate. // |trust_bits| should be a bit field of TRUST_* values from CertDatabase, or // UNTRUSTED. |