summaryrefslogtreecommitdiffstats
path: root/net/base/cert_database.h
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-05 02:20:44 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-05 02:20:44 +0000
commit4c4f7cdb9dfef25e00a3f03f2311f22bacfaef39 (patch)
tree2e68cf6647aec887b211096bacf576460f96153a /net/base/cert_database.h
parentb640b41ead7134a508d4228e480409e83cf9ac63 (diff)
downloadchromium_src-4c4f7cdb9dfef25e00a3f03f2311f22bacfaef39.zip
chromium_src-4c4f7cdb9dfef25e00a3f03f2311f22bacfaef39.tar.gz
chromium_src-4c4f7cdb9dfef25e00a3f03f2311f22bacfaef39.tar.bz2
NSS: Unlock crypto devices when populating cert manager.
BUG=42073 TEST=try to use cert manager with "unfriendly" device. Review URL: http://codereview.chromium.org/6580058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77024 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cert_database.h')
-rw-r--r--net/base/cert_database.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/base/cert_database.h b/net/base/cert_database.h
index 69290ab..0e7bdbd 100644
--- a/net/base/cert_database.h
+++ b/net/base/cert_database.h
@@ -17,6 +17,7 @@
namespace net {
class CryptoModule;
+typedef std::vector<scoped_refptr<CryptoModule> > CryptoModuleList;
class X509Certificate;
typedef std::vector<scoped_refptr<X509Certificate> > CertificateList;
@@ -77,6 +78,10 @@ class CertDatabase {
// The returned pointer must be stored in a scoped_refptr<CryptoModule>.
CryptoModule* GetDefaultModule() const;
+ // Get all modules.
+ // If |need_rw| is true, only writable modules will be returned.
+ void ListModules(CryptoModuleList* modules, bool need_rw) const;
+
// Import certificates and private keys from PKCS #12 blob into the module.
// Returns OK or a network error code such as ERR_PKCS12_IMPORT_BAD_PASSWORD
// or ERR_PKCS12_IMPORT_ERROR.