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

Issue 7066070: Search all slots when looking for a key in NSS (Closed)

Created:
9 years, 6 months ago by Greg Spencer (Chromium)
Modified:
9 years, 6 months ago
Reviewers:
rkc, Chris Masone, wtc
CC:
chromium-reviews
Visibility:
Public.

Description

Search all slots when looking for a key in NSS This should make it possible to run on a VM, and still find the private key created for the owner in the software slot. BUG=chromium-os:15817 TEST=Built an image and tried it on a VM and a device. Both showed restricted users list. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88380

Patch Set 1 #

Patch Set 2 : Update before review #

Total comments: 4

Patch Set 3 : Now searching all tokens #

Total comments: 2

Patch Set 4 : adding blank line #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -40 lines) Patch
M crypto/nss_util.cc View 1 2 2 chunks +10 lines, -18 lines 0 comments Download
M crypto/nss_util_internal.h View 1 2 3 1 chunk +12 lines, -0 lines 1 comment Download
M crypto/rsa_private_key_nss.cc View 1 2 2 chunks +14 lines, -22 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Greg Spencer (Chromium)
9 years, 6 months ago (2011-06-03 18:08:23 UTC) #1
Chris Masone
LGTM w/nit http://codereview.chromium.org/7066070/diff/2001/crypto/rsa_private_key_nss.cc File crypto/rsa_private_key_nss.cc (right): http://codereview.chromium.org/7066070/diff/2001/crypto/rsa_private_key_nss.cc#newcode138 crypto/rsa_private_key_nss.cc:138: return NULL; Might we worth logging a ...
9 years, 6 months ago (2011-06-03 18:12:45 UTC) #2
Greg Spencer (Chromium)
Adding wtc@ to do an OWNER review.
9 years, 6 months ago (2011-06-03 18:19:56 UTC) #3
wtc
http://codereview.chromium.org/7066070/diff/2001/crypto/rsa_private_key_nss.cc File crypto/rsa_private_key_nss.cc (left): http://codereview.chromium.org/7066070/diff/2001/crypto/rsa_private_key_nss.cc#oldcode125 crypto/rsa_private_key_nss.cc:125: return NULL; I wonder if this is the bug. ...
9 years, 6 months ago (2011-06-03 18:31:56 UTC) #4
Greg Spencer (Chromium)
http://codereview.chromium.org/7066070/diff/2001/crypto/rsa_private_key_nss.cc File crypto/rsa_private_key_nss.cc (right): http://codereview.chromium.org/7066070/diff/2001/crypto/rsa_private_key_nss.cc#newcode132 crypto/rsa_private_key_nss.cc:132: // look in the private slot. On 2011/06/03 18:31:56, ...
9 years, 6 months ago (2011-06-06 22:40:58 UTC) #5
wtc
LGTM. http://codereview.chromium.org/7066070/diff/6002/crypto/nss_util_internal.h File crypto/nss_util_internal.h (right): http://codereview.chromium.org/7066070/diff/6002/crypto/nss_util_internal.h#newcode33 crypto/nss_util_internal.h:33: ~AutoSECMODListReadLock(); Can you define the constructor and destructor ...
9 years, 6 months ago (2011-06-07 00:14:32 UTC) #6
Greg Spencer (Chromium)
http://codereview.chromium.org/7066070/diff/6002/crypto/nss_util_internal.h File crypto/nss_util_internal.h (right): http://codereview.chromium.org/7066070/diff/6002/crypto/nss_util_internal.h#newcode33 crypto/nss_util_internal.h:33: ~AutoSECMODListReadLock(); On 2011/06/07 00:14:32, wtc wrote: > Can you ...
9 years, 6 months ago (2011-06-07 00:28:08 UTC) #7
Greg Spencer (Chromium)
Ping.
9 years, 6 months ago (2011-06-08 17:33:13 UTC) #8
Chris Masone
LGTM, still
9 years, 6 months ago (2011-06-08 17:38:14 UTC) #9
Greg Spencer (Chromium)
LOL OK. Sorry, I guess I thought wtc might want to respond to my not ...
9 years, 6 months ago (2011-06-08 17:40:21 UTC) #10
wtc
9 years, 6 months ago (2011-06-08 18:03:48 UTC) #11
http://codereview.chromium.org/7066070/diff/12001/crypto/nss_util_internal.h
File crypto/nss_util_internal.h (right):

http://codereview.chromium.org/7066070/diff/12001/crypto/nss_util_internal.h#...
crypto/nss_util_internal.h:9: #include <secmodt.h>
Since you already include <secmodt.h> here, you can replace
it with <secmod.h> so that you can define the AutoSECMODListReadLock
class inline.  Either way is fine by me.

Powered by Google App Engine
This is Rietveld 408576698