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

Issue 161083005: Skip checking certificate properties for L2TP/IPsec VPN using pre-shared key. (Closed)

Created:
6 years, 10 months ago by Ben Chan
Modified:
6 years, 10 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Skip checking certificate properties for L2TP/IPsec VPN using pre-shared key. NetworkConnectionHandler::VerifyConfiguredAndConnect() did not differentiate between the pre-shared key and certificate flow when verifying the certificate properties of a L2TP/IPsec VPN connection request. It always threw a 'configuration required' error and caused the VPN configuration dialog to pop up even when all the credentials information was available. This CL fixes this issue. BUG=307665 TEST=Verified the following scenarios: 1. Add a 'L2TP/IPsec + pre-shared key' VPN with 'Save identity and password' unchecked. Connect to the VPN and then disconnect. Reconnect to the VPN and verify that it prompts for credentials. 2. Repeat 1 but with 'Save identity and password' checked and verify that it reconnects without prompting for credentials. R=pneubeck@chromium.org, stevenjb@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251193

Patch Set 1 : #

Total comments: 3

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -6 lines) Patch
M chromeos/network/network_connection_handler.cc View 1 2 5 chunks +27 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Ben Chan
6 years, 10 months ago (2014-02-12 23:58:41 UTC) #1
stevenjb
+pneubeck@, but this lgtm w/nit. Thanks for investigating and fixing this! https://codereview.chromium.org/161083005/diff/1/chromeos/network/network_connection_handler.cc File chromeos/network/network_connection_handler.cc (right): ...
6 years, 10 months ago (2014-02-13 00:04:30 UTC) #2
Ben Chan
On 2014/02/13 00:04:30, stevenjb wrote: > +pneubeck@, but this lgtm w/nit. Thanks for investigating and ...
6 years, 10 months ago (2014-02-13 00:13:02 UTC) #3
Ben Chan
The CQ bit was checked by benchan@chromium.org
6 years, 10 months ago (2014-02-13 00:16:08 UTC) #4
Ben Chan
The CQ bit was unchecked by benchan@chromium.org
6 years, 10 months ago (2014-02-13 00:16:11 UTC) #5
pneubeck (no reviews)
https://codereview.chromium.org/161083005/diff/250001/chromeos/network/network_connection_handler.cc File chromeos/network/network_connection_handler.cc (right): https://codereview.chromium.org/161083005/diff/250001/chromeos/network/network_connection_handler.cc#newcode400 chromeos/network/network_connection_handler.cc:400: else if (!vpn_client_cert_id.empty()) { please ignore if my reasoning ...
6 years, 10 months ago (2014-02-13 09:53:06 UTC) #6
pneubeck (no reviews)
https://codereview.chromium.org/161083005/diff/250001/chromeos/network/network_connection_handler.cc File chromeos/network/network_connection_handler.cc (right): https://codereview.chromium.org/161083005/diff/250001/chromeos/network/network_connection_handler.cc#newcode400 chromeos/network/network_connection_handler.cc:400: else if (!vpn_client_cert_id.empty()) { please ignore if my reasoning ...
6 years, 10 months ago (2014-02-13 09:53:06 UTC) #7
Ben Chan
https://codereview.chromium.org/161083005/diff/250001/chromeos/network/network_connection_handler.cc File chromeos/network/network_connection_handler.cc (right): https://codereview.chromium.org/161083005/diff/250001/chromeos/network/network_connection_handler.cc#newcode400 chromeos/network/network_connection_handler.cc:400: else if (!vpn_client_cert_id.empty()) { On 2014/02/13 09:53:07, pneubeck wrote: ...
6 years, 10 months ago (2014-02-13 16:36:12 UTC) #8
pneubeck (no reviews)
lgtm. Please consider adding a unit test if feasible.
6 years, 10 months ago (2014-02-13 20:14:42 UTC) #9
stevenjb
lgtm w/ nit https://codereview.chromium.org/161083005/diff/360001/chromeos/network/network_connection_handler.cc File chromeos/network/network_connection_handler.cc (right): https://codereview.chromium.org/161083005/diff/360001/chromeos/network/network_connection_handler.cc#newcode399 chromeos/network/network_connection_handler.cc:399: ui_data && (ui_data->certificate_type() != CLIENT_CERT_TYPE_NONE); It ...
6 years, 10 months ago (2014-02-13 21:15:33 UTC) #10
Ben Chan
https://codereview.chromium.org/161083005/diff/360001/chromeos/network/network_connection_handler.cc File chromeos/network/network_connection_handler.cc (right): https://codereview.chromium.org/161083005/diff/360001/chromeos/network/network_connection_handler.cc#newcode399 chromeos/network/network_connection_handler.cc:399: ui_data && (ui_data->certificate_type() != CLIENT_CERT_TYPE_NONE); On 2014/02/13 21:15:33, stevenjb ...
6 years, 10 months ago (2014-02-13 21:30:58 UTC) #11
Ben Chan
6 years, 10 months ago (2014-02-13 23:55:57 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 manually as r251193 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698