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

Issue 7466006: For PKCS#12 imports, only mark key as unextractable if the PKCS#12 file includes it (Closed)

Created:
9 years, 5 months ago by gauravsh
Modified:
9 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

For PKCS#12 imports, only mark key as unextractable if the PKCS#12 file includes it This addresses a potential corner case where we end up marking an already existing private key as unextractable while importing a corresponding certificate into a hardware (unextractable slot). BUG=chromium-os:15838 TEST=Added a new unit test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95486

Patch Set 1 #

Patch Set 2 : Added a unit test #

Total comments: 4

Patch Set 3 : fix description #

Patch Set 4 : . #

Total comments: 2

Patch Set 5 : "address wtc's comments" #

Total comments: 6

Patch Set 6 : . #

Patch Set 7 : re-base without the binary blob #

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -11 lines) Patch
M net/base/cert_database_nss_unittest.cc View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
M net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp View 1 2 3 4 5 1 chunk +28 lines, -11 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
gauravsh
mattm for review, wtc for review/owners approval, rsleevi as FYI
9 years, 4 months ago (2011-07-29 01:28:59 UTC) #1
gauravsh
9 years, 4 months ago (2011-07-29 01:31:25 UTC) #2
Ryan Sleevi
http://codereview.chromium.org/7466006/diff/6001/net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp File net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp (right): http://codereview.chromium.org/7466006/diff/6001/net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp#newcode207 net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp:207: while(SEC_PKCS12DecoderIterateNext(dcx, &decoder_item) == SECSuccess) { nit: "while(" -> "while ...
9 years, 4 months ago (2011-07-29 01:46:27 UTC) #3
gauravsh
http://codereview.chromium.org/7466006/diff/6001/net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp File net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp (right): http://codereview.chromium.org/7466006/diff/6001/net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp#newcode207 net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp:207: while(SEC_PKCS12DecoderIterateNext(dcx, &decoder_item) == SECSuccess) { On 2011/07/29 01:46:27, Ryan ...
9 years, 4 months ago (2011-07-29 02:08:47 UTC) #4
wtc
LGTM. I suggest some changes below. http://codereview.chromium.org/7466006/diff/10005/net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp File net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp (right): http://codereview.chromium.org/7466006/diff/10005/net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp#newcode231 net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp:231: } The if ...
9 years, 4 months ago (2011-07-29 19:08:37 UTC) #5
gauravsh
http://codereview.chromium.org/7466006/diff/10005/net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp File net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp (right): http://codereview.chromium.org/7466006/diff/10005/net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp#newcode231 net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp:231: } On 2011/07/29 19:08:37, wtc wrote: > The if ...
9 years, 4 months ago (2011-07-29 20:04:55 UTC) #6
wtc
LGTM. http://codereview.chromium.org/7466006/diff/4006/net/base/cert_database_nss_unittest.cc File net/base/cert_database_nss_unittest.cc (right): http://codereview.chromium.org/7466006/diff/4006/net/base/cert_database_nss_unittest.cc#newcode223 net/base/cert_database_nss_unittest.cc:223: // Importing a Pkcs#12 file with a certificate ...
9 years, 4 months ago (2011-07-29 20:23:57 UTC) #7
gauravsh
I am going to check the commit queue box now... http://codereview.chromium.org/7466006/diff/4006/net/base/cert_database_nss_unittest.cc File net/base/cert_database_nss_unittest.cc (right): http://codereview.chromium.org/7466006/diff/4006/net/base/cert_database_nss_unittest.cc#newcode223 ...
9 years, 4 months ago (2011-07-29 21:57:50 UTC) #8
gauravsh
Looks like one of you need to make this change run on the trybots first ...
9 years, 4 months ago (2011-07-29 21:59:07 UTC) #9
Ryan Sleevi
On 2011/07/29 21:59:07, gauravsh wrote: > Looks like one of you need to make this ...
9 years, 4 months ago (2011-07-29 22:07:52 UTC) #10
gauravsh
On Fri, Jul 29, 2011 at 3:07 PM, <rsleevi@chromium.org> wrote: > On 2011/07/29 21:59:07, gauravsh ...
9 years, 4 months ago (2011-07-29 22:11:40 UTC) #11
Ryan Sleevi
No, it looks like 'git try --issue [#]' doesn't handle GIT patches the same way ...
9 years, 4 months ago (2011-07-29 22:12:31 UTC) #12
gauravsh
On Fri, Jul 29, 2011 at 3:12 PM, <rsleevi@chromium.org> wrote: > No, it looks like ...
9 years, 4 months ago (2011-07-29 22:16:43 UTC) #13
Ryan Sleevi
http://build.chromium.org/p/tryserver.chromium/builders/linux/builds/40166 http://build.chromium.org/p/tryserver.chromium/builders/mac/builds/40466 http://build.chromium.org/p/tryserver.chromium/builders/win/builds/45920 They should also update the status on this issue so that you ...
9 years, 4 months ago (2011-07-29 22:18:11 UTC) #14
gauravsh
Looks like the linux trybot failed because it couldn't fine the client-nokey.p12 file. Is that ...
9 years, 4 months ago (2011-07-29 23:57:08 UTC) #15
Ryan Sleevi
Bah. It's the binary patch issue. Tryjobs don't consider binary blobs in patchsets. You have ...
9 years, 4 months ago (2011-07-29 23:58:20 UTC) #16
gauravsh
Ok, wtc submitted my other change with the binary blobs, and I have rebased this ...
9 years, 4 months ago (2011-08-03 19:20:09 UTC) #17
commit-bot: I haz the power
9 years, 4 months ago (2011-08-04 20:55:46 UTC) #18
Change committed as 95486

Powered by Google App Engine
This is Rietveld 408576698