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

Issue 11186004: Use the NSS internal key slot for all temporary key operations (Closed)

Created:
8 years, 2 months ago by Ryan Sleevi
Modified:
8 years, 2 months ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, akalin, Nicolas Zea
Visibility:
Public.

Description

Use the NSS internal key slot for all temporary key operations Rather than calling PK11_GetBestSlot, which requires enumerating all connected tokens, use PK11_GetInternalSlot, which explicitly uses the internal NSS key database. On Linux, this will ignore any user preferences regarding what tokens should be used for which mechanisms, but for internal/temporary operations, this is an acceptable tradeoff. BUG=chrome-os-partner:14707 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162309

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove unused slot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -10 lines) Patch
M crypto/encryptor.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M crypto/encryptor_nss.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M crypto/openpgp_symmetric_encryption.cc View 1 chunk +1 line, -1 line 0 comments Download
M crypto/symmetric_key_nss.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M net/http/des.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Ryan Sleevi
wtc: For your review. You'll note that this is very similar to the Mozilla issue ...
8 years, 2 months ago (2012-10-16 19:22:25 UTC) #1
Ryan Sleevi
http://codereview.chromium.org/11186004/diff/1/crypto/encryptor_nss.cc File crypto/encryptor_nss.cc (right): http://codereview.chromium.org/11186004/diff/1/crypto/encryptor_nss.cc#newcode56 crypto/encryptor_nss.cc:56: slot_.reset(PK11_GetInternalSlot()); wtc: It's not immediately clear to me why ...
8 years, 2 months ago (2012-10-16 19:25:08 UTC) #2
wtc
Patch set 1 LGTM. Could you open an NSS bug report about the problems you ...
8 years, 2 months ago (2012-10-16 21:26:57 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/11186004/6
8 years, 2 months ago (2012-10-17 00:04:01 UTC) #4
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 2 months ago (2012-10-17 00:44:28 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/11186004/6
8 years, 2 months ago (2012-10-17 01:07:34 UTC) #6
commit-bot: I haz the power
8 years, 2 months ago (2012-10-17 03:18:59 UTC) #7
Change committed as 162309

Powered by Google App Engine
This is Rietveld 408576698