Commit e66c53c6 authored by drcrash's avatar drcrash Committed by Commit bot

Synchronize certificate profiles with cryptohomed.

Because the value of a certificate profile is sent straight to
cryptohomed, it needs to match what is in CertificateProfile
in the cryptohomed source code.

See CryptohomeClient::AsyncTpmAttestationCreateCertRequest.

BUG=624187
TEST=none

Review-Url: https://codereview.chromium.org/2256643003
Cr-Commit-Position: refs/heads/master@{#412741}
parent 359b23f1
...@@ -28,19 +28,22 @@ enum AttestationChallengeOptions { ...@@ -28,19 +28,22 @@ enum AttestationChallengeOptions {
CHALLENGE_INCLUDE_SIGNED_PUBLIC_KEY = 1, 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 { enum AttestationCertificateProfile {
// Uses the following certificate options: // Uses the following certificate options:
// CERTIFICATE_INCLUDE_STABLE_ID // CERTIFICATE_INCLUDE_STABLE_ID
// CERTIFICATE_INCLUDE_DEVICE_STATE // CERTIFICATE_INCLUDE_DEVICE_STATE
PROFILE_ENTERPRISE_MACHINE_CERTIFICATE, PROFILE_ENTERPRISE_MACHINE_CERTIFICATE = 0,
// Uses the following certificate options: // Uses the following certificate options:
// CERTIFICATE_INCLUDE_DEVICE_STATE // CERTIFICATE_INCLUDE_DEVICE_STATE
PROFILE_ENTERPRISE_USER_CERTIFICATE, PROFILE_ENTERPRISE_USER_CERTIFICATE = 1,
// A profile for certificates intended for protected content providers. // 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. // A profile for certificates intended for enterprise registration.
PROFILE_ENTERPRISE_ENROLLMENT_CERTIFICATE PROFILE_ENTERPRISE_ENROLLMENT_CERTIFICATE = 7
}; };
enum PrivacyCAType { enum PrivacyCAType {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment