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

Side by Side Diff: chromeos/network/onc/onc_validator.h

Issue 368233004: ONC: Cleanup client certificate related fields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation on Win/Mac. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/network/onc/onc_utils.cc ('k') | 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 #ifndef CHROMEOS_NETWORK_ONC_ONC_VALIDATOR_H_ 5 #ifndef CHROMEOS_NETWORK_ONC_ONC_VALIDATOR_H_
6 #define CHROMEOS_NETWORK_ONC_ONC_VALIDATOR_H_ 6 #define CHROMEOS_NETWORK_ONC_ONC_VALIDATOR_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // dictionary into which the repaired fields are written. 139 // dictionary into which the repaired fields are written.
140 bool ValidateObjectDefault(const OncValueSignature& object_signature, 140 bool ValidateObjectDefault(const OncValueSignature& object_signature,
141 const base::DictionaryValue& onc_object, 141 const base::DictionaryValue& onc_object,
142 base::DictionaryValue* result); 142 base::DictionaryValue* result);
143 143
144 // Validates/repairs the kRecommended array in |result| according to 144 // Validates/repairs the kRecommended array in |result| according to
145 // |object_signature| of the enclosing object. 145 // |object_signature| of the enclosing object.
146 bool ValidateRecommendedField(const OncValueSignature& object_signature, 146 bool ValidateRecommendedField(const OncValueSignature& object_signature,
147 base::DictionaryValue* result); 147 base::DictionaryValue* result);
148 148
149 // Validates the ClientCert* fields in a VPN or EAP object. Only if
150 // |allow_cert_type_none| is true, the value "None" is allowed as
151 // ClientCertType.
152 bool ValidateClientCertFields(bool allow_cert_type_none,
153 base::DictionaryValue* result);
154
149 bool ValidateToplevelConfiguration(base::DictionaryValue* result); 155 bool ValidateToplevelConfiguration(base::DictionaryValue* result);
150 bool ValidateNetworkConfiguration(base::DictionaryValue* result); 156 bool ValidateNetworkConfiguration(base::DictionaryValue* result);
151 bool ValidateEthernet(base::DictionaryValue* result); 157 bool ValidateEthernet(base::DictionaryValue* result);
152 bool ValidateIPConfig(base::DictionaryValue* result); 158 bool ValidateIPConfig(base::DictionaryValue* result);
153 bool ValidateWiFi(base::DictionaryValue* result); 159 bool ValidateWiFi(base::DictionaryValue* result);
154 bool ValidateVPN(base::DictionaryValue* result); 160 bool ValidateVPN(base::DictionaryValue* result);
155 bool ValidateIPsec(base::DictionaryValue* result); 161 bool ValidateIPsec(base::DictionaryValue* result);
156 bool ValidateOpenVPN(base::DictionaryValue* result); 162 bool ValidateOpenVPN(base::DictionaryValue* result);
157 bool ValidateVerifyX509(base::DictionaryValue* result); 163 bool ValidateVerifyX509(base::DictionaryValue* result);
158 bool ValidateCertificatePattern(base::DictionaryValue* result); 164 bool ValidateCertificatePattern(base::DictionaryValue* result);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // function ValidateAndRepairObject. 222 // function ValidateAndRepairObject.
217 bool error_or_warning_found_; 223 bool error_or_warning_found_;
218 224
219 DISALLOW_COPY_AND_ASSIGN(Validator); 225 DISALLOW_COPY_AND_ASSIGN(Validator);
220 }; 226 };
221 227
222 } // namespace onc 228 } // namespace onc
223 } // namespace chromeos 229 } // namespace chromeos
224 230
225 #endif // CHROMEOS_NETWORK_ONC_ONC_VALIDATOR_H_ 231 #endif // CHROMEOS_NETWORK_ONC_ONC_VALIDATOR_H_
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_utils.cc ('k') | chromeos/network/onc/onc_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698