diff options
author | Luigi Semenzato <semenzato@google.com> | 2010-08-31 15:49:56 -0700 |
---|---|---|
committer | Luigi Semenzato <semenzato@google.com> | 2010-08-31 15:49:56 -0700 |
commit | 89a02c194f1b6da0de7f98784d85e6827c3a1aec (patch) | |
tree | 1f94fdba1517e5126270ba9935714e082f91ee96 /firmware/lib/tpm_lite/tlcl.c | |
parent | 3da063e3f7612464a41a4c9b2b31fb7eade57a13 (diff) | |
download | vboot-89a02c194f1b6da0de7f98784d85e6827c3a1aec.tar.gz |
Make TPM datagrams const, since they cannot be modified in the RO firmware.
Change-Id: I7f135584536c7437824ae65f74a8f7ef27c28665
BUG=
TEST=
Review URL: http://codereview.chromium.org/3271006
Diffstat (limited to 'firmware/lib/tpm_lite/tlcl.c')
-rw-r--r-- | firmware/lib/tpm_lite/tlcl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/lib/tpm_lite/tlcl.c b/firmware/lib/tpm_lite/tlcl.c index 3f314df7..39c92e6f 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)); } |