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

Issue 166063003: Check configuration for L2TP/IPsec+certificate VPN network with UIData. (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

Check configuration for L2TP/IPsec+certificate VPN network with UIData. In the LT2P/IPsec + user certificate VPN flow, if the UIData does not contain any certificate properties, it is possible that the certificate properties are still configured by shill (e.g. the properties were previously configured and saved in the shill profile). However, client_cert::IsCertificateConfigured() did not take that into account, which caused NetworkConnectionHandler::VerifyConfiguredAndConnect() to always throw a 'configuration required' error and the VPN configuration dialog to pop up even when all the credentials information was available. Also, VPNRequiresCredentials didn't check the from the Provider.PassphraseRequired property to see if shill expects a user passphrase for the VPN connection. This CL fixes these issues. BUG=307665 TEST=Verified the following scenarios: 1. Add a 'L2TP/IPsec + user certificate' VPN with 'Save identity and password' unchecked. Connect to the VPN once and then reboot the system. 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=251410

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -4 lines) Patch
M chromeos/network/client_cert_util.cc View 1 1 chunk +9 lines, -3 lines 0 comments Download
M chromeos/network/network_connection_handler.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Ben Chan
6 years, 10 months ago (2014-02-14 16:42:32 UTC) #1
stevenjb
This lgtm, but pneubeck@ should take a look too. https://codereview.chromium.org/166063003/diff/1/chromeos/network/client_cert_util.cc File chromeos/network/client_cert_util.cc (right): https://codereview.chromium.org/166063003/diff/1/chromeos/network/client_cert_util.cc#newcode262 chromeos/network/client_cert_util.cc:262: ...
6 years, 10 months ago (2014-02-14 16:44:12 UTC) #2
Ben Chan
6 years, 10 months ago (2014-02-14 16:45:35 UTC) #3
pneubeck (no reviews)
lgtm. and this shows again, that we need unit tests for this. please try to ...
6 years, 10 months ago (2014-02-14 16:58:44 UTC) #4
stevenjb
Additional change lgtm
6 years, 10 months ago (2014-02-14 19:06:17 UTC) #5
Ben Chan
6 years, 10 months ago (2014-02-14 20:24:53 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as r251410 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698