| 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 "components/onc/onc_constants.h" | 10 #include "components/onc/onc_constants.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 // This field is converted during translation, see onc_translator_*. | 30 // This field is converted during translation, see onc_translator_*. |
| 31 // { ::onc::eap::kOuter, shill::kEapMethodProperty }, | 31 // { ::onc::eap::kOuter, shill::kEapMethodProperty }, |
| 32 { ::onc::eap::kPassword, shill::kEapPasswordProperty}, | 32 { ::onc::eap::kPassword, shill::kEapPasswordProperty}, |
| 33 { ::onc::eap::kSaveCredentials, shill::kSaveCredentialsProperty}, | 33 { ::onc::eap::kSaveCredentials, shill::kSaveCredentialsProperty}, |
| 34 { ::onc::eap::kServerCAPEMs, shill::kEapCaCertPemProperty}, | 34 { ::onc::eap::kServerCAPEMs, shill::kEapCaCertPemProperty}, |
| 35 { ::onc::eap::kUseSystemCAs, shill::kEapUseSystemCasProperty}, | 35 { ::onc::eap::kUseSystemCAs, shill::kEapUseSystemCasProperty}, |
| 36 {NULL}}; | 36 {NULL}}; |
| 37 | 37 |
| 38 const FieldTranslationEntry ipsec_fields[] = { | 38 const FieldTranslationEntry ipsec_fields[] = { |
| 39 // Ignored by Shill, not necessary to synchronize. | 39 // This field is converted during translation, see onc_translator_*. |
| 40 // { ::onc::ipsec::kAuthenticationType, shill::kL2tpIpsecAuthenticationType | 40 // { ::onc::ipsec::kAuthenticationType, shill::kL2tpIpsecAuthenticationType |
| 41 // }, | 41 // }, |
| 42 { ::onc::ipsec::kGroup, shill::kL2tpIpsecTunnelGroupProperty}, | 42 { ::onc::ipsec::kGroup, shill::kL2tpIpsecTunnelGroupProperty}, |
| 43 // Ignored by Shill, not necessary to synchronize. | 43 // Ignored by Shill, not necessary to synchronize. |
| 44 // { ::onc::ipsec::kIKEVersion, shill::kL2tpIpsecIkeVersion }, | 44 // { ::onc::ipsec::kIKEVersion, shill::kL2tpIpsecIkeVersion }, |
| 45 { ::onc::ipsec::kPSK, shill::kL2tpIpsecPskProperty}, | 45 { ::onc::ipsec::kPSK, shill::kL2tpIpsecPskProperty}, |
| 46 // This field is converted during translation, see onc_translator_*. | 46 // This field is converted during translation, see onc_translator_*. |
| 47 // { ::onc::vpn::kSaveCredentials, shill::kSaveCredentialsProperty}, | 47 // { ::onc::vpn::kSaveCredentials, shill::kSaveCredentialsProperty}, |
| 48 { ::onc::ipsec::kServerCAPEMs, shill::kL2tpIpsecCaCertPemProperty}, | 48 { ::onc::ipsec::kServerCAPEMs, shill::kL2tpIpsecCaCertPemProperty}, |
| 49 {NULL}}; | 49 {NULL}}; |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 continue; | 368 continue; |
| 369 *onc_value = table[i].onc_value; | 369 *onc_value = table[i].onc_value; |
| 370 return true; | 370 return true; |
| 371 } | 371 } |
| 372 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC"; | 372 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC"; |
| 373 return false; | 373 return false; |
| 374 } | 374 } |
| 375 | 375 |
| 376 } // namespace onc | 376 } // namespace onc |
| 377 } // namespace chromeos | 377 } // namespace chromeos |
| OLD | NEW |