Skip to content

Commit

Permalink
rc: add new return codes.
Browse files Browse the repository at this point in the history
The error messages for TPM2_RC_FW_LIMITED and TPM2_RC_SVN_LIMITED are
added.

Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT committed Dec 25, 2023
1 parent 28d6850 commit b426d75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tss2-rc/tss2_rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ tss2_fmt1_err_strs_get(TSS2_RC error)
"curve not supported",
/* 0x27 - TPM2_RC_ECC_POINT */
"point is not on the required curve",
/* 0x28 - TPM2_RC_FW_LIMITED */
"the command requires the firmware secret but the firmware secret is unavailable",
/* 0x29 - TPM2_RC_SVN_LIMITED */
"the command requires the firmware SVN secret but the firmware SVN secret is unavailable"
};

if (error < ARRAY_LEN(fmt1_err_strs)) {
Expand Down

0 comments on commit b426d75

Please sign in to comment.