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

Unified Diff: chromeos/attestation/attestation_flow.h

Issue 2261763002: Device enterprise registration with a certificate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize pointers to nullptr. Created 4 years, 4 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/attestation/attestation_flow.h
diff --git a/chromeos/attestation/attestation_flow.h b/chromeos/attestation/attestation_flow.h
index be3fcdf0e61d4a4b0a259e89b8fd7517f1e43cc8..26a7292d60a9d4eab6901f21e268e31b6a799846 100644
--- a/chromeos/attestation/attestation_flow.h
+++ b/chromeos/attestation/attestation_flow.h
@@ -57,6 +57,26 @@ class CHROMEOS_EXPORT AttestationFlow {
const std::string& pem_certificate_chain)>
CertificateCallback;
+ // Returns the attestation key type for a given |certificate_profile|.
+ //
+ // Parameters
+ // certificate_profile - Specifies what kind of certificate the key is for.
+ static AttestationKeyType GetKeyTypeForProfile(
+ AttestationCertificateProfile certificate_profile);
+
+ // Returns the name of the key for a given certificate profile. The
+ // |request_origin| parameter is for PROFILE_CONTENT_PROTECTION_CERTIFICATE
+ // profiles and is ignored for other profiles.
+ //
+ // Parameters
+ // certificate_profile - Specifies what kind of certificate the key is for.
+ // request_origin - For content protection profiles, certificate requests
+ // are origin-specific. This string must uniquely identify
+ // the origin of the request.
+ static std::string GetKeyNameForProfile(
+ AttestationCertificateProfile certificate_profile,
+ const std::string& request_origin);
+
AttestationFlow(cryptohome::AsyncMethodCaller* async_caller,
CryptohomeClient* cryptohome_client,
std::unique_ptr<ServerProxy> server_proxy);
« no previous file with comments | « chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc ('k') | chromeos/attestation/attestation_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698