summaryrefslogtreecommitdiffstats
path: root/net/base/cert_database.h
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-01 22:38:05 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-01 22:38:05 +0000
commit295f13906ac3663765b65e5d29b4dbe556b2fd00 (patch)
treed62e0e8da050c8999e99e4bacbd321d8fc5017d8 /net/base/cert_database.h
parent397b8ea50bffcc0764ca3ffcf7ec303e0f320fe4 (diff)
downloadchromium_src-295f13906ac3663765b65e5d29b4dbe556b2fd00.zip
chromium_src-295f13906ac3663765b65e5d29b4dbe556b2fd00.tar.gz
chromium_src-295f13906ac3663765b65e5d29b4dbe556b2fd00.tar.bz2
Add ListCerts method to CertDatabase.
BUG=19991 TEST=CertDatabaseNSSTest.ListCerts Review URL: http://codereview.chromium.org/3192021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58250 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cert_database.h')
-rw-r--r--net/base/cert_database.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/base/cert_database.h b/net/base/cert_database.h
index 9570d15..dab72eb 100644
--- a/net/base/cert_database.h
+++ b/net/base/cert_database.h
@@ -69,6 +69,10 @@ class CertDatabase {
int AddUserCert(X509Certificate* cert);
#if defined(USE_NSS)
+ // Get a list of unique certificates in the certificate database. (One
+ // instance of all certificates.)
+ void ListCerts(CertificateList* certs);
+
// Import certificates and private keys from PKCS #12 blob.
// Returns OK or a network error code such as ERR_PKCS12_IMPORT_BAD_PASSWORD
// or ERR_PKCS12_IMPORT_ERROR.