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

Unified Diff: chromeos/attestation/attestation_constants.h

Issue 2256643003: Synchronize certificate profiles with cryptohomed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/attestation/attestation_constants.h
diff --git a/chromeos/attestation/attestation_constants.h b/chromeos/attestation/attestation_constants.h
index 51cb66b25a3de34159379d86fb06f59ba8c9f04e..f7050fa8f9760d00de6f17ba1149b658f200332b 100644
--- a/chromeos/attestation/attestation_constants.h
+++ b/chromeos/attestation/attestation_constants.h
@@ -28,19 +28,22 @@ enum AttestationChallengeOptions {
CHALLENGE_INCLUDE_SIGNED_PUBLIC_KEY = 1,
};
-// Available attestation certificate profiles.
+// Available attestation certificate profiles. These values are sent straight
+// to cryptohomed and therefore match the values of CertificateProfile in
+// platform2/cryptohome/attestation.proto for the right certificates to be
+// returned.
enum AttestationCertificateProfile {
// Uses the following certificate options:
// CERTIFICATE_INCLUDE_STABLE_ID
// CERTIFICATE_INCLUDE_DEVICE_STATE
- PROFILE_ENTERPRISE_MACHINE_CERTIFICATE,
+ PROFILE_ENTERPRISE_MACHINE_CERTIFICATE = 0,
// Uses the following certificate options:
// CERTIFICATE_INCLUDE_DEVICE_STATE
- PROFILE_ENTERPRISE_USER_CERTIFICATE,
+ PROFILE_ENTERPRISE_USER_CERTIFICATE = 1,
// A profile for certificates intended for protected content providers.
- PROFILE_CONTENT_PROTECTION_CERTIFICATE,
+ PROFILE_CONTENT_PROTECTION_CERTIFICATE = 2,
// A profile for certificates intended for enterprise registration.
- PROFILE_ENTERPRISE_ENROLLMENT_CERTIFICATE
+ PROFILE_ENTERPRISE_ENROLLMENT_CERTIFICATE = 7
};
enum PrivacyCAType {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698