forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove default key slot from KeygenHandler.
KeygenHandler defaulted to use the persistent key slot. However, the Handler is also used in ChromeOS where no such global persistent slot exists. This change removes this default behavior from KeygenHandler. Instead only the slot provided by the CryptoModuleDelegate will be used. If no CryptoModuleDelegate is set, then an error will be thrown on keygen usage. The unit test of KeygenHandler now explicitly provides the slot through a StubCryptoModuleDelegate. In a follow up, the crypto::GetPersistentNSSKeySlot() call will be removed from the unit tests as well and instead the test slot will be get()'ed from the ScopedTestNSSDB. BUG=210525 Review URL: https://codereview.chromium.org/384413004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283634 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
pneubeck@chromium.org
committed
Jul 17, 2014
1 parent
0218586
commit 47c9bee
Showing
2 changed files
with
60 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters