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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/network/onc/onc_translation_tables.h" 5 #include "chromeos/network/onc/onc_translation_tables.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "chromeos/network/onc/onc_constants.h" 9 #include "chromeos/network/onc/onc_constants.h"
10 #include "third_party/cros_system_api/dbus/service_constants.h" 10 #include "third_party/cros_system_api/dbus/service_constants.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 namespace onc { 13 namespace onc {
14 14
15 const StringTranslationEntry kNetworkTypeTable[] = { 15 const StringTranslationEntry kNetworkTypeTable[] = {
16 { kEthernet, flimflam::kTypeEthernet }, 16 { kEthernet, flimflam::kTypeEthernet },
17 { kWiFi, flimflam::kTypeWifi }, 17 { kWiFi, flimflam::kTypeWifi },
18 { kCellular, flimflam::kTypeCellular }, 18 { kCellular, flimflam::kTypeCellular },
19 { kVPN, flimflam::kTypeVPN }, 19 { kVPN, flimflam::kTypeVPN },
20 { NULL } 20 { NULL }
21 }; 21 };
22 22
23 const StringTranslationEntry kVPNTypeTable[] = { 23 const StringTranslationEntry kVPNTypeTable[] = {
24 { vpn::kTypeL2TP_IPsec, flimflam::kProviderL2tpIpsec }, 24 { vpn::kTypeL2TP_IPsec, flimflam::kProviderL2tpIpsec },
25 { vpn::kOpenVPN, flimflam::kProviderOpenVpn }, 25 { vpn::kOpenVPN, flimflam::kProviderOpenVpn },
26 { NULL } 26 { NULL }
27 }; 27 };
28 28
29 const StringTranslationEntry kWiFiSecurityTable[] = {
30 { wifi::kNone, flimflam::kSecurityNone },
31 { wifi::kWEP_PSK, flimflam::kSecurityWep },
32 { wifi::kWPA_PSK, flimflam::kSecurityPsk },
33 { wifi::kWPA_EAP, flimflam::kSecurity8021x },
34 { NULL }
35 };
36
37 const StringTranslationEntry kEAPOuterTable[] = {
38 { eap::kPEAP, flimflam::kEapMethodPEAP },
39 { eap::kEAP_TLS, flimflam::kEapMethodTLS },
40 { eap::kEAP_TTLS, flimflam::kEapMethodTTLS },
41 { eap::kLEAP, flimflam::kEapMethodLEAP },
42 { NULL }
43 };
44
45 // Translation of the EAP.Inner field in case of EAP.Outer == PEAP
46 const StringTranslationEntry kEAP_PEAP_InnerTable[] = {
47 { eap::kMD5, flimflam::kEapPhase2AuthPEAPMD5 },
48 { eap::kMSCHAPv2, flimflam::kEapPhase2AuthPEAPMSCHAPV2 },
49 { NULL }
50 };
51
52 // Translation of the EAP.Inner field in case of EAP.Outer == TTLS
53 const StringTranslationEntry kEAP_TTLS_InnerTable[] = {
54 { eap::kMD5, flimflam::kEapPhase2AuthTTLSMD5 },
55 { eap::kMSCHAPv2, flimflam::kEapPhase2AuthTTLSMSCHAPV2 },
56 { eap::kPAP, flimflam::kEapPhase2AuthTTLSPAP },
57 { NULL }
58 };
59
60
29 } // namespace onc 61 } // namespace onc
30 } // namespace chromeos 62 } // namespace chromeos
OLDNEW
« 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