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

Unified Diff: lib/chromeos/tlcl_stub.c

Issue 6771044: Fill in a successful response when no hardware TPM. (Closed) Base URL: http://git.chromium.org/git/u-boot-next.git@chromeos-v2010.09
Patch Set: Created 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/chromeos/tlcl_stub.c
diff --git a/lib/chromeos/tlcl_stub.c b/lib/chromeos/tlcl_stub.c
index edc63bab0f817fdd2d539fc21af48e7b352635b4..cc19348afd80efc6bd0355e95a80b26a680b5c55 100644
--- a/lib/chromeos/tlcl_stub.c
+++ b/lib/chromeos/tlcl_stub.c
@@ -58,6 +58,11 @@ uint32_t TlclStubSendReceive(const uint8_t* request, int request_length,
ret= tis_sendrecv(request, request_length, response, &recv_len);
if (ret)
return TPM_E_IOERROR;
+#else
+ /* Make a successful response */
+ uint8_t successful_response[10] =
+ {0x0, 0x0, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x0};
+ memcpy(response, successful_response, 10);
#endif
return TPM_SUCCESS;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698