diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-11 01:29:09 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-11 01:29:09 +0000 |
commit | 8930b500f2ee76639b191bf3c3adc3146e607b72 (patch) | |
tree | b919adb522ce60dcdcb67f50f6737002e2e2f266 /net/cert/nss_cert_database.h | |
parent | 685863794f0212c52238384fa033ff5b28d5ea7c (diff) | |
download | chromium_src-8930b500f2ee76639b191bf3c3adc3146e607b72.zip chromium_src-8930b500f2ee76639b191bf3c3adc3146e607b72.tar.gz chromium_src-8930b500f2ee76639b191bf3c3adc3146e607b72.tar.bz2 |
NSS: Make cert import helper functions take the slot as an argument.
BUG=218643
Review URL: https://codereview.chromium.org/99333016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239933 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/cert/nss_cert_database.h')
-rw-r--r-- | net/cert/nss_cert_database.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/cert/nss_cert_database.h b/net/cert/nss_cert_database.h index 4986e51..28751a4 100644 --- a/net/cert/nss_cert_database.h +++ b/net/cert/nss_cert_database.h @@ -11,6 +11,7 @@ #include "base/basictypes.h" #include "base/memory/ref_counted.h" #include "base/strings/string16.h" +#include "crypto/scoped_nss_types.h" #include "net/base/net_export.h" #include "net/cert/cert_type.h" #include "net/cert/x509_certificate.h" @@ -94,16 +95,27 @@ class NET_EXPORT NSSCertDatabase { // instance of all certificates). void ListCerts(CertificateList* certs); + // Get the default slot for public key data. + crypto::ScopedPK11Slot GetPublicSlot() const; + + // Get the default slot for private key or mixed private/public key data. + crypto::ScopedPK11Slot GetPrivateSlot() const; + // Get the default module for public key data. // The returned pointer must be stored in a scoped_refptr<CryptoModule>. + // DEPRECATED: use GetPublicSlot instead. + // TODO(mattm): remove usage of this method and remove it. CryptoModule* GetPublicModule() const; // Get the default module for private key or mixed private/public key data. // The returned pointer must be stored in a scoped_refptr<CryptoModule>. + // DEPRECATED: use GetPrivateSlot instead. + // TODO(mattm): remove usage of this method and remove it. CryptoModule* GetPrivateModule() const; // Get all modules. // If |need_rw| is true, only writable modules will be returned. + // TODO(mattm): come up with better alternative to CryptoModuleList. void ListModules(CryptoModuleList* modules, bool need_rw) const; // Import certificates and private keys from PKCS #12 blob into the module. |