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

Unified Diff: firmware/lib/tpm_lite/tlcl.c

Issue 3271006: Make TPM datagrams const, since they cannot be modified in the RO firmware. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.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 | « firmware/lib/tpm_lite/include/tlcl_structures.h ('k') | firmware/stub/tpm_lite_stub.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/lib/tpm_lite/tlcl.c
diff --git a/firmware/lib/tpm_lite/tlcl.c b/firmware/lib/tpm_lite/tlcl.c
index 3f314df7a834bc01902d7402bc448b32bd92623d..39c92e6f9b7533a50665f7a0a7233816a62d5235 100644
--- a/firmware/lib/tpm_lite/tlcl.c
+++ b/firmware/lib/tpm_lite/tlcl.c
@@ -47,7 +47,7 @@ static INLINE int TpmReturnCode(const uint8_t* buffer) {
/* Sends a TPM command and gets a response. Returns 0 if success or the TPM
* error code if error. */
-static uint32_t TlclSendReceive(uint8_t* request, uint8_t* response,
+static uint32_t TlclSendReceive(const uint8_t* request, uint8_t* response,
int max_length) {
uint32_t result;
@@ -85,7 +85,7 @@ static uint32_t TlclSendReceive(uint8_t* request, uint8_t* response,
/* Sends a command and returns the error code. */
-static uint32_t Send(uint8_t* command) {
+static uint32_t Send(const uint8_t* command) {
uint8_t response[TPM_LARGE_ENOUGH_COMMAND_SIZE];
return TlclSendReceive(command, response, sizeof(response));
}
« no previous file with comments | « firmware/lib/tpm_lite/include/tlcl_structures.h ('k') | firmware/stub/tpm_lite_stub.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698