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

Issue 746002: Mac: Ignoring optional client-cert requests from server (Closed)

Created:
10 years, 9 months ago by Jens Alfke
Modified:
9 years, 7 months ago
Reviewers:
wtc, Jens
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Mac: Ignoring optional client-cert requests from server BUG=37765 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=41742

Patch Set 1 #

Patch Set 2 : minor syntactic tweak #

Total comments: 7

Patch Set 3 : Responding to comments. #

Total comments: 12

Patch Set 4 : Fixing syntactic nits in logging. #

Patch Set 5 : Removed unreachable code. More logging. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -24 lines) Patch
M net/socket/ssl_client_socket_mac.cc View 1 2 3 4 14 chunks +69 lines, -24 lines 3 comments Download

Messages

Total messages: 10 (0 generated)
Jens Alfke
I'd forgotten to make sure the user gets prompted if the server requests certs during ...
10 years, 9 months ago (2010-03-09 22:56:38 UTC) #1
wtc
This seems correct, but I'm worried about the continuation after client_cert_requested_ in DoVerifyCertComplete. I'd like ...
10 years, 9 months ago (2010-03-10 20:33:23 UTC) #2
Jens Alfke
I've made the changes you requested. Please see my note below about handshake_interrupted_. Thanks! http://codereview.chromium.org/746002/diff/2001/3001 ...
10 years, 9 months ago (2010-03-11 16:03:10 UTC) #3
wtc
Hi Jens, Thanks for the new patch set. Now that I understand the code more, ...
10 years, 9 months ago (2010-03-11 22:31:16 UTC) #4
Jens
http://codereview.chromium.org/746002/diff/7001/8001 File net/socket/ssl_client_socket_mac.cc (right): http://codereview.chromium.org/746002/diff/7001/8001#newcode556 net/socket/ssl_client_socket_mac.cc:556: SSL_LOG << "----- DISCONNECTED"; On 2010/03/11 22:31:16, wtc wrote: ...
10 years, 9 months ago (2010-03-12 02:00:03 UTC) #5
wtc
Sorry about the delay in replying. I think we need to set breakpoints on all ...
10 years, 9 months ago (2010-03-13 01:23:38 UTC) #6
Jens Alfke
http://codereview.chromium.org/746002/diff/7001/8001 File net/socket/ssl_client_socket_mac.cc (right): http://codereview.chromium.org/746002/diff/7001/8001#newcode957 net/socket/ssl_client_socket_mac.cc:957: next_handshake_state_ = STATE_VERIFY_CERT; On 2010/03/13 01:23:38, wtc wrote: > ...
10 years, 9 months ago (2010-03-15 19:04:05 UTC) #7
Jens Alfke
Oh, and BTW, I made the changes you suggested (removing unreachable code.) Please review.
10 years, 9 months ago (2010-03-15 19:04:57 UTC) #8
wtc
LGTM. Thanks a lot for the event trace. I have some comments. http://codereview.chromium.org/746002/diff/16001/17001 File net/socket/ssl_client_socket_mac.cc ...
10 years, 9 months ago (2010-03-16 00:42:48 UTC) #9
Jens Alfke
10 years, 9 months ago (2010-03-16 18:50:10 UTC) #10
Checked in, with a warning comment added and nits fixed. Thanks!

http://codereview.chromium.org/746002/diff/16001/17001
File net/socket/ssl_client_socket_mac.cc (right):

http://codereview.chromium.org/746002/diff/16001/17001#newcode951
net/socket/ssl_client_socket_mac.cc:951: case errSSLClientCertRequested:
On 2010/03/16 00:42:48, wtc wrote:
> 2. This means we still end up sending the client certificate
> before verifying the server certificate.

No, because we always abort the connection in this case (by returning
ERR_SSL_CLIENT_AUTH_CERT_NEEDED.) The unreachable code you had me delete in the
previous round of review took care of the case where we would proceed with this
connection; it deferred sending the client cert till the verification succeeded.
But as things are now we won't ever proceed.

Powered by Google App Engine
This is Rietveld 408576698