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

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: Addressed review feedback. 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..7dd02a6bb2293fdc17300a9287dd672809483624 100644
--- a/chromeos/attestation/attestation_flow.h
+++ b/chromeos/attestation/attestation_flow.h
@@ -57,6 +57,25 @@ 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.
pastarmovj 2016/08/23 08:46:02 nit: s/certificate_profile/profile/...or rename th
The one and only Dr. Crash 2016/08/23 15:05:10 Done.
+ static AttestationKeyType GetKeyTypeForProfile(
+ AttestationCertificateProfile profile);
+ // Returns the name of the key for a given certificate profile. The
pastarmovj 2016/08/23 08:46:02 Add a new line before this one.
The one and only Dr. Crash 2016/08/23 15:05:10 Done.
+ // |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);

Powered by Google App Engine
This is Rietveld 408576698