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

Unified Diff: chromeos/network/onc/onc_validator.cc

Issue 2859123003: Don't reject server and CA certs during device ONC validation (Closed)
Patch Set: Addressed comments. Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/network/onc/onc_validator.cc
diff --git a/chromeos/network/onc/onc_validator.cc b/chromeos/network/onc/onc_validator.cc
index cd83e3f496d6affd6af298c300b6278e100b789a..d4fc4502f3c2a7bdd1082acf9055b329c18d76e3 100644
--- a/chromeos/network/onc/onc_validator.cc
+++ b/chromeos/network/onc/onc_validator.cc
@@ -973,13 +973,6 @@ bool Validator::ValidateCertificate(base::DictionaryValue* result) {
std::string type;
result->GetStringWithoutPathExpansion(kType, &type);
- if (onc_source_ == ::onc::ONC_SOURCE_DEVICE_POLICY &&
- (type == kServer || type == kAuthority)) {
- error_or_warning_found_ = true;
- LOG(ERROR) << MessageHeader() << "Server and authority certificates are "
- << "prohibited in ONC device policies.";
- return false;
- }
if (!CheckGuidIsUniqueAndAddToSet(*result, kGUID, &certificate_guids_))
return false;
« no previous file with comments | « chromeos/network/onc/onc_certificate_importer_impl.cc ('k') | chromeos/network/onc/onc_validator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698