| Index: chromeos/network/onc/onc_translator_shill_to_onc.cc
|
| diff --git a/chromeos/network/onc/onc_translator_shill_to_onc.cc b/chromeos/network/onc/onc_translator_shill_to_onc.cc
|
| index abe8468c25114f48506031ab571c4ea9eee5eebc..3abb44375c531743470b227a757659f8c48be251 100644
|
| --- a/chromeos/network/onc/onc_translator_shill_to_onc.cc
|
| +++ b/chromeos/network/onc/onc_translator_shill_to_onc.cc
|
| @@ -248,6 +248,13 @@ void ShillToONCTranslator::TranslateIPsec() {
|
| CopyPropertiesAccordingToSignature();
|
| if (shill_dictionary_->HasKey(shill::kL2tpIpsecXauthUserProperty))
|
| TranslateAndAddNestedObject(::onc::ipsec::kXAUTH);
|
| + std::string client_cert_id;
|
| + shill_dictionary_->GetStringWithoutPathExpansion(
|
| + shill::kL2tpIpsecClientCertIdProperty, &client_cert_id);
|
| + std::string authentication_type =
|
| + client_cert_id.empty() ? ::onc::ipsec::kPSK : ::onc::ipsec::kCert;
|
| + onc_object_->SetStringWithoutPathExpansion(::onc::ipsec::kAuthenticationType,
|
| + authentication_type);
|
| }
|
|
|
| void ShillToONCTranslator::TranslateVPN() {
|
|
|