aboutsummaryrefslogtreecommitdiff
path: root/src/security/tpm/tss/tcg-2.0/tss_marshaling.h
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2020-09-11 22:10:55 -0700
committerPatrick Georgi <pgeorgi@google.com>2020-09-21 08:09:28 +0000
commitc07fb75c90e856bb2ea3fb7042bd633f1106861b (patch)
tree3032bfa852ec1617cd92e87167c2cb0761447caf /src/security/tpm/tss/tcg-2.0/tss_marshaling.h
parent0f9c8b3aa5f27a619fe643156606034fcdfb2eaa (diff)
security/tpm/tss/tcg-2.0: add const to marshalling functions
This adds the const qualifier to inputs of marshalling functions as they are intended to be read-only. Change-Id: I099bf46c928733aff2c1d1c134deec35da6309ba Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45409 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/security/tpm/tss/tcg-2.0/tss_marshaling.h')
-rw-r--r--src/security/tpm/tss/tcg-2.0/tss_marshaling.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/security/tpm/tss/tcg-2.0/tss_marshaling.h b/src/security/tpm/tss/tcg-2.0/tss_marshaling.h
index 432cf5a382..ae0b7fdca5 100644
--- a/src/security/tpm/tss/tcg-2.0/tss_marshaling.h
+++ b/src/security/tpm/tss/tcg-2.0/tss_marshaling.h
@@ -21,7 +21,7 @@
* Returns 0 on success or -1 on error.
*
*/
-int tpm_marshal_command(TPM_CC command, void *tpm_command_body,
+int tpm_marshal_command(TPM_CC command, const void *tpm_command_body,
struct obuf *ob);
/**