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

Issue 12035105: Move client certificates retrieval logic out of the SSL sockets. (Closed)

Created:
7 years, 11 months ago by ppi
Modified:
7 years, 10 months ago
Reviewers:
brettw, sky, Ryan Sleevi, digit1
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move client certificates retrieval logic out of the SSL sockets. CL 11879048 introduces ClientCertStore API providing client certificate lookup/filtering logic currently being done at the SSL socket level. This patch removes this logic from the sockets, plugging the new API in the upper layers instead. BUG=170374 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181104

Patch Set 1 : #

Patch Set 2 : Remove Mac specific X509Certificate methods: IsIssuedBy(), GetSSLClientCertificates() #

Patch Set 3 : Fix Linux Redux build #

Total comments: 6

Patch Set 4 : Address Ryan's remarks #

Patch Set 5 : Fix Linux bots build (?) #

Total comments: 4

Patch Set 6 : Address Ryan's remarks #

Total comments: 6

Patch Set 7 : Address Ryan's remarks #

Total comments: 8

Patch Set 8 : Nit & rebase #

Patch Set 9 : Add missing license header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -376 lines) Patch
M content/browser/loader/resource_loader.h View 1 2 3 4 5 6 4 chunks +24 lines, -3 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 3 4 5 6 4 chunks +37 lines, -10 lines 0 comments Download
A content/browser/loader/resource_loader_unittest.cc View 1 2 3 4 5 6 7 1 chunk +256 lines, -0 lines 0 comments Download
M content/browser/ssl/ssl_error_handler.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/resource_controller.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M net/base/x509_certificate.h View 1 1 chunk +0 lines, -14 lines 0 comments Download
M net/base/x509_certificate_mac.cc View 1 1 chunk +0 lines, -111 lines 0 comments Download
M net/base/x509_certificate_unittest.cc View 1 1 chunk +0 lines, -50 lines 0 comments Download
M net/data/ssl/scripts/client_authentication/generate-client-certificates.sh View 1 chunk +8 lines, -0 lines 0 comments Download
A net/data/ssl/scripts/client_authentication/run-test-server.sh View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -0 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 chunk +4 lines, -9 lines 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 8 chunks +5 lines, -163 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -2 lines 0 comments Download
M net/socket_stream/socket_stream.cc View 1 chunk +4 lines, -9 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
ppi
I have verified that client authentication / client certificate selection works as expected on Linux ...
7 years, 10 months ago (2013-01-28 14:08:49 UTC) #1
ppi
I will also need a review from content/browser OWNER - could you please have a ...
7 years, 10 months ago (2013-01-29 12:44:09 UTC) #2
sky
LGTM
7 years, 10 months ago (2013-01-29 16:34:22 UTC) #3
Ryan Sleevi
You need to write "real" tests, using TestServer, to cover this (in both the before ...
7 years, 10 months ago (2013-01-29 19:59:49 UTC) #4
ppi
Thanks for the remarks, Ryan! I have addressed most of your comments in patch set ...
7 years, 10 months ago (2013-01-30 15:34:56 UTC) #5
Ryan Sleevi
Well, what are you doing for manual tests? Let's automate that. I would expect that ...
7 years, 10 months ago (2013-01-30 19:54:51 UTC) #6
ppi
Thanks for the hints, Ryan! I have addressed your remarks and added an unittest in ...
7 years, 10 months ago (2013-02-01 22:22:34 UTC) #7
Ryan Sleevi
I'm a little uncertain about why you need the mutative methods (eg: set_client_certs) rather than ...
7 years, 10 months ago (2013-02-01 22:48:37 UTC) #8
ppi
Thanks for the remarks, Ryan! I have addressed your comments in patch set 7 and ...
7 years, 10 months ago (2013-02-04 19:35:54 UTC) #9
ppi
As I am adding a new test file to content/content_tests.gypi, I will also need a ...
7 years, 10 months ago (2013-02-04 19:41:56 UTC) #10
Ryan Sleevi
Mostly LGTM, a few nits below. Certainly, you'll want to make sure a content/ owner ...
7 years, 10 months ago (2013-02-04 23:08:33 UTC) #11
ppi
Thanks for the remarks, Ryan! I have fixed the date in the new unittest file ...
7 years, 10 months ago (2013-02-05 17:05:30 UTC) #12
brettw
content owners rubberstamp based on rsleevi's review
7 years, 10 months ago (2013-02-06 19:02:45 UTC) #13
Ryan Sleevi
On 2013/02/06 19:02:45, brettw wrote: > content owners rubberstamp based on rsleevi's review brettw: Note, ...
7 years, 10 months ago (2013-02-06 19:06:58 UTC) #14
ppi
On 2013/02/06 19:06:58, Ryan Sleevi wrote: > On 2013/02/06 19:02:45, brettw wrote: > > content ...
7 years, 10 months ago (2013-02-06 19:12:31 UTC) #15
brettw
John says we already do OPENSSL ifdefs in content so this should be OK. Thanks ...
7 years, 10 months ago (2013-02-06 19:26:55 UTC) #16
ppi
On 2013/02/06 19:26:55, brettw wrote: > John says we already do OPENSSL ifdefs in content ...
7 years, 10 months ago (2013-02-06 19:44:20 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/12035105/50001
7 years, 10 months ago (2013-02-06 19:47:08 UTC) #18
commit-bot: I haz the power
Presubmit check for 12035105-50001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 10 months ago (2013-02-06 19:47:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/12035105/52003
7 years, 10 months ago (2013-02-06 19:56:39 UTC) #20
commit-bot: I haz the power
7 years, 10 months ago (2013-02-07 00:15:27 UTC) #21
Message was sent while issue was closed.
Change committed as 181104

Powered by Google App Engine
This is Rietveld 408576698