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

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

Issue 11664005: Extending the translation from ONC to Shill. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased. Created 7 years, 11 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
« no previous file with comments | « chromeos/network/onc/onc_translation_tables.h ('k') | chromeos/network/onc/onc_translator_onc_to_shill.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/onc/onc_translation_tables.cc
diff --git a/chromeos/network/onc/onc_translation_tables.cc b/chromeos/network/onc/onc_translation_tables.cc
index abe978f5b819a1a33dca7dd29289b2175aea98bc..6dc4a8fb2fce344140b38a82a90a4d62f9b0fc37 100644
--- a/chromeos/network/onc/onc_translation_tables.cc
+++ b/chromeos/network/onc/onc_translation_tables.cc
@@ -26,5 +26,37 @@ const StringTranslationEntry kVPNTypeTable[] = {
{ NULL }
};
+const StringTranslationEntry kWiFiSecurityTable[] = {
+ { wifi::kNone, flimflam::kSecurityNone },
+ { wifi::kWEP_PSK, flimflam::kSecurityWep },
+ { wifi::kWPA_PSK, flimflam::kSecurityPsk },
+ { wifi::kWPA_EAP, flimflam::kSecurity8021x },
+ { NULL }
+};
+
+const StringTranslationEntry kEAPOuterTable[] = {
+ { eap::kPEAP, flimflam::kEapMethodPEAP },
+ { eap::kEAP_TLS, flimflam::kEapMethodTLS },
+ { eap::kEAP_TTLS, flimflam::kEapMethodTTLS },
+ { eap::kLEAP, flimflam::kEapMethodLEAP },
+ { NULL }
+};
+
+// Translation of the EAP.Inner field in case of EAP.Outer == PEAP
+const StringTranslationEntry kEAP_PEAP_InnerTable[] = {
+ { eap::kMD5, flimflam::kEapPhase2AuthPEAPMD5 },
+ { eap::kMSCHAPv2, flimflam::kEapPhase2AuthPEAPMSCHAPV2 },
+ { NULL }
+};
+
+// Translation of the EAP.Inner field in case of EAP.Outer == TTLS
+const StringTranslationEntry kEAP_TTLS_InnerTable[] = {
+ { eap::kMD5, flimflam::kEapPhase2AuthTTLSMD5 },
+ { eap::kMSCHAPv2, flimflam::kEapPhase2AuthTTLSMSCHAPV2 },
+ { eap::kPAP, flimflam::kEapPhase2AuthTTLSPAP },
+ { NULL }
+};
+
+
} // namespace onc
} // namespace chromeos
« no previous file with comments | « chromeos/network/onc/onc_translation_tables.h ('k') | chromeos/network/onc/onc_translator_onc_to_shill.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698