OLD | NEW |
---|---|
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 "base/logging.h" | 9 #include "base/logging.h" |
10 #include "chromeos/network/network_type_pattern.h" | 10 #include "chromeos/network/network_type_pattern.h" |
11 #include "chromeos/network/tether_constants.h" | 11 #include "chromeos/network/tether_constants.h" |
12 #include "components/onc/onc_constants.h" | 12 #include "components/onc/onc_constants.h" |
13 #include "third_party/cros_system_api/dbus/service_constants.h" | 13 #include "third_party/cros_system_api/dbus/service_constants.h" |
14 | 14 |
15 namespace chromeos { | 15 namespace chromeos { |
16 namespace onc { | 16 namespace onc { |
17 | 17 |
18 // CertificatePattern is converted with function CreateUIData(...) to UIData | 18 // CertificatePattern is converted with function CreateUIData(...) to UIData |
19 // stored in Shill. | 19 // stored in Shill. |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 const FieldTranslationEntry eap_fields[] = { | 23 const FieldTranslationEntry eap_fields[] = { |
24 {::onc::eap::kAnonymousIdentity, shill::kEapAnonymousIdentityProperty}, | 24 {::onc::eap::kAnonymousIdentity, shill::kEapAnonymousIdentityProperty}, |
25 // This field are converted during translation, see onc_translator_*. | |
tbarzic
2017/05/23 18:01:58
s/are/is/
stevenjb
2017/05/25 00:01:11
Done.
| |
26 // { ::onc::eap::kClientCertPKCS11Id, shill::kEapCertIdProperty }, | |
25 {::onc::eap::kIdentity, shill::kEapIdentityProperty}, | 27 {::onc::eap::kIdentity, shill::kEapIdentityProperty}, |
26 // This field is converted during translation, see onc_translator_*. | 28 // This field is converted during translation, see onc_translator_*. |
27 // { ::onc::eap::kInner, shill::kEapPhase2AuthProperty }, | 29 // { ::onc::eap::kInner, shill::kEapPhase2AuthProperty }, |
28 | |
29 // This field is converted during translation, see onc_translator_*. | 30 // This field is converted during translation, see onc_translator_*. |
30 // { ::onc::eap::kOuter, shill::kEapMethodProperty }, | 31 // { ::onc::eap::kOuter, shill::kEapMethodProperty }, |
31 {::onc::eap::kPassword, shill::kEapPasswordProperty}, | 32 {::onc::eap::kPassword, shill::kEapPasswordProperty}, |
32 {::onc::eap::kSaveCredentials, shill::kSaveCredentialsProperty}, | 33 {::onc::eap::kSaveCredentials, shill::kSaveCredentialsProperty}, |
33 {::onc::eap::kServerCAPEMs, shill::kEapCaCertPemProperty}, | 34 {::onc::eap::kServerCAPEMs, shill::kEapCaCertPemProperty}, |
34 {::onc::eap::kSubjectMatch, shill::kEapSubjectMatchProperty}, | 35 {::onc::eap::kSubjectMatch, shill::kEapSubjectMatchProperty}, |
35 {::onc::eap::kUseSystemCAs, shill::kEapUseSystemCasProperty}, | 36 {::onc::eap::kUseSystemCAs, shill::kEapUseSystemCasProperty}, |
36 {::onc::eap::kUseProactiveKeyCaching, | 37 {::onc::eap::kUseProactiveKeyCaching, |
37 shill::kEapUseProactiveKeyCachingProperty}, | 38 shill::kEapUseProactiveKeyCachingProperty}, |
38 {NULL}}; | 39 {NULL}}; |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
453 continue; | 454 continue; |
454 *onc_value = table[i].onc_value; | 455 *onc_value = table[i].onc_value; |
455 return true; | 456 return true; |
456 } | 457 } |
457 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC"; | 458 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC"; |
458 return false; | 459 return false; |
459 } | 460 } |
460 | 461 |
461 } // namespace onc | 462 } // namespace onc |
462 } // namespace chromeos | 463 } // namespace chromeos |
OLD | NEW |