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

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

Issue 1058973002: Add an ONC property for disabling LCP echo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address stevenjb@'s comments Created 5 years, 8 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_signature.h" 5 #include "chromeos/network/onc/onc_signature.h"
6 6
7 #include "components/onc/onc_constants.h" 7 #include "components/onc/onc_constants.h"
8 #include "third_party/cros_system_api/dbus/service_constants.h" 8 #include "third_party/cros_system_api/dbus/service_constants.h"
9 9
10 using base::Value; 10 using base::Value;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // { ipsec::kEAP, &kEAPSignature }, 88 // { ipsec::kEAP, &kEAPSignature },
89 {NULL}}; 89 {NULL}};
90 90
91 const OncFieldSignature xauth_fields[] = { 91 const OncFieldSignature xauth_fields[] = {
92 {::onc::vpn::kPassword, &kStringSignature}, 92 {::onc::vpn::kPassword, &kStringSignature},
93 {::onc::vpn::kUsername, &kStringSignature}, 93 {::onc::vpn::kUsername, &kStringSignature},
94 {NULL}}; 94 {NULL}};
95 95
96 const OncFieldSignature l2tp_fields[] = { 96 const OncFieldSignature l2tp_fields[] = {
97 {::onc::kRecommended, &kRecommendedSignature}, 97 {::onc::kRecommended, &kRecommendedSignature},
98 {::onc::vpn::kPassword, &kStringSignature}, 98 {::onc::l2tp::kPassword, &kStringSignature},
99 {::onc::vpn::kSaveCredentials, &kBoolSignature}, 99 {::onc::l2tp::kSaveCredentials, &kBoolSignature},
pneubeck (no reviews) 2015/04/07 09:45:20 because of the rename, we'll have to check&update
Paul Stewart 2015/04/07 15:34:33 Acknowledged.
100 {::onc::vpn::kUsername, &kStringSignature}, 100 {::onc::l2tp::kUsername, &kStringSignature},
101 {::onc::l2tp::kLcpEchoDisabled, &kBoolSignature},
101 {NULL}}; 102 {NULL}};
102 103
103 const OncFieldSignature openvpn_fields[] = { 104 const OncFieldSignature openvpn_fields[] = {
104 {::onc::kRecommended, &kRecommendedSignature}, 105 {::onc::kRecommended, &kRecommendedSignature},
105 {::onc::openvpn::kAuth, &kStringSignature}, 106 {::onc::openvpn::kAuth, &kStringSignature},
106 {::onc::openvpn::kAuthNoCache, &kBoolSignature}, 107 {::onc::openvpn::kAuthNoCache, &kBoolSignature},
107 {::onc::openvpn::kAuthRetry, &kStringSignature}, 108 {::onc::openvpn::kAuthRetry, &kStringSignature},
108 {::onc::openvpn::kCipher, &kStringSignature}, 109 {::onc::openvpn::kCipher, &kStringSignature},
109 {::onc::client_cert::kClientCertPattern, &kCertificatePatternSignature}, 110 {::onc::client_cert::kClientCertPattern, &kCertificatePatternSignature},
110 {::onc::client_cert::kClientCertRef, &kStringSignature}, 111 {::onc::client_cert::kClientCertRef, &kStringSignature},
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 if (&signature == entry->value_signature && 528 if (&signature == entry->value_signature &&
528 onc_field_name == entry->field_name) { 529 onc_field_name == entry->field_name) {
529 return true; 530 return true;
530 } 531 }
531 } 532 }
532 return false; 533 return false;
533 } 534 }
534 535
535 } // namespace onc 536 } // namespace onc
536 } // namespace chromeos 537 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chromeos/network/onc/onc_translation_tables.cc » ('j') | chromeos/network/onc/onc_translation_tables.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698