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

Unified Diff: chromeos/dbus/cryptohome_client.h

Issue 2727713003: Update FWMP in TPM (Closed)
Patch Set: Fixed review comments Created 3 years, 9 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
Index: chromeos/dbus/cryptohome_client.h
diff --git a/chromeos/dbus/cryptohome_client.h b/chromeos/dbus/cryptohome_client.h
index 8fc61f94b0e4f64241a565479d13f9aad0ed5e41..801a766828123a4928cbcc1f619273e6f489a047 100644
--- a/chromeos/dbus/cryptohome_client.h
+++ b/chromeos/dbus/cryptohome_client.h
@@ -27,8 +27,10 @@ class FlushAndSignBootAttributesRequest;
class GetBootAttributeRequest;
class GetKeyDataRequest;
class MountRequest;
+class RemoveFirmwareManagementParametersRequest;
class RemoveKeyRequest;
class SetBootAttributeRequest;
+class SetFirmwareManagementParametersRequest;
class UpdateKeyRequest;
class Identification;
@@ -555,6 +557,22 @@ class CHROMEOS_EXPORT CryptohomeClient : public DBusClient {
const cryptohome::FlushAndSignBootAttributesRequest& request,
const ProtobufMethodCallback& callback) = 0;
+ // Asynchronously calls RemoveFirmwareManagementParameters method. |callback|
+ // is called after method call, and with reply protobuf.
+ // RemoveFirmwareManagementParameters removes the firmware management
+ // parameters from TPM.
+ virtual void RemoveFirmwareManagementParametersInTpm(
Thiemo Nagel 2017/03/23 17:23:52 Nit: FromTpm would probably be better language.
igorcov 2017/03/24 13:29:15 Done.
+ const cryptohome::RemoveFirmwareManagementParametersRequest& request,
Thiemo Nagel 2017/03/23 17:23:52 The request parameter seems to serve no purpose.
igorcov 2017/03/24 13:29:15 It is used, being passed to cryptohome_proxy for C
+ const ProtobufMethodCallback& callback) = 0;
+
+ // Asynchronously calls SetFirmwareManagementParameters method. |callback|
+ // is called after method call, and with reply protobuf. |request| contains
+ // the flags to be set. SetFirmwareManagementParameters creates the firmware
+ // management parameters in TPM and sets flags included in the request.
+ virtual void SetFirmwareManagementParametersInTpm(
+ const cryptohome::SetFirmwareManagementParametersRequest& request,
+ const ProtobufMethodCallback& callback) = 0;
+
protected:
// Create() should be used instead.
CryptohomeClient();

Powered by Google App Engine
This is Rietveld 408576698