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

Unified Diff: chromeos/network/client_cert_util.h

Issue 2828713002: Enable client certificate patterns in device ONC policy (Closed)
Patch Set: Addressed comments - more DCHECKs, use PostTask..WithReply in client_cert_resolver.cc. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/network/client_cert_resolver_unittest.cc ('k') | chromeos/network/client_cert_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/client_cert_util.h
diff --git a/chromeos/network/client_cert_util.h b/chromeos/network/client_cert_util.h
index e687e060a1c6b0bc496f20e65eafb94a5c335504..baef5a09c4f81e89b03d5b740a02a66ee443c199 100644
--- a/chromeos/network/client_cert_util.h
+++ b/chromeos/network/client_cert_util.h
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "chromeos/chromeos_export.h"
#include "chromeos/network/certificate_pattern.h"
+#include "components/onc/onc_constants.h"
namespace base {
class DictionaryValue;
@@ -50,6 +51,9 @@ struct CHROMEOS_EXPORT ClientCertConfig {
// The value of kIdentity, to enable substitutions.
std::string policy_identity;
+
+ // source of this ClientCertConfig.
+ ::onc::ONCSource onc_source;
};
// Returns true only if any fields set in this pattern match exactly with
@@ -99,6 +103,7 @@ bool IsCertificateConfigured(const client_cert::ConfigType cert_config_type,
// Determines the type of the CertificatePattern configuration, i.e. is it a
// pattern within an EAP, IPsec or OpenVPN configuration.
CHROMEOS_EXPORT void OncToClientCertConfig(
+ ::onc::ONCSource onc_source,
const base::DictionaryValue& network_config,
ClientCertConfig* cert_config);
« no previous file with comments | « chromeos/network/client_cert_resolver_unittest.cc ('k') | chromeos/network/client_cert_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698