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

Unified Diff: tpm_init.cc

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 | « tpm_init.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tpm_init.cc
diff --git a/tpm_init.cc b/tpm_init.cc
index e792141d52060cd328641cea1406e2fb63b6d58e..06d70d2cd55a2073b1db8580b1e4e302b1006de3 100644
--- a/tpm_init.cc
+++ b/tpm_init.cc
@@ -26,6 +26,8 @@ class TpmInitTask : public PlatformThread::Delegate {
bool IsTpmReady();
bool IsTpmEnabled();
+ bool IsTpmOwned();
+ bool IsTpmBeingOwned();
bool GetTpmPassword(chromeos::Blob* password);
long GetInitializationMillis();
bool GetRandomData(int length, chromeos::Blob* data);
@@ -66,6 +68,14 @@ bool TpmInit::IsTpmEnabled() {
return tpm_init_->IsTpmEnabled();
}
+bool TpmInit::IsTpmOwned() {
+ return tpm_init_->IsTpmOwned();
+}
+
+bool TpmInit::IsTpmBeingOwned() {
+ return tpm_init_->IsTpmBeingOwned();
+}
+
bool TpmInit::GetTpmPassword(chromeos::Blob* password) {
return tpm_init_->GetTpmPassword(password);
}
@@ -122,6 +132,14 @@ bool TpmInitTask::IsTpmEnabled() {
return tpm_->IsEnabled();
}
+bool TpmInitTask::IsTpmOwned() {
+ return tpm_->IsOwned();
+}
+
+bool TpmInitTask::IsTpmBeingOwned() {
+ return tpm_->IsBeingOwned();
+}
+
bool TpmInitTask::GetTpmPassword(chromeos::Blob* password) {
return tpm_->GetOwnerPassword(password);
}
« no previous file with comments | « tpm_init.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698