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

Unified Diff: firmware/stub/tpm_lite_stub.c

Issue 3078028: Pay attention to TPM communication errors (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Fix whitespace 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 | « firmware/lib/tpm_lite/tlcl.c ('k') | firmware/version.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/stub/tpm_lite_stub.c
diff --git a/firmware/stub/tpm_lite_stub.c b/firmware/stub/tpm_lite_stub.c
index 2211064363a257eb69b96dac678028d61fc1e2e2..e91069b9b2c55570ad87a3214d14f4506859f06a 100644
--- a/firmware/stub/tpm_lite_stub.c
+++ b/firmware/stub/tpm_lite_stub.c
@@ -129,8 +129,8 @@ void TlclOpenDevice(void) {
}
-void TlclStubSendReceive(uint8_t* request, int request_length,
- uint8_t* response, int max_length) {
+uint32_t TlclStubSendReceive(uint8_t* request, int request_length,
+ uint8_t* response, int max_length) {
/*
* In a real firmware implementation, this function should contain
* the equivalent API call for the firmware TPM driver which takes a
@@ -183,4 +183,6 @@ void TlclStubSendReceive(uint8_t* request, int request_length,
(tag == TPM_TAG_RQU_AUTH2_COMMAND &&
response_tag == TPM_TAG_RSP_AUTH2_COMMAND));
assert(response_length == TpmResponseSize(response));
+
+ return 0; /* Success */
}
« no previous file with comments | « firmware/lib/tpm_lite/tlcl.c ('k') | firmware/version.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698