From 64494c3febd59f7c78f672e35ab60b705ce66017 Mon Sep 17 00:00:00 2001 From: "dkrahn@google.com" Date: Wed, 14 Aug 2013 22:15:59 +0000 Subject: Added support for the content protection profile to AttestationFlow. This change moves all attestation certificate requests to the new CreateCertRequestByProfile dbus method. BUG=chromium:260504 TEST=unit, manual Review URL: https://chromiumcodereview.appspot.com/20873002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217673 0039d316-1c4b-4281-b951-d872f2087c98 --- chromeos/cryptohome/async_method_caller.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'chromeos/cryptohome/async_method_caller.h') diff --git a/chromeos/cryptohome/async_method_caller.h b/chromeos/cryptohome/async_method_caller.h index 7414284..e5ca604 100644 --- a/chromeos/cryptohome/async_method_caller.h +++ b/chromeos/cryptohome/async_method_caller.h @@ -9,6 +9,7 @@ #include "base/basictypes.h" #include "base/callback_forward.h" +#include "chromeos/attestation/attestation_constants.h" #include "chromeos/chromeos_export.h" #include "chromeos/dbus/cryptohome_client.h" #include "third_party/cros_system_api/dbus/service_constants.h" @@ -113,11 +114,15 @@ class CHROMEOS_EXPORT AsyncMethodCaller { const Callback& callback) = 0; // Asks cryptohomed to asynchronously create an attestation certificate - // request according to |options|, which is a combination of - // attestation::AttestationCertificateOptions. On success the data sent to - // |callback| is a request to be sent to the Privacy CA. + // request according to |certificate_profile|. Some profiles require that the + // |user_email| of the currently active user and an identifier of the + // |request_origin| be provided. On success the data sent to |callback| is a + // request to be sent to the Privacy CA. The |request_origin| may be sent to + // the Privacy CA but the |user_email| will never be sent. virtual void AsyncTpmAttestationCreateCertRequest( - int options, + chromeos::attestation::AttestationCertificateProfile certificate_profile, + const std::string& user_email, + const std::string& request_origin, const DataCallback& callback) = 0; // Asks cryptohomed to asynchronously finish an attestation certificate -- cgit v1.1