summaryrefslogtreecommitdiffstats
path: root/chromeos/cryptohome/async_method_caller.h
diff options
context:
space:
mode:
authordkrahn@google.com <dkrahn@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-27 02:32:45 +0000
committerdkrahn@google.com <dkrahn@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-27 02:32:45 +0000
commitcd88f791eacd3f59a83af0fe1713db55ed03a352 (patch)
treeff230ec36e7090fbe3a17e0b544b24e51c295883 /chromeos/cryptohome/async_method_caller.h
parent901864c2613bf8dd4afb5c8ba0b231b47938741a (diff)
downloadchromium_src-cd88f791eacd3f59a83af0fe1713db55ed03a352.zip
chromium_src-cd88f791eacd3f59a83af0fe1713db55ed03a352.tar.gz
chromium_src-cd88f791eacd3f59a83af0fe1713db55ed03a352.tar.bz2
Enhanced and refactored the AttestationFlow interface.
This change makes the AttestationFlow interface easier to work with. Supported certificate profiles are explicitly defined and the clobbering of existing keys is now optional. All attestation constants have been consolidated in attestation_constants.h. BUG=chromium:219959 TEST=unit Review URL: https://chromiumcodereview.appspot.com/14305009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196926 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/cryptohome/async_method_caller.h')
-rw-r--r--chromeos/cryptohome/async_method_caller.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/chromeos/cryptohome/async_method_caller.h b/chromeos/cryptohome/async_method_caller.h
index 0957397..11499c9 100644
--- a/chromeos/cryptohome/async_method_caller.h
+++ b/chromeos/cryptohome/async_method_caller.h
@@ -98,8 +98,8 @@ class CHROMEOS_EXPORT AsyncMethodCaller {
// Asks cryptohomed to asynchronously create an attestation certificate
// request according to |options|, which is a combination of
- // CryptohomeClient::AttestationCertificateOptions. On success the data sent
- // to |callback| is a request to be sent to the Privacy CA.
+ // attestation::AttestationCertificateOptions. On success the data sent to
+ // |callback| is a request to be sent to the Privacy CA.
virtual void AsyncTpmAttestationCreateCertRequest(
int options,
const DataCallback& callback) = 0;
@@ -112,14 +112,14 @@ class CHROMEOS_EXPORT AsyncMethodCaller {
// key.
virtual void AsyncTpmAttestationFinishCertRequest(
const std::string& pca_response,
- chromeos::CryptohomeClient::AttestationKeyType key_type,
+ chromeos::attestation::AttestationKeyType key_type,
const std::string& key_name,
const DataCallback& callback) = 0;
// Asks cryptohomed to asynchronously register the attestation key specified
// by |key_type| and |key_name|.
virtual void TpmAttestationRegisterKey(
- chromeos::CryptohomeClient::AttestationKeyType key_type,
+ chromeos::attestation::AttestationKeyType key_type,
const std::string& key_name,
const Callback& callback) = 0;
@@ -129,11 +129,11 @@ class CHROMEOS_EXPORT AsyncMethodCaller {
// a valid enterprise challenge. On success, the data sent to |callback| is
// the challenge response.
virtual void TpmAttestationSignEnterpriseChallenge(
- chromeos::CryptohomeClient::AttestationKeyType key_type,
+ chromeos::attestation::AttestationKeyType key_type,
const std::string& key_name,
const std::string& domain,
const std::string& device_id,
- chromeos::CryptohomeClient::AttestationChallengeOptions options,
+ chromeos::attestation::AttestationChallengeOptions options,
const std::string& challenge,
const DataCallback& callback) = 0;
@@ -142,7 +142,7 @@ class CHROMEOS_EXPORT AsyncMethodCaller {
// set of bytes. On success, the data sent to |callback| is the challenge
// response.
virtual void TpmAttestationSignSimpleChallenge(
- chromeos::CryptohomeClient::AttestationKeyType key_type,
+ chromeos::attestation::AttestationKeyType key_type,
const std::string& key_name,
const std::string& challenge,
const DataCallback& callback) = 0;