diff options
author | Caveh Jalali <caveh@chromium.org> | 2020-09-11 22:10:55 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-09-21 08:09:28 +0000 |
commit | c07fb75c90e856bb2ea3fb7042bd633f1106861b (patch) | |
tree | 3032bfa852ec1617cd92e87167c2cb0761447caf /src/security/tpm/tss/tcg-2.0/tss_marshaling.h | |
parent | 0f9c8b3aa5f27a619fe643156606034fcdfb2eaa (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.h | 2 |
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); /** |