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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_ATTESTATION_ATTESTATION_CONSTANTS_H_ 5 #ifndef CHROMEOS_ATTESTATION_ATTESTATION_CONSTANTS_H_
6 #define CHROMEOS_ATTESTATION_ATTESTATION_CONSTANTS_H_ 6 #define CHROMEOS_ATTESTATION_ATTESTATION_CONSTANTS_H_
7 7
8 #include "chromeos/chromeos_export.h" 8 #include "chromeos/chromeos_export.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 10 matching lines...) Expand all
21 }; 21 };
22 22
23 // Options available for customizing an attestation challenge response. 23 // Options available for customizing an attestation challenge response.
24 enum AttestationChallengeOptions { 24 enum AttestationChallengeOptions {
25 CHALLENGE_OPTION_NONE = 0, 25 CHALLENGE_OPTION_NONE = 0,
26 // Indicates that a SignedPublicKeyAndChallenge should be embedded in the 26 // Indicates that a SignedPublicKeyAndChallenge should be embedded in the
27 // challenge response. 27 // challenge response.
28 CHALLENGE_INCLUDE_SIGNED_PUBLIC_KEY = 1, 28 CHALLENGE_INCLUDE_SIGNED_PUBLIC_KEY = 1,
29 }; 29 };
30 30
31 // Available attestation certificate profiles. 31 // Available attestation certificate profiles. These values are sent straight
32 // to cryptohomed and therefore match the values of CertificateProfile in
33 // platform2/cryptohome/attestation.proto for the right certificates to be
34 // returned.
32 enum AttestationCertificateProfile { 35 enum AttestationCertificateProfile {
33 // Uses the following certificate options: 36 // Uses the following certificate options:
34 // CERTIFICATE_INCLUDE_STABLE_ID 37 // CERTIFICATE_INCLUDE_STABLE_ID
35 // CERTIFICATE_INCLUDE_DEVICE_STATE 38 // CERTIFICATE_INCLUDE_DEVICE_STATE
36 PROFILE_ENTERPRISE_MACHINE_CERTIFICATE, 39 PROFILE_ENTERPRISE_MACHINE_CERTIFICATE = 0,
37 // Uses the following certificate options: 40 // Uses the following certificate options:
38 // CERTIFICATE_INCLUDE_DEVICE_STATE 41 // CERTIFICATE_INCLUDE_DEVICE_STATE
39 PROFILE_ENTERPRISE_USER_CERTIFICATE, 42 PROFILE_ENTERPRISE_USER_CERTIFICATE = 1,
40 // A profile for certificates intended for protected content providers. 43 // A profile for certificates intended for protected content providers.
41 PROFILE_CONTENT_PROTECTION_CERTIFICATE, 44 PROFILE_CONTENT_PROTECTION_CERTIFICATE = 2,
42 // A profile for certificates intended for enterprise registration. 45 // A profile for certificates intended for enterprise registration.
43 PROFILE_ENTERPRISE_ENROLLMENT_CERTIFICATE 46 PROFILE_ENTERPRISE_ENROLLMENT_CERTIFICATE = 7
44 }; 47 };
45 48
46 enum PrivacyCAType { 49 enum PrivacyCAType {
47 DEFAULT_PCA, // The Google-operated Privacy CA. 50 DEFAULT_PCA, // The Google-operated Privacy CA.
48 ALTERNATE_PCA, // An alternate Privacy CA specified by enterprise policy. 51 ALTERNATE_PCA, // An alternate Privacy CA specified by enterprise policy.
49 }; 52 };
50 53
51 // A key name for the Enterprise Machine Key. This key should always be stored 54 // A key name for the Enterprise Machine Key. This key should always be stored
52 // as a DEVICE_KEY. 55 // as a DEVICE_KEY.
53 CHROMEOS_EXPORT extern const char kEnterpriseMachineKey[]; 56 CHROMEOS_EXPORT extern const char kEnterpriseMachineKey[];
54 57
55 // A key name for the Enterprise User Key. This key should always be stored as 58 // A key name for the Enterprise User Key. This key should always be stored as
56 // a USER_KEY. 59 // a USER_KEY.
57 CHROMEOS_EXPORT extern const char kEnterpriseUserKey[]; 60 CHROMEOS_EXPORT extern const char kEnterpriseUserKey[];
58 61
59 // The key name prefix for content protection keys. This prefix must be 62 // The key name prefix for content protection keys. This prefix must be
60 // appended with an origin-specific identifier to form the final key name. 63 // appended with an origin-specific identifier to form the final key name.
61 CHROMEOS_EXPORT extern const char kContentProtectionKeyPrefix[]; 64 CHROMEOS_EXPORT extern const char kContentProtectionKeyPrefix[];
62 65
63 } // namespace attestation 66 } // namespace attestation
64 } // namespace chromeos 67 } // namespace chromeos
65 68
66 #endif // CHROMEOS_ATTESTATION_ATTESTATION_CONSTANTS_H_ 69 #endif // CHROMEOS_ATTESTATION_ATTESTATION_CONSTANTS_H_
OLDNEW
« 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