Index: chromeos/dbus/cryptohome_client.h |
diff --git a/chromeos/dbus/cryptohome_client.h b/chromeos/dbus/cryptohome_client.h |
index f230d03470148ab570a321fda89098587252c640..06a03fdd24318035164610c40ae82b7eb77ead7e 100644 |
--- a/chromeos/dbus/cryptohome_client.h |
+++ b/chromeos/dbus/cryptohome_client.h |
@@ -285,34 +285,45 @@ class CHROMEOS_EXPORT CryptohomeClient : public DBusClient { |
// sent with the signal is a certificate chain in PEM format. |pca_response| |
// is the response to the certificate request emitted by the Privacy CA. |
// |key_type| determines whether the certified key is to be associated with |
- // the current user. |key_name| is a name for the key. |
+ // the current user. |key_name| is a name for the key. If |key_type| is |
+ // KEY_USER, the user's canonical email address must be provided in |
+ // |user_email|. Otherwise |user_email| is ignored. |
virtual void AsyncTpmAttestationFinishCertRequest( |
const std::string& pca_response, |
attestation::AttestationKeyType key_type, |
+ const std::string& user_email, |
bartfab (slow)
2013/10/13 16:31:35
As in the other files, please use user_id.
Darren Krahn
2013/10/15 16:49:06
Done.
|
const std::string& key_name, |
const AsyncMethodCallback& callback) = 0; |
// Checks if an attestation key already exists. If the key specified by |
// |key_type| and |key_name| exists, then the result sent to the callback will |
- // be true. |
+ // be true. If |key_type| is KEY_USER, the user's canonical email address |
+ // must be provided in |user_email|. Otherwise |user_email| is ignored. |
virtual void TpmAttestationDoesKeyExist( |
attestation::AttestationKeyType key_type, |
+ const std::string& user_email, |
const std::string& key_name, |
const BoolDBusMethodCallback& callback) = 0; |
// Gets the attestation certificate for the key specified by |key_type| and |
// |key_name|. |callback| will be called when the operation completes. If |
- // the key does not exist the callback |result| parameter will be false. |
+ // the key does not exist the callback |result| parameter will be false. If |
+ // |key_type| is KEY_USER, the user's canonical email address must be provided |
+ // in |user_email|. Otherwise |user_email| is ignored. |
virtual void TpmAttestationGetCertificate( |
attestation::AttestationKeyType key_type, |
+ const std::string& user_email, |
const std::string& key_name, |
const DataMethodCallback& callback) = 0; |
// Gets the public key for the key specified by |key_type| and |key_name|. |
// |callback| will be called when the operation completes. If the key does |
- // not exist the callback |result| parameter will be false. |
+ // not exist the callback |result| parameter will be false. If |key_type| is |
+ // KEY_USER, the user's canonical email address must be provided in |
+ // |user_email|. Otherwise |user_email| is ignored. |
virtual void TpmAttestationGetPublicKey( |
attestation::AttestationKeyType key_type, |
+ const std::string& user_email, |
const std::string& key_name, |
const DataMethodCallback& callback) = 0; |
@@ -320,8 +331,11 @@ class CHROMEOS_EXPORT CryptohomeClient : public DBusClient { |
// PKCS #11 token. The |callback| will be called when the dbus call |
// completes. When the operation completes, the AsyncCallStatusHandler signal |
// handler is called. |key_type| and |key_name| specify the key to register. |
+ // If |key_type| is KEY_USER, the user's canonical email address must be |
+ // provided in |user_email|. Otherwise |user_email| is ignored. |
virtual void TpmAttestationRegisterKey( |
attestation::AttestationKeyType key_type, |
+ const std::string& user_email, |
const std::string& key_name, |
const AsyncMethodCallback& callback) = 0; |
@@ -331,9 +345,11 @@ class CHROMEOS_EXPORT CryptohomeClient : public DBusClient { |
// 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. |
+ // called. If |key_type| is KEY_USER, the user's canonical email address must |
+ // be provided in |user_email|. Otherwise |user_email| is ignored. |
virtual void TpmAttestationSignEnterpriseChallenge( |
attestation::AttestationKeyType key_type, |
+ const std::string& user_email, |
const std::string& key_name, |
const std::string& domain, |
const std::string& device_id, |
@@ -346,9 +362,12 @@ class CHROMEOS_EXPORT CryptohomeClient : public DBusClient { |
// A nonce will be appended to the challenge before signing; this method |
// cannot be used to sign arbitrary data. The |callback| will be called when |
// the dbus call completes. When the operation completes, the |
- // AsyncCallStatusWithDataHandler signal handler is called. |
+ // AsyncCallStatusWithDataHandler signal handler is called. If |key_type| is |
+ // KEY_USER, the user's canonical email address must be provided in |
+ // |user_email|. Otherwise |user_email| is ignored. |
virtual void TpmAttestationSignSimpleChallenge( |
attestation::AttestationKeyType key_type, |
+ const std::string& user_email, |
const std::string& key_name, |
const std::string& challenge, |
const AsyncMethodCallback& callback) = 0; |
@@ -357,17 +376,23 @@ class CHROMEOS_EXPORT CryptohomeClient : public DBusClient { |
// |key_name|. The |callback| will be called when the operation completes. |
// If the key does not exist the callback |result| parameter will be false. |
// If no payload has been set for the key the callback |result| parameter will |
- // be true and the |data| parameter will be empty. |
+ // be true and the |data| parameter will be empty. If |key_type| is |
+ // KEY_USER, the user's canonical email address must be provided in |
+ // |user_email|. Otherwise |user_email| is ignored. |
virtual void TpmAttestationGetKeyPayload( |
attestation::AttestationKeyType key_type, |
+ const std::string& user_email, |
const std::string& key_name, |
const DataMethodCallback& callback) = 0; |
// Sets the |payload| associated with the key specified by |key_type| and |
// |key_name|. The |callback| will be called when the operation completes. |
// If the operation succeeds, the callback |result| parameter will be true. |
+ // If |key_type| is KEY_USER, the user's canonical email address must be |
+ // provided in |user_email|. Otherwise |user_email| is ignored. |
virtual void TpmAttestationSetKeyPayload( |
attestation::AttestationKeyType key_type, |
+ const std::string& user_email, |
const std::string& key_name, |
const std::string& payload, |
const BoolDBusMethodCallback& callback) = 0; |