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

Unified Diff: tpm.h

Issue 3236009: Add additional status APIs for the TPM. (Closed) Base URL: http://git.chromium.org/git/tpm_init.git
Patch Set: Created 10 years, 4 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 | « no previous file | tpm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tpm.h
diff --git a/tpm.h b/tpm.h
index 97c4d7dee4483a72184ad440579152e0431b941f..e3b4864fde13eec083199855c9d9fb982d8bf559 100644
--- a/tpm.h
+++ b/tpm.h
@@ -64,6 +64,9 @@ class Tpm {
// Returns whether or not the SRK is available
bool IsSrkAvailable() const { return is_srk_available_; }
+ // Returns whether or not the TPM is being owned
+ bool IsBeingOwned() const { return is_being_owned_; }
+
// Runs the TPM initialization sequence. This may take a long time due to the
// call to Tspi_TPM_TakeOwnership.
bool InitializeTpm();
@@ -211,6 +214,9 @@ class Tpm {
// Indicates if the SRK is available
bool is_srk_available_;
+ // Indicates if the TPM is being owned
+ bool is_being_owned_;
+
DISALLOW_COPY_AND_ASSIGN(Tpm);
};
« no previous file with comments | « no previous file | tpm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698