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 { |