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

Issue 7324039: Ensure X509Certificate::OSCertHandles are safe to be used on both UI and IO threads on Win (Closed)

Created:
9 years, 5 months ago by Ryan Sleevi
Modified:
9 years, 1 month ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Ensure X509Certificate::OSCertHandles are safe to be used on both UI, IO, and Worker threads on Win. Mirror the behaviour of SChannel by creating a new in-memory HCERTSTORE containing the certificate and its intermediate CA certificates whenever it is necessary to pass in a PCCERT_CONTEXT to a Windows API that may need to access the PCCERT_CONTEXT->hCertStore - such as certificate chain verification or display. This also paves the way for removing the GlobalCertStore on Windows, which was necessary in order to link certificates with their intermediates for these same APIs. BUG=47648 TEST=net_unittests:X509CertificateTest.* should cover this. Additionally, on a fresh profile, navigate to different HTTPS sites. From the Page Info Bubble, select Certificate Information, and in the Windows Certificate Viewer, click "Certification Path" and confirm the entire certificate chain is displayed. This is a variation of testing for http://crbug.com/45706, which should not regress. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108056

Patch Set 1 #

Total comments: 27

Patch Set 2 : Rebase to trunk #

Patch Set 3 : Review feedback #

Total comments: 4

Patch Set 4 : Restructuring #

Patch Set 5 : Mac fix #

Total comments: 10

Patch Set 6 : Rebase to trunk #

Patch Set 7 : Rebase to trunk #

Patch Set 8 : wtc feedback #

Patch Set 9 : Fix win #

Patch Set 10 : Fix include #

Patch Set 11 : Fix OpenSSL forward declare #

Patch Set 12 : Rebased #

Patch Set 13 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -79 lines) Patch
M chrome/browser/ui/cocoa/certificate_viewer.mm View 1 2 3 4 5 6 7 2 chunks +5 lines, -20 lines 0 comments Download
M chrome/browser/ui/views/certificate_viewer_win.cc View 1 2 3 4 5 6 7 8 9 4 chunks +11 lines, -4 lines 0 comments Download
D net/base/scoped_cert_chain_context.h View 1 2 1 chunk +0 lines, -30 lines 0 comments Download
M net/base/x509_certificate.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +63 lines, -5 lines 0 comments Download
M net/base/x509_certificate_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +15 lines, -8 lines 0 comments Download
M net/base/x509_certificate_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +69 lines, -11 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Ryan Sleevi
wtc: Split from the caching changes. To be clear, everything I've seen from the MSFT ...
9 years, 5 months ago (2011-07-20 01:49:20 UTC) #1
Ryan Sleevi
wtc: Ping on this?
9 years, 5 months ago (2011-07-26 23:09:14 UTC) #2
Ryan Sleevi
On 2011/07/26 23:09:14, Ryan Sleevi wrote: > wtc: Ping on this? On 2011/07/26 23:09:14, Ryan ...
9 years, 4 months ago (2011-07-29 21:54:07 UTC) #3
wtc
LGTM on Patch Set 1. I am sorry about the very late review. Your first ...
9 years, 2 months ago (2011-10-04 00:26:34 UTC) #4
Ryan Sleevi
wtc: PTAL. Note one "significant" change between patchset 1 and patchset 2 was the removal ...
9 years, 2 months ago (2011-10-04 03:38:07 UTC) #5
wtc
LGTM on Patch Set 3. High-level comments: You can ignore my complaints on the comments ...
9 years, 2 months ago (2011-10-04 18:00:51 UTC) #6
Ryan Sleevi
wtc: It appears that the bulk of the feedback is related to the fact that ...
9 years, 2 months ago (2011-10-10 02:20:50 UTC) #7
wtc
Patch Set 5 LGTM. Thanks. High-level comments 1. I think it's better to make CreateOSCertChainForCert ...
9 years, 2 months ago (2011-10-16 14:55:49 UTC) #8
Ryan Sleevi
wtc: I've made the minor updates to comments where you suggested, and I've moved it ...
9 years, 1 month ago (2011-10-28 03:28:46 UTC) #9
wtc
Patch Set 12 LGTM. I'm sorry I missed your question the other day. I didn't ...
9 years, 1 month ago (2011-10-31 19:29:43 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/7324039/46002
9 years, 1 month ago (2011-11-01 00:47:20 UTC) #11
commit-bot: I haz the power
9 years, 1 month ago (2011-11-01 01:57:56 UTC) #12
Change committed as 108056

Powered by Google App Engine
This is Rietveld 408576698