Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Unified Diff: crypto/encryptor_nss.cc

Issue 11186004: Use the NSS internal key slot for all temporary key operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | crypto/openpgp_symmetric_encryption.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/encryptor_nss.cc
diff --git a/crypto/encryptor_nss.cc b/crypto/encryptor_nss.cc
index cf4fa2a78d4ca04486940ca5d5ec8c27d85df9ef..d37c0669c6aad6d38812787266f711c0d79bfbd7 100644
--- a/crypto/encryptor_nss.cc
+++ b/crypto/encryptor_nss.cc
@@ -53,7 +53,7 @@ bool Encryptor::Init(SymmetricKey* key,
if (mode == CBC && iv.size() != AES_BLOCK_SIZE)
return false;
- slot_.reset(PK11_GetBestSlot(GetMechanism(mode), NULL));
+ slot_.reset(PK11_GetInternalSlot());
Ryan Sleevi 2012/10/16 19:25:09 wtc: It's not immediately clear to me why we even
wtc 2012/10/16 21:26:57 We should remove the unused slot_ member. I guess
if (!slot_.get())
return false;
« no previous file with comments | « no previous file | crypto/openpgp_symmetric_encryption.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698