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

Issue 6017010: Ensure that when using False Start + client auth, bad client certificates are not cached (Closed)

Created:
9 years, 11 months ago by Ryan Sleevi
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

If an SSL handshake fails when client certificates are used, ensure that the client certificate selected is removed from the SSL client auth cache. This ensures that the user is prompted to select a certificate again, as the cause of the failure may have been due to selecting the wrong certificate or selecting no certificate when one is required. The existing logic worked when TLS False Start was disabled, but could fail when False Start was used or when the peer requests renegotiation. This changes ensures the client certificate is removed from the cache by moving the cache removal layer from the HttpStreamRequest to the HttpNetworkTransaction. BUG=66424 TEST=HttpNetworkTransactionTest.ClientAuthCertCache*

Patch Set 1 #

Patch Set 2 : Add test #

Patch Set 3 : Update comments #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : Added more comments and rename tests #

Total comments: 7

Patch Set 6 : Rebase #

Patch Set 7 : Feedback #

Patch Set 8 : Fix mac compile #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -63 lines) Patch
M net/base/ssl_cert_request_info.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 1 comment Download
M net/base/ssl_cert_request_info.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M net/http/http_network_transaction.h View 1 chunk +5 lines, -0 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 4 5 6 4 chunks +54 lines, -27 lines 1 comment Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 2 chunks +200 lines, -0 lines 0 comments Download
M net/http/http_stream_request.h View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M net/http/http_stream_request.cc View 1 2 3 4 5 2 chunks +1 line, -30 lines 0 comments Download
M net/socket/socket_test_util.h View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M net/socket/socket_test_util.cc View 1 2 3 4 5 6 7 2 chunks +13 lines, -0 lines 2 comments Download

Messages

