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

Issue 61903002: ChromeOS: Add more host verification options for OpenVpn. (Closed)

Created:
7 years, 1 month ago by pneubeck (no reviews)
Modified:
7 years, 1 month ago
CC:
chromium-reviews, gauravsh+watch_chromium.org, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Visibility:
Public.

Description

ChromeOS: Add more host verification options for OpenVpn. Support the --verify-hash and --verify-x509-name options of OpenVPN via ONC. Note that the ONC validator restricts the possible types passable to --verify-x509-name to "name", "name-prefix" and "subject". See also https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage . BUG=276291 R=armansito@chromium.org, bartfab@chromium.org, pstew@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234495

Patch Set 1 : #

Total comments: 13

Patch Set 2 : Made 'type' optional. More tests. #

Total comments: 2

Patch Set 3 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -27 lines) Patch
M chromeos/network/onc/onc_signature.h View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/onc/onc_signature.cc View 1 2 chunks +10 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_translation_tables.cc View 2 chunks +9 lines, -1 line 0 comments Download
M chromeos/network/onc/onc_translator_shill_to_onc.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_validator.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_validator.cc View 1 2 2 chunks +17 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_validator_unittest.cc View 1 3 chunks +11 lines, -1 line 0 comments Download
M chromeos/test/data/network/invalid_settings_with_repairs.json View 1 1 chunk +30 lines, -0 lines 0 comments Download
M chromeos/test/data/network/shill_openvpn.json View 1 1 chunk +30 lines, -24 lines 0 comments Download
M chromeos/test/data/network/translation_of_shill_openvpn.onc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/test/data/network/valid_openvpn_with_cert_pems.onc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M components/onc/docs/onc_spec.html View 1 1 chunk +44 lines, -1 line 0 comments Download
M components/onc/onc_constants.h View 1 chunk +13 lines, -0 lines 0 comments Download
M components/onc/onc_constants.cc View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
pneubeck (no reviews)
@Bartosz, please review. @David, FYI and please check the onc_spec.html . @Paul, please take a ...
7 years, 1 month ago (2013-11-06 13:20:28 UTC) #1
Paul Stewart
onc_translation_tables.cc LGTM (mapping to Shill constants).. The shill_openvpn.json looks plausible, I suppose, but that's more ...
7 years, 1 month ago (2013-11-06 14:22:20 UTC) #2
pneubeck (no reviews)
https://codereview.chromium.org/61903002/diff/30001/components/onc/docs/onc_spec.html File components/onc/docs/onc_spec.html (right): https://codereview.chromium.org/61903002/diff/30001/components/onc/docs/onc_spec.html#newcode1234 components/onc/docs/onc_spec.html:1234: (required) On 2013/11/06 14:22:20, Paul Stewart wrote: > The ...
7 years, 1 month ago (2013-11-06 14:50:41 UTC) #3
Paul Stewart
https://codereview.chromium.org/61903002/diff/30001/components/onc/docs/onc_spec.html File components/onc/docs/onc_spec.html (right): https://codereview.chromium.org/61903002/diff/30001/components/onc/docs/onc_spec.html#newcode1234 components/onc/docs/onc_spec.html:1234: (required) On 2013/11/06 14:50:42, pneubeck wrote: > On 2013/11/06 ...
7 years, 1 month ago (2013-11-06 15:55:38 UTC) #4
bartfab (slow)
Given my limited understanding of ONC and its implementation in Chrome, LGTM. It would be ...
7 years, 1 month ago (2013-11-07 10:48:55 UTC) #5
pneubeck (no reviews)
https://codereview.chromium.org/61903002/diff/30001/chromeos/network/onc/onc_signature.cc File chromeos/network/onc/onc_signature.cc (right): https://codereview.chromium.org/61903002/diff/30001/chromeos/network/onc/onc_signature.cc#newcode135 chromeos/network/onc/onc_signature.cc:135: { ::onc::verify_x509::kType, &kStringSignature}, {NULL}}; On 2013/11/07 10:48:56, bartfab wrote: ...
7 years, 1 month ago (2013-11-11 11:53:43 UTC) #6
pneubeck (no reviews)
@Arman, since you looked into the ONC code before, please take a look. Thanks!
7 years, 1 month ago (2013-11-11 11:58:05 UTC) #7
armansito
lgtm with one nit. https://codereview.chromium.org/61903002/diff/150001/chromeos/network/onc/onc_validator.cc File chromeos/network/onc/onc_validator.cc (right): https://codereview.chromium.org/61903002/diff/150001/chromeos/network/onc/onc_validator.cc#newcode687 chromeos/network/onc/onc_validator.cc:687: bool allRequiredExist = RequireField(*result, kName); ...
7 years, 1 month ago (2013-11-11 20:01:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/61903002/150001
7 years, 1 month ago (2013-11-11 20:42:07 UTC) #9
pneubeck (no reviews)
https://codereview.chromium.org/61903002/diff/150001/chromeos/network/onc/onc_validator.cc File chromeos/network/onc/onc_validator.cc (right): https://codereview.chromium.org/61903002/diff/150001/chromeos/network/onc/onc_validator.cc#newcode687 chromeos/network/onc/onc_validator.cc:687: bool allRequiredExist = RequireField(*result, kName); On 2013/11/11 20:01:41, armansito ...
7 years, 1 month ago (2013-11-12 13:11:04 UTC) #10
pneubeck (no reviews)
7 years, 1 month ago (2013-11-12 13:19:20 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 manually as r234495 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698