| Index: net/base/cert_database.h
|
| diff --git a/net/base/cert_database.h b/net/base/cert_database.h
|
| index 5ffb6a25040288bf77f73e0df44c08982ee7983e..69290ab4ffbef51ac95ebfaf795b6bf55f51cea3 100644
|
| --- a/net/base/cert_database.h
|
| +++ b/net/base/cert_database.h
|
| @@ -16,6 +16,7 @@
|
|
|
| namespace net {
|
|
|
| +class CryptoModule;
|
| class X509Certificate;
|
| typedef std::vector<scoped_refptr<X509Certificate> > CertificateList;
|
|
|
| @@ -72,10 +73,16 @@ class CertDatabase {
|
| // instance of all certificates.)
|
| void ListCerts(CertificateList* certs);
|
|
|
| - // Import certificates and private keys from PKCS #12 blob.
|
| + // Get the default module.
|
| + // The returned pointer must be stored in a scoped_refptr<CryptoModule>.
|
| + CryptoModule* GetDefaultModule() 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.
|
| - int ImportFromPKCS12(const std::string& data, const string16& password);
|
| + int ImportFromPKCS12(net::CryptoModule* module,
|
| + const std::string& data,
|
| + const string16& password);
|
|
|
| // Export the given certificates and private keys into a PKCS #12 blob,
|
| // storing into |output|.
|
|
|