diff options
Diffstat (limited to 'net/base/cert_database.h')
-rw-r--r-- | net/base/cert_database.h | 5 |
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. |