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

Unified Diff: chromeos/network/onc/onc_translator_shill_to_onc.cc

Issue 539573002: Elim 'Translated' from Managed ONC dictionary (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix proxy settings Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {
« no previous file with comments | « chromeos/network/onc/onc_translation_tables.cc ('k') | chromeos/test/data/network/translation_of_shill_l2tpipsec.onc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698