Total messages: 37 (0 generated)
Ryan Sleevi
rch, wtc: Please take a look at this unfortunately delayed CL. rch: I've added a ...
9 years, 11 months ago (2011-01-03 15:26:29 UTC) #1
Ryan Hamilton
On 2011/01/03 15:26:29, Ryan Sleevi wrote: > > rch: I've added a TODO(you), because this ...
9 years, 11 months ago (2011-01-04 23:40:47 UTC) #2
Ryan Sleevi
That's what I was thinking you were doing (based on the hostname from your log), ...
9 years, 11 months ago (2011-01-05 00:11:21 UTC) #3
Ryan Hamilton
LGTM, with a couple of test nits. Please make sure that this looks good to ...
9 years, 11 months ago (2011-01-05 17:35:02 UTC) #4
Ryan Hamilton
On 2011/01/05 00:11:21, Ryan Sleevi wrote: > That's what I was thinking you were doing ...
9 years, 11 months ago (2011-01-05 17:37:33 UTC) #5
Ryan Hamilton
Would it be worth adding a block of code like this: if (proxy_info_.is_https()) session_->ssl_client_auth_cache()->Remove( proxy_info_.proxy_server().host_port_pair().ToString()); ...
9 years, 11 months ago (2011-01-05 19:30:01 UTC) #6
Ryan Sleevi
On 2011/01/05 19:30:01, Ryan Hamilton wrote: > Would it be worth adding a block of ...
9 years, 11 months ago (2011-01-06 07:13:51 UTC) #7
Ryan Hamilton
On Wed, Jan 5, 2011 at 11:13 PM, <rsleevi@chromium.org> wrote: > On 2011/01/05 19:30:01, Ryan ...
9 years, 11 months ago (2011-01-06 17:34:34 UTC) #8
Ryan Sleevi
+cc agl: In response to your e-mail, this is a CL that addresses client auth ...
9 years, 11 months ago (2011-01-06 23:55:19 UTC) #9
agl
On Thu, Jan 6, 2011 at 6:55 PM, <rsleevi@chromium.org> wrote: > +cc agl: In response ...
9 years, 11 months ago (2011-01-07 15:34:43 UTC) #10
Ryan Sleevi
On 2011/01/07 15:34:43, agl wrote: > Do we intend to merge this for Chrome 9? ...
9 years, 11 months ago (2011-01-09 07:10:37 UTC) #11
rch (use chromium not google)
On Sat, Jan 8, 2011 at 11:10 PM, <rsleevi@chromium.org> wrote: > On 2011/01/07 15:34:43, agl ...
9 years, 11 months ago (2011-01-10 17:04:07 UTC) #12
agl
On Mon, Jan 10, 2011 at 12:04 PM, Ryan Hamilton <rch@google.com> wrote: > Since this ...
9 years, 11 months ago (2011-01-10 17:19:26 UTC) #13
agl
On Mon, Jan 10, 2011 at 12:19 PM, Adam Langley <agl@chromium.org> wrote: > At the ...
9 years, 11 months ago (2011-01-10 22:08:23 UTC) #14
Ryan Sleevi
On 2011/01/10 22:08:23, agl wrote: > The branch is open, however this change doesn't appear ...
9 years, 11 months ago (2011-01-10 23:18:24 UTC) #15
agl
On Mon, Jan 10, 2011 at 6:18 PM, <rsleevi@chromium.org> wrote: > agl: Was holding off ...
9 years, 11 months ago (2011-01-10 23:22:42 UTC) #16
wtc
rsleevi: thanks for writing this CL. It seems correct. I'd like to suggest some changes ...
9 years, 11 months ago (2011-01-10 23:40:58 UTC) #17
wtc
rsleevi: just wanted to point out that, except for the TODO(rch) issue with an SSL ...
9 years, 11 months ago (2011-01-10 23:52:30 UTC) #18
Ryan Sleevi
wtc: Thanks for the feedback. I've made all the changes you requested but one, with ...
9 years, 11 months ago (2011-01-11 01:37:47 UTC) #19
Ryan Sleevi
Between tree closures and a Mac compile issue, I was not able to get this ...
9 years, 11 months ago (2011-01-11 13:57:25 UTC) #20
agl
On Tue, Jan 11, 2011 at 8:57 AM, <rsleevi@chromium.org> wrote: > evening, if needed sooner ...
9 years, 11 months ago (2011-01-11 18:49:11 UTC) #21
agl
On Tue, Jan 11, 2011 at 1:49 PM, Adam Langley <agl@chromium.org> wrote: > Have sent ...
9 years, 11 months ago (2011-01-11 20:01:51 UTC) #22
Ryan Hamilton
Awesome, thanks! Would you like to land http://codereview.chromium.org/6120002/ also, or shall I? (That's the CL ...
9 years, 11 months ago (2011-01-11 21:04:36 UTC) #23
agl
On Tue, Jan 11, 2011 at 4:04 PM, Ryan Hamilton <rch@chromium.org> wrote: > Awesome, thanks! ...
9 years, 11 months ago (2011-01-11 21:06:49 UTC) #24
rch (use chromium not google)
On Tue, Jan 11, 2011 at 1:06 PM, Adam Langley <agl@chromium.org> wrote: > On Tue, ...
9 years, 11 months ago (2011-01-11 21:22:31 UTC) #25
agl
On Tue, Jan 11, 2011 at 4:22 PM, Ryan Hamilton <rch@google.com> wrote: > Awesome. (I ...
9 years, 11 months ago (2011-01-11 22:06:28 UTC) #26
wtc
LGTM. http://codereview.chromium.org/6017010/diff/58001/net/base/ssl_cert_request_info.h File net/base/ssl_cert_request_info.h (right): http://codereview.chromium.org/6017010/diff/58001/net/base/ssl_cert_request_info.h#newcode25 net/base/ssl_cert_request_info.h:25: // Resets the SSLCertRequestInfo as if no certificate ...
9 years, 11 months ago (2011-01-12 00:21:09 UTC) #27
Ryan Sleevi
http://codereview.chromium.org/6017010/diff/58001/net/socket/socket_test_util.cc File net/socket/socket_test_util.cc (right): http://codereview.chromium.org/6017010/diff/58001/net/socket/socket_test_util.cc#newcode541 net/socket/socket_test_util.cc:541: cert_request_info->client_certs = data_->cert_request_info->client_certs; On 2011/01/12 00:21:09, wtc wrote: > ...
9 years, 11 months ago (2011-01-12 00:40:07 UTC) #28
agl
On Tue, Jan 11, 2011 at 5:06 PM, Adam Langley <agl@chromium.org> wrote: > Landed as ...
9 years, 11 months ago (2011-01-12 17:53:55 UTC) #29
agl
On Wed, Jan 12, 2011 at 1:05 PM, Ryan Hamilton <rch@chromium.org> wrote: > Yes, I ...
9 years, 11 months ago (2011-01-12 18:10:44 UTC) #30
rsleevi-old
I won't really be able to reply in-depth until this evening, but this is going ...
9 years, 11 months ago (2011-01-12 18:23:24 UTC) #31
Ryan Hamilton
Yes, I really do! Should I contact him directly, or is there a thread I ...
9 years, 11 months ago (2011-01-12 18:36:47 UTC) #32
rch (use chromium not google)
On Wed, Jan 12, 2011 at 10:10 AM, Adam Langley <agl@chromium.org> wrote: > On Wed, ...
9 years, 11 months ago (2011-01-12 18:37:54 UTC) #33
agl
On Wed, Jan 12, 2011 at 1:37 PM, Ryan Hamilton <rch@google.com> wrote: > Thanks to ...
9 years, 11 months ago (2011-01-12 18:42:15 UTC) #34
rch (use chromium not google)
Will do! On Wed, Jan 12, 2011 at 10:42 AM, Adam Langley <agl@chromium.org> wrote: > ...
9 years, 11 months ago (2011-01-12 18:49:55 UTC) #35
rch (use chromium not google)
Ok, I have merged both of these changes as 71200 and 71201. Rockin' On Wed, ...
9 years, 11 months ago (2011-01-12 19:08:01 UTC) #36
agl
9 years, 11 months ago (2011-01-13 16:02:04 UTC) #37
LGTM

Powered by Google App Engine
This is Rietveld 408576698