summaryrefslogtreecommitdiff
path: root/firmware/stub/tpm_lite_stub.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2010-08-05 15:55:06 -0700
committerRandall Spangler <rspangler@chromium.org>2010-08-05 15:55:06 -0700
commit205190d4ae8080298d9d1b580dd95c885f2af42c (patch)
tree36cf0da8d3813774fd675f66f00a35540c89cd6f /firmware/stub/tpm_lite_stub.c
parent63dffcb52b56f27d5315de249d20958b94eed47f (diff)
downloadvboot-205190d4ae8080298d9d1b580dd95c885f2af42c.tar.gz
Pay attention to TPM communication errors
BUG=none TEST=make && make runtests Review URL: http://codereview.chromium.org/3078028
Diffstat (limited to 'firmware/stub/tpm_lite_stub.c')
-rw-r--r--firmware/stub/tpm_lite_stub.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/stub/tpm_lite_stub.c b/firmware/stub/tpm_lite_stub.c
index 22110643..e91069b9 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 */
}