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

Issue 1174073003: Add served cert chain to SSLInfo (Closed)

Created:
5 years, 6 months ago by estark
Modified:
5 years, 6 months ago
Reviewers:
davidben
CC:
chromium-reviews, cbentzel+watch_chromium.org, Ryan Sleevi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add served cert chain to SSLInfo Add a field to SSLInfo to contain the chain as received by the client, which can be different than the SSLInfo::cert containing the chain that was verified. The new |served_cert| field is not persisted to the cache for an HttpResponseInfo and thus can be null. BUG=498945 Committed: https://crrev.com/03d644fe40b663dd42397649848484e87062afd6 Cr-Commit-Position: refs/heads/master@{#334292}

Patch Set 1 #

Total comments: 2

Patch Set 2 : rename |served_cert| to |unverified_cert| #

Patch Set 3 : remove temp file #

Patch Set 4 : update HttpResponseInfo::ssl_info comment #

Total comments: 4

Patch Set 5 : rsleevi nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -40 lines) Patch
M net/http/http_response_info.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M net/socket/socket_test_util.h View 1 chunk +0 lines, -4 lines 0 comments Download
M net/socket/socket_test_util.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M net/socket/ssl_client_socket.h View 1 chunk +0 lines, -7 lines 0 comments Download
M net/socket/ssl_client_socket_nss.h View 1 chunk +0 lines, -5 lines 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 2 chunks +1 line, -5 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.h View 1 chunk +0 lines, -5 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 2 chunks +1 line, -5 lines 0 comments Download
M net/socket/ssl_client_socket_unittest.cc View 1 2 3 4 3 chunks +21 lines, -2 lines 0 comments Download
M net/ssl/ssl_info.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
estark
5 years, 6 months ago (2015-06-10 18:59:43 UTC) #2
estark
[Hit Enter too soon.] davidben, could you please take a look? I decide to add ...
5 years, 6 months ago (2015-06-10 19:01:06 UTC) #3
estark
CCing rsleevi: FYI, feel free to review if you'd like
5 years, 6 months ago (2015-06-12 00:16:53 UTC) #4
davidben
Looks good but for a naming quibble. (Ryan, do you have strong opinions? I basically ...
5 years, 6 months ago (2015-06-12 19:45:43 UTC) #5
estark
Thanks David. https://codereview.chromium.org/1174073003/diff/1/net/socket/ssl_client_socket_unittest.cc File net/socket/ssl_client_socket_unittest.cc (right): https://codereview.chromium.org/1174073003/diff/1/net/socket/ssl_client_socket_unittest.cc#newcode2427 net/socket/ssl_client_socket_unittest.cc:2427: scoped_refptr<X509Certificate> server_certificate = ssl_info.served_cert; On 2015/06/12 19:45:42, ...
5 years, 6 months ago (2015-06-12 20:29:11 UTC) #6
davidben
lgtm, thanks! It might be worth adjusting HttpResponseInfo::ssl_info's comment to say something like: // The ...
5 years, 6 months ago (2015-06-12 20:37:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1174073003/60001
5 years, 6 months ago (2015-06-12 20:43:14 UTC) #10
Ryan Sleevi
Just nits, nothing to worry about https://codereview.chromium.org/1174073003/diff/60001/net/socket/ssl_client_socket_unittest.cc File net/socket/ssl_client_socket_unittest.cc (right): https://codereview.chromium.org/1174073003/diff/60001/net/socket/ssl_client_socket_unittest.cc#newcode2426 net/socket/ssl_client_socket_unittest.cc:2426: sock->GetSSLInfo(&ssl_info); Hrm. This ...
5 years, 6 months ago (2015-06-12 21:14:06 UTC) #11
estark
Thanks Ryan. https://codereview.chromium.org/1174073003/diff/60001/net/socket/ssl_client_socket_unittest.cc File net/socket/ssl_client_socket_unittest.cc (right): https://codereview.chromium.org/1174073003/diff/60001/net/socket/ssl_client_socket_unittest.cc#newcode2426 net/socket/ssl_client_socket_unittest.cc:2426: sock->GetSSLInfo(&ssl_info); On 2015/06/12 21:14:06, Ryan Sleevi wrote: ...
5 years, 6 months ago (2015-06-12 21:20:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1174073003/80001
5 years, 6 months ago (2015-06-12 21:22:10 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_TIMED_OUT, no build URL)
5 years, 6 months ago (2015-06-12 23:25:50 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1174073003/80001
5 years, 6 months ago (2015-06-12 23:28:03 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 6 months ago (2015-06-13 00:11:40 UTC) #21
commit-bot: I haz the power
5 years, 6 months ago (2015-06-13 00:13:29 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/03d644fe40b663dd42397649848484e87062afd6
Cr-Commit-Position: refs/heads/master@{#334292}

Powered by Google App Engine
This is Rietveld 408576698