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

Issue 792353002: Refactoring of Cast-related crypto code (Closed)

Created:
6 years ago by sheretov
Modified:
5 years, 11 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactoring of Cast-related crypto code to use the same certificate validation logic in chrome.networkingPrivate API and Cast Channel authentication. Here's what's being done here: * Code from cast_auth_util_nss/openssl formed the basis a common Cast device validation component in /src/extensions/common/cast/cast_cert_validator*, and is now being extensively cleaned up in response to rsleevi's comments in this CL. * Both networking_private_crypto* and cast_auth_util* have been updated to use the new common code. * The current D-Bus-based implementation of VerifyDestination is going away per discussion with ChromeOS team, and is replaced with in-Chrome code in networking_private crypto*. BUG=442650 Committed: https://crrev.com/ed1e90f4f980709cef6a8a9c7e0f64cfe5578cdd Cr-Commit-Position: refs/heads/master@{#311460}

Patch Set 1 #

Patch Set 2 #

Patch Set 3 : build fixes #

Patch Set 4 : added missing file #

Patch Set 5 : Added ICA unit test #

Total comments: 4

Patch Set 6 : s/NetworkingPrivateCredentialsGetterCrOs/NetworkingPrivateCredentialsGetterChromeos/g #

Total comments: 66

Patch Set 7 : Cleanup of cert_cert_validator in response to rsleevi's comments #

Patch Set 8 : Fixed ChromeOS unit tests. #

Total comments: 12

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #2 #

Patch Set 11 : Fixing a rebase merge issue #

Patch Set 12 : Fixes in response to comments by mfoltz #

Total comments: 10

Patch Set 13 : Styling fixes #

Patch Set 14 : Style fix #

Patch Set 15 : Re-uploading after a crashed "git cl upload" #

Total comments: 2

Patch Set 16 : Fixed a rebase/merge error in extensions.gyp #

Total comments: 4

Patch Set 17 : Switched VerificationResult to use delegated constructors. #

Total comments: 1

Patch Set 18 : rebase #

Patch Set 19 : fixed typo from https://codereview.chromium.org/747223002 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+798 lines, -737 lines) Patch
M chrome/browser/extensions/api/networking_private/crypto_verify_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/crypto_verify_impl.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +43 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/networking_private/networking_private_credentials_getter_chromeos.cc View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
D chrome/browser/extensions/api/networking_private/networking_private_verify_delegate_chromeos.h View 1 chunk +0 lines, -38 lines 0 comments Download
D chrome/browser/extensions/api/networking_private/networking_private_verify_delegate_chromeos.cc View 1 chunk +0 lines, -114 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_verify_delegate_factory_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +1 line, -7 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +16 lines, -17 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +11 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/networking_private.json View 1 2 3 4 5 6 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/networking_private/networking_private_crypto.h View 2 chunks +6 lines, -10 lines 0 comments Download
M chrome/common/extensions/api/networking_private/networking_private_crypto.cc View 1 2 3 4 5 6 1 chunk +75 lines, -26 lines 0 comments Download
M chrome/common/extensions/api/networking_private/networking_private_crypto_nss.cc View 1 chunk +0 lines, -88 lines 0 comments Download
M chrome/common/extensions/api/networking_private/networking_private_crypto_openssl.cc View 3 chunks +0 lines, -103 lines 0 comments Download
M chrome/common/extensions/api/networking_private/networking_private_crypto_unittest.cc View 1 2 3 4 2 chunks +46 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/networking/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/networking_private/test.js View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -6 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +57 lines, -0 lines 0 comments Download
D extensions/browser/api/cast_channel/cast_auth_util_nss.cc View 1 chunk +0 lines, -142 lines 0 comments Download
D extensions/browser/api/cast_channel/cast_auth_util_openssl.cc View 1 chunk +0 lines, -144 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_util_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M extensions/common/BUILD.gn View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -0 lines 0 comments Download
A extensions/common/cast/cast_cert_validator.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +96 lines, -0 lines 0 comments Download
A extensions/common/cast/cast_cert_validator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +30 lines, -0 lines 0 comments Download
A extensions/common/cast/cast_cert_validator_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +155 lines, -0 lines 0 comments Download
A extensions/common/cast/cast_cert_validator_openssl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +158 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +27 lines, -26 lines 0 comments Download

