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

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

Issue 61903002: ChromeOS: Add more host verification options for OpenVpn. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 1 month 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
« no previous file with comments | « chromeos/network/onc/onc_translation_tables.cc ('k') | chromeos/network/onc/onc_validator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dbd5bcd31543c61f1e8e2dd62f5eecbdd47f35b2..1c1c2e8e26b2a48bbb12ebae111ddf183968b8b1 100644
--- a/chromeos/network/onc/onc_translator_shill_to_onc.cc
+++ b/chromeos/network/onc/onc_translator_shill_to_onc.cc
@@ -146,6 +146,9 @@ void ShillToONCTranslator::TranslateEthernet() {
}
void ShillToONCTranslator::TranslateOpenVPN() {
+ if (shill_dictionary_->HasKey(shill::kOpenVPNVerifyX509NameProperty))
+ TranslateAndAddNestedObject(::onc::openvpn::kVerifyX509);
+
// Shill supports only one RemoteCertKU but ONC requires a list. If existing,
// wraps the value into a list.
std::string certKU;
« no previous file with comments | « chromeos/network/onc/onc_translation_tables.cc ('k') | chromeos/network/onc/onc_validator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698