| 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 1b1ba7082c874bd936b9ed4f52b7b877c0eb319c..8caced4c4586a1a2fc9213a4e386928ef568fc9a 100644
|
| --- a/chromeos/network/onc/onc_translator_shill_to_onc.cc
|
| +++ b/chromeos/network/onc/onc_translator_shill_to_onc.cc
|
| @@ -240,6 +240,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() {
|
|
|