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

Side by Side Diff: chromeos/network/onc/onc_translation_tables.cc

Issue 1137633003: Add ONC property for EAP-GTC authentication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add to onc_constants.h Created 5 years, 7 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
« no previous file with comments | « no previous file | chromeos/network/onc/onc_validator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/logging.h" 9 #include "base/logging.h"
10 #include "components/onc/onc_constants.h" 10 #include "components/onc/onc_constants.h"
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 {::onc::eap::kPEAP, shill::kEapMethodPEAP}, 304 {::onc::eap::kPEAP, shill::kEapMethodPEAP},
305 {::onc::eap::kEAP_TLS, shill::kEapMethodTLS}, 305 {::onc::eap::kEAP_TLS, shill::kEapMethodTLS},
306 {::onc::eap::kEAP_TTLS, shill::kEapMethodTTLS}, 306 {::onc::eap::kEAP_TTLS, shill::kEapMethodTTLS},
307 {::onc::eap::kLEAP, shill::kEapMethodLEAP}, 307 {::onc::eap::kLEAP, shill::kEapMethodLEAP},
308 {NULL}}; 308 {NULL}};
309 309
310 // Translation of the EAP.Inner field in case of EAP.Outer == PEAP 310 // Translation of the EAP.Inner field in case of EAP.Outer == PEAP
311 const StringTranslationEntry kEAP_PEAP_InnerTable[] = { 311 const StringTranslationEntry kEAP_PEAP_InnerTable[] = {
312 {::onc::eap::kMD5, shill::kEapPhase2AuthPEAPMD5}, 312 {::onc::eap::kMD5, shill::kEapPhase2AuthPEAPMD5},
313 {::onc::eap::kMSCHAPv2, shill::kEapPhase2AuthPEAPMSCHAPV2}, 313 {::onc::eap::kMSCHAPv2, shill::kEapPhase2AuthPEAPMSCHAPV2},
314 {::onc::eap::kGTC, shill::kEapPhase2AuthPEAPGTC},
314 {NULL}}; 315 {NULL}};
315 316
316 // Translation of the EAP.Inner field in case of EAP.Outer == TTLS 317 // Translation of the EAP.Inner field in case of EAP.Outer == TTLS
317 const StringTranslationEntry kEAP_TTLS_InnerTable[] = { 318 const StringTranslationEntry kEAP_TTLS_InnerTable[] = {
318 {::onc::eap::kMD5, shill::kEapPhase2AuthTTLSMD5}, 319 {::onc::eap::kMD5, shill::kEapPhase2AuthTTLSMD5},
319 {::onc::eap::kMSCHAPv2, shill::kEapPhase2AuthTTLSMSCHAPV2}, 320 {::onc::eap::kMSCHAPv2, shill::kEapPhase2AuthTTLSMSCHAPV2},
320 {::onc::eap::kPAP, shill::kEapPhase2AuthTTLSPAP}, 321 {::onc::eap::kPAP, shill::kEapPhase2AuthTTLSPAP},
322 {::onc::eap::kGTC, shill::kEapPhase2AuthTTLSGTC},
321 {NULL}}; 323 {NULL}};
322 324
323 const StringTranslationEntry kActivationStateTable[] = { 325 const StringTranslationEntry kActivationStateTable[] = {
324 {::onc::cellular::kActivated, shill::kActivationStateActivated}, 326 {::onc::cellular::kActivated, shill::kActivationStateActivated},
325 {::onc::cellular::kActivating, shill::kActivationStateActivating}, 327 {::onc::cellular::kActivating, shill::kActivationStateActivating},
326 {::onc::cellular::kNotActivated, shill::kActivationStateNotActivated}, 328 {::onc::cellular::kNotActivated, shill::kActivationStateNotActivated},
327 {::onc::cellular::kPartiallyActivated, 329 {::onc::cellular::kPartiallyActivated,
328 shill::kActivationStatePartiallyActivated}, 330 shill::kActivationStatePartiallyActivated},
329 {NULL}}; 331 {NULL}};
330 332
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 continue; 440 continue;
439 *onc_value = table[i].onc_value; 441 *onc_value = table[i].onc_value;
440 return true; 442 return true;
441 } 443 }
442 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC"; 444 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC";
443 return false; 445 return false;
444 } 446 }
445 447
446 } // namespace onc 448 } // namespace onc
447 } // namespace chromeos 449 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chromeos/network/onc/onc_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698