Messages

Total messages: 44 (16 generated)
sheretov
Please take a look at this CL, implementing cast crypto refactoring we discussed a few ...
6 years ago (2014-12-12 22:08:50 UTC) #2
stevenjb
The structural changes look mostly fine to me, but I'm not familiar enough with the ...
6 years ago (2014-12-15 17:35:03 UTC) #4
sheretov
+vadimgo https://codereview.chromium.org/792353002/diff/80001/chrome/browser/extensions/api/networking_private/networking_private_credentials_getter_chromeos.cc File chrome/browser/extensions/api/networking_private/networking_private_credentials_getter_chromeos.cc (right): https://codereview.chromium.org/792353002/diff/80001/chrome/browser/extensions/api/networking_private/networking_private_credentials_getter_chromeos.cc#newcode11 chrome/browser/extensions/api/networking_private/networking_private_credentials_getter_chromeos.cc:11: class NetworkingPrivateCredentialsGetterCrOs On 2014/12/15 17:35:03, stevenjb wrote: > ...
6 years ago (2014-12-15 20:42:29 UTC) #6
Ryan Sleevi
Add a bug # :)
6 years ago (2014-12-15 21:15:35 UTC) #7
Ryan Sleevi
You need to significantly expand upon your commit message. It should have: A brief (ideally ...
6 years ago (2014-12-15 21:43:01 UTC) #8
sheretov
Cleanup of cert_cert_validator in response to rsleevi's comments. vadimgo, you might want to take a ...
6 years ago (2014-12-16 08:44:22 UTC) #10
mark a. foltz
I don't follow the relationship of the new code in this patch to the existing ...
6 years ago (2014-12-18 00:43:42 UTC) #12
sheretov
Updated the CL with changes in response to Mark's comments. A bit of info on ...
5 years, 11 months ago (2015-01-03 03:18:02 UTC) #13
mef
https://codereview.chromium.org/792353002/diff/220001/chrome/browser/extensions/api/networking_private/networking_private_verify_delegate_factory_impl.cc File chrome/browser/extensions/api/networking_private/networking_private_verify_delegate_factory_impl.cc (right): https://codereview.chromium.org/792353002/diff/220001/chrome/browser/extensions/api/networking_private/networking_private_verify_delegate_factory_impl.cc#newcode21 chrome/browser/extensions/api/networking_private/networking_private_verify_delegate_factory_impl.cc:21: #if defined(OS_CHROMEOS) || defined(OS_WIN) || defined(OSMACOSX) I think stevenjb@ ...
5 years, 11 months ago (2015-01-05 17:24:09 UTC) #14
sheretov
Styling fixes https://codereview.chromium.org/792353002/diff/220001/chrome/browser/extensions/api/networking_private/networking_private_verify_delegate_factory_impl.cc File chrome/browser/extensions/api/networking_private/networking_private_verify_delegate_factory_impl.cc (right): https://codereview.chromium.org/792353002/diff/220001/chrome/browser/extensions/api/networking_private/networking_private_verify_delegate_factory_impl.cc#newcode21 chrome/browser/extensions/api/networking_private/networking_private_verify_delegate_factory_impl.cc:21: #if defined(OS_CHROMEOS) || defined(OS_WIN) || defined(OSMACOSX) On ...
5 years, 11 months ago (2015-01-05 22:43:03 UTC) #15
stevenjb
c/b/e/api/networking_private lgtm
5 years, 11 months ago (2015-01-05 22:53:21 UTC) #16
Ken Rockot(use gerrit already)
https://codereview.chromium.org/792353002/diff/280001/extensions/extensions.gyp File extensions/extensions.gyp (right): https://codereview.chromium.org/792353002/diff/280001/extensions/extensions.gyp#newcode313 extensions/extensions.gyp:313: 'browser/api/audio/audio_service.cc', It looks like you're introducing a dependency on ...
5 years, 11 months ago (2015-01-05 23:16:07 UTC) #17
sheretov
Fixed a rebase/merge error in extensions.gyp https://codereview.chromium.org/792353002/diff/280001/extensions/extensions.gyp File extensions/extensions.gyp (right): https://codereview.chromium.org/792353002/diff/280001/extensions/extensions.gyp#newcode313 extensions/extensions.gyp:313: 'browser/api/audio/audio_service.cc', On 2015/01/05 ...
5 years, 11 months ago (2015-01-06 00:33:30 UTC) #19
Ken Rockot(use gerrit already)
thanks. general extensions lgtm
5 years, 11 months ago (2015-01-06 04:06:56 UTC) #20
mef
https://codereview.chromium.org/792353002/diff/290001/extensions/common/cast/cast_cert_validator.cc File extensions/common/cast/cast_cert_validator.cc (right): https://codereview.chromium.org/792353002/diff/290001/extensions/common/cast/cast_cert_validator.cc#newcode17 extensions/common/cast/cast_cert_validator.cc:17: : error_type(in_error_type), error_message(in_error_message) { missing error_code initializer. https://codereview.chromium.org/792353002/diff/290001/extensions/common/cast/cast_cert_validator.h File ...
5 years, 11 months ago (2015-01-06 20:57:34 UTC) #21
sheretov
Switched VerificationResult to use delegated constructors.
5 years, 11 months ago (2015-01-06 22:26:55 UTC) #22
sheretov
https://codereview.chromium.org/792353002/diff/290001/extensions/common/cast/cast_cert_validator.cc File extensions/common/cast/cast_cert_validator.cc (right): https://codereview.chromium.org/792353002/diff/290001/extensions/common/cast/cast_cert_validator.cc#newcode17 extensions/common/cast/cast_cert_validator.cc:17: : error_type(in_error_type), error_message(in_error_message) { On 2015/01/06 20:57:34, mef wrote: ...
5 years, 11 months ago (2015-01-06 22:29:31 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/792353002/310001
5 years, 11 months ago (2015-01-08 23:17:18 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/34273)
5 years, 11 months ago (2015-01-08 23:27:48 UTC) #28
sheretov
brettw, please review changes to chrome/common/BUILD.gn
5 years, 11 months ago (2015-01-09 00:17:26 UTC) #31
brettw
lgtm
5 years, 11 months ago (2015-01-09 06:41:49 UTC) #34
mark a. foltz
lgtm https://codereview.chromium.org/792353002/diff/310001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/792353002/diff/310001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode153 extensions/browser/api/cast_channel/cast_auth_util.cc:153: std::vector<std::string>(response.intermediate_certificate().begin(), Is it necessary to duplicate all intermediate_certificate ...
5 years, 11 months ago (2015-01-13 21:27:46 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/792353002/310001
5 years, 11 months ago (2015-01-14 10:17:09 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/35891) ios_rel_device_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ng/builds/968) ios_rel_device_ninja_ng ...
5 years, 11 months ago (2015-01-14 10:20:39 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/792353002/350001
5 years, 11 months ago (2015-01-14 11:08:58 UTC) #41
commit-bot: I haz the power
Committed patchset #19 (id:350001)
5 years, 11 months ago (2015-01-14 12:10:07 UTC) #42
commit-bot: I haz the power
Patchset 19 (id:??) landed as https://crrev.com/ed1e90f4f980709cef6a8a9c7e0f64cfe5578cdd Cr-Commit-Position: refs/heads/master@{#311460}
5 years, 11 months ago (2015-01-14 12:11:23 UTC) #43
jochen (gone - plz use gerrit)
5 years, 11 months ago (2015-01-14 12:25:47 UTC) #44
Message was sent while issue was closed.
A revert of this CL (patchset #19 id:350001) has been created in
https://codereview.chromium.org/853663003/ by jochen@chromium.org.

The reason for reverting is: fails to compile on Linux ChromiumOS GN
https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%....

Powered by Google App Engine
This is Rietveld 408576698