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

Issue 1313363003: Expose OpenSSL's key_exchange_info in the content API (Closed)

Created:
5 years, 3 months ago by sigbjorn
Modified:
5 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose OpenSSL's key_exchange_info in the content API The key_exchange_info contains information about the strength of the SSL key exchange. This information is useful for statistics, user information, and making trust decisions for connections. This commit makes the information available in the API. BUG=525957 Committed: https://crrev.com/79cf372726c52fd12a9009db8735b5098270b6c5 Cr-Commit-Position: refs/heads/master@{#349635}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Review fixups: Renumber enum, add tests #

Total comments: 22

Patch Set 3 : Review fixups: Test style, Pickle reordering, ECCurveName() style #

Total comments: 2

Patch Set 4 : Prperly initialize variable #

Total comments: 6

Patch Set 5 : Drop superfluous comment #

Total comments: 4

Patch Set 6 : Comment and DCHECK fixups #

Patch Set 7 : Rebase #

Patch Set 8 : Fix "unreachable code" warning #

Patch Set 9 : Proper #ifdef fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -68 lines) Patch
M content/browser/loader/resource_loader.cc View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M content/common/ssl_status_serialization.cc View 1 3 chunks +8 lines, -0 lines 0 comments Download
M content/common/ssl_status_serialization_unittest.cc View 1 2 2 chunks +65 lines, -65 lines 0 comments Download
M content/public/common/ssl_status.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/common/ssl_status.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M net/http/http_response_info.cc View 1 2 3 4 5 6 4 chunks +16 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M net/ssl/ssl_cipher_suite_names.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M net/ssl/ssl_cipher_suite_names.cc View 1 2 3 4 5 6 7 8 2 chunks +21 lines, -0 lines 0 comments Download
M net/ssl/ssl_info.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M net/ssl/ssl_info.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (13 generated)
sigbjorn
PTAL. Adds the API, but doesn't use it yet. Planned uses is in statistics (https://codereview.chromium.org/1312363004/ ...
5 years, 3 months ago (2015-08-26 15:23:14 UTC) #2
mmenke
https://codereview.chromium.org/1313363003/diff/1/net/ssl/ssl_info.h File net/ssl/ssl_info.h (right): https://codereview.chromium.org/1313363003/diff/1/net/ssl/ssl_info.h#newcode66 net/ssl/ssl_info.h:66: // A zero indicates that the value is unknown. ...
5 years, 3 months ago (2015-08-26 15:28:37 UTC) #3
sigbjorn
https://codereview.chromium.org/1313363003/diff/1/net/ssl/ssl_info.h File net/ssl/ssl_info.h (right): https://codereview.chromium.org/1313363003/diff/1/net/ssl/ssl_info.h#newcode66 net/ssl/ssl_info.h:66: // A zero indicates that the value is unknown. ...
5 years, 3 months ago (2015-08-26 15:46:15 UTC) #4
mmenke
On 2015/08/26 15:46:15, sigbjorn wrote: > https://codereview.chromium.org/1313363003/diff/1/net/ssl/ssl_info.h > File net/ssl/ssl_info.h (right): > > https://codereview.chromium.org/1313363003/diff/1/net/ssl/ssl_info.h#newcode66 > ...
5 years, 3 months ago (2015-08-26 15:48:55 UTC) #5
Ryan Sleevi
At the risk of a pile-on, adding David and Emily, since I believe this affects ...
5 years, 3 months ago (2015-08-26 16:01:19 UTC) #7
davidben
For Chrome, I think I'm much more interested in driving DHE out of the world ...
5 years, 3 months ago (2015-08-26 16:17:10 UTC) #8
estark
https://codereview.chromium.org/1313363003/diff/1/content/common/ssl_status_serialization.cc File content/common/ssl_status_serialization.cc (right): https://codereview.chromium.org/1313363003/diff/1/content/common/ssl_status_serialization.cc#newcode36 content/common/ssl_status_serialization.cc:36: pickle.WriteInt(ssl_status.key_exchange_info); Can you please update the tests in ssl_status_serialization_unittest.cc ...
5 years, 3 months ago (2015-08-26 17:46:42 UTC) #9
sigbjorn
On 2015/08/26 16:17:10, David Benjamin wrote: > On the ECDHE side, we don't advertise very ...
5 years, 3 months ago (2015-08-27 15:01:28 UTC) #10
Ryan Sleevi
Unrelated, belated email catchup: Can you make sure that changes have bugs :) Helps for ...
5 years, 3 months ago (2015-08-28 00:24:05 UTC) #11
Ryan Sleevi
show-stopper bug: This would break the cache. https://codereview.chromium.org/1313363003/diff/1/net/http/http_response_info.cc File net/http/http_response_info.cc (right): https://codereview.chromium.org/1313363003/diff/1/net/http/http_response_info.cc#newcode60 net/http/http_response_info.cc:60: RESPONSE_INFO_HAS_KEY_EXCHANGE_INFO = ...
5 years, 3 months ago (2015-08-28 00:25:04 UTC) #12
sigbjorn
https://codereview.chromium.org/1313363003/diff/1/content/common/ssl_status_serialization.cc File content/common/ssl_status_serialization.cc (right): https://codereview.chromium.org/1313363003/diff/1/content/common/ssl_status_serialization.cc#newcode36 content/common/ssl_status_serialization.cc:36: pickle.WriteInt(ssl_status.key_exchange_info); On 2015/08/26 17:46:41, estark wrote: > Can you ...
5 years, 3 months ago (2015-08-28 09:32:00 UTC) #13
sigbjorn
Ping David/Adam/Ryan. Still waiting for a conclusion if this is wanted in Chromium, or a ...
5 years, 3 months ago (2015-09-01 08:34:09 UTC) #14
agl
If Opera wishes to expose this information in the UI then I think it's reasonable ...
5 years, 3 months ago (2015-09-02 00:23:50 UTC) #15
Ryan Sleevi
Yeah, I think it's a reasonable request, but there's a number of BUGs here that ...
5 years, 3 months ago (2015-09-02 01:37:07 UTC) #16
sigbjorn
https://codereview.chromium.org/1313363003/diff/20001/content/common/ssl_status_serialization_unittest.cc File content/common/ssl_status_serialization_unittest.cc (right): https://codereview.chromium.org/1313363003/diff/20001/content/common/ssl_status_serialization_unittest.cc#newcode43 content/common/ssl_status_serialization_unittest.cc:43: SSLStatus status, deserialized; On 2015/09/02 01:37:07, Ryan Sleevi wrote: ...
5 years, 3 months ago (2015-09-02 13:42:15 UTC) #17
sigbjorn
Ryan, care to check the new code?
5 years, 3 months ago (2015-09-07 12:26:34 UTC) #18
Ryan Sleevi
Still one BUG hiding :) https://codereview.chromium.org/1313363003/diff/40001/content/public/common/ssl_status.h File content/public/common/ssl_status.h (right): https://codereview.chromium.org/1313363003/diff/40001/content/public/common/ssl_status.h#newcode50 content/public/common/ssl_status.h:50: int key_exchange_info; BUG: You ...
5 years, 3 months ago (2015-09-08 22:19:49 UTC) #19
sigbjorn
https://codereview.chromium.org/1313363003/diff/40001/content/public/common/ssl_status.h File content/public/common/ssl_status.h (right): https://codereview.chromium.org/1313363003/diff/40001/content/public/common/ssl_status.h#newcode50 content/public/common/ssl_status.h:50: int key_exchange_info; On 2015/09/08 22:19:49, Ryan Sleevi wrote: > ...
5 years, 3 months ago (2015-09-09 08:17:17 UTC) #20
sigbjorn
Are there any further issues blocking this?
5 years, 3 months ago (2015-09-15 08:17:09 UTC) #21
Ryan Sleevi
LGTM. Was just busy swamped with other things. https://codereview.chromium.org/1313363003/diff/60001/net/http/http_response_info.cc File net/http/http_response_info.cc (right): https://codereview.chromium.org/1313363003/diff/60001/net/http/http_response_info.cc#newcode284 net/http/http_response_info.cc:284: ssl_info.key_exchange_info ...
5 years, 3 months ago (2015-09-15 08:23:22 UTC) #22
sigbjorn
https://codereview.chromium.org/1313363003/diff/60001/net/http/http_response_info.cc File net/http/http_response_info.cc (right): https://codereview.chromium.org/1313363003/diff/60001/net/http/http_response_info.cc#newcode284 net/http/http_response_info.cc:284: ssl_info.key_exchange_info = key_exchange_info; On 2015/09/15 08:23:21, Ryan Sleevi wrote: ...
5 years, 3 months ago (2015-09-15 08:34:35 UTC) #23
davidben
lgtm from me as well, modulo a few nits, despite my very very strong anti-feature ...
5 years, 3 months ago (2015-09-15 14:33:17 UTC) #24
estark
https://codereview.chromium.org/1313363003/diff/60001/net/http/http_response_info.cc File net/http/http_response_info.cc (right): https://codereview.chromium.org/1313363003/diff/60001/net/http/http_response_info.cc#newcode284 net/http/http_response_info.cc:284: ssl_info.key_exchange_info = key_exchange_info; On 2015/09/15 08:34:35, sigbjorn wrote: > ...
5 years, 3 months ago (2015-09-15 14:37:49 UTC) #25
sigbjorn
https://codereview.chromium.org/1313363003/diff/60001/net/http/http_response_info.cc File net/http/http_response_info.cc (right): https://codereview.chromium.org/1313363003/diff/60001/net/http/http_response_info.cc#newcode284 net/http/http_response_info.cc:284: ssl_info.key_exchange_info = key_exchange_info; On 2015/09/15 14:37:49, estark wrote: > ...
5 years, 3 months ago (2015-09-15 15:10:56 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313363003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313363003/100001
5 years, 3 months ago (2015-09-16 07:40:21 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/69807) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 3 months ago (2015-09-16 07:41:51 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313363003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313363003/120001
5 years, 3 months ago (2015-09-16 11:24:08 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/41394)
5 years, 3 months ago (2015-09-16 11:55:02 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313363003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313363003/140001
5 years, 3 months ago (2015-09-17 16:40:03 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_android/builds/55461)
5 years, 3 months ago (2015-09-17 16:54:32 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313363003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313363003/160001
5 years, 3 months ago (2015-09-18 07:56:42 UTC) #44
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 3 months ago (2015-09-18 09:15:28 UTC) #45
commit-bot: I haz the power
5 years, 3 months ago (2015-09-18 09:16:11 UTC) #46
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/79cf372726c52fd12a9009db8735b5098270b6c5
Cr-Commit-Position: refs/heads/master@{#349635}

Powered by Google App Engine
This is Rietveld 408576698