Skip to content

Commit

Permalink
Set kL2tpIpsecCaCertPemProperty as List
Browse files Browse the repository at this point in the history
BUG=266032

Review URL: https://chromiumcodereview.appspot.com/23346004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218872 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
stevenjb@chromium.org committed Aug 22, 2013
1 parent ad1c3bd commit e650356
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions chrome/browser/chromeos/options/vpn_config_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -824,8 +824,10 @@ void VPNConfigView::SetConfigProperties(
case PROVIDER_TYPE_INDEX_L2TP_IPSEC_USER_CERT: {
std::string ca_cert_pem = GetServerCACertPEM();
if (!ca_cert_pem.empty()) {
properties->SetStringWithoutPathExpansion(
shill::kL2tpIpsecCaCertPemProperty, ca_cert_pem);
base::ListValue* pem_list = new base::ListValue;
pem_list->AppendString(ca_cert_pem);
properties->SetWithoutPathExpansion(
shill::kL2tpIpsecCaCertPemProperty, pem_list);
}
properties->SetStringWithoutPathExpansion(
flimflam::kL2tpIpsecClientCertIdProperty, GetUserCertID());
Expand All @@ -847,7 +849,7 @@ void VPNConfigView::SetConfigProperties(
std::string ca_cert_pem = GetServerCACertPEM();
if (!ca_cert_pem.empty()) {
base::ListValue* pem_list = new base::ListValue;
pem_list->AppendString(GetServerCACertPEM());
pem_list->AppendString(ca_cert_pem);
properties->SetWithoutPathExpansion(
shill::kOpenVPNCaCertPemProperty, pem_list);
}
Expand Down
2 changes: 1 addition & 1 deletion chromeos/network/network_connection_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ bool VPNIsConfigured(const std::string& service_path,
provider_properties.GetBooleanWithoutPathExpansion(
flimflam::kL2tpIpsecPskRequiredProperty, &passphrase_required);
if (passphrase_required) {
NET_LOG_EVENT("VPN: Passphrase Required", service_path);
NET_LOG_EVENT("VPN: PSK Required", service_path);
return false;
}
NET_LOG_EVENT("VPN Is Configured", service_path);
Expand Down

0 comments on commit e650356

Please sign in to comment.