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

Unified Diff: chromeos/dbus/cryptohome_client.h

Issue 13638022: Added an options parameter to TpmAttestationSignEnterpriseChallenge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « chromeos/cryptohome/mock_async_method_caller.h ('k') | chromeos/dbus/cryptohome_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/cryptohome_client.h
diff --git a/chromeos/dbus/cryptohome_client.h b/chromeos/dbus/cryptohome_client.h
index 88c4dbcc9cd8dbc09fa6e2d34665b4e7929af42a..7cc3c233b838875d5563be2ede75f494124e44ef 100644
--- a/chromeos/dbus/cryptohome_client.h
+++ b/chromeos/dbus/cryptohome_client.h
@@ -60,6 +60,12 @@ class CHROMEOS_EXPORT CryptohomeClient {
USER_KEY
};
+ // Options available for customizing an attestation challenge response.
+ enum AttestationChallengeOptions {
+ CHALLENGE_RESPONSE_OPTION_NONE = 0,
+ INCLUDE_SIGNED_PUBLIC_KEY = 1
+ };
+
virtual ~CryptohomeClient();
// Factory function, creates a new instance and returns ownership.
@@ -292,15 +298,17 @@ class CHROMEOS_EXPORT CryptohomeClient {
// Asynchronously signs an enterprise challenge with the key specified by
// |key_type| and |key_name|. |domain| and |device_id| will be included in
- // the challenge response. |challenge| must be a valid enterprise attestation
- // challenge. The |callback| will be called when the dbus call completes.
- // When the operation completes, the AsyncCallStatusWithDataHandler signal
- // handler is called.
+ // the challenge response. |options| control how the challenge response is
+ // generated. |challenge| must be a valid enterprise attestation challenge.
+ // The |callback| will be called when the dbus call completes. When the
+ // operation completes, the AsyncCallStatusWithDataHandler signal handler is
+ // called.
virtual void TpmAttestationSignEnterpriseChallenge(
AttestationKeyType key_type,
const std::string& key_name,
const std::string& domain,
const std::string& device_id,
+ AttestationChallengeOptions options,
const std::string& challenge,
const AsyncMethodCallback& callback) = 0;
« no previous file with comments | « chromeos/cryptohome/mock_async_method_caller.h ('k') | chromeos/dbus/cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698