mirror of
https://github.com/stefanberger/libtpms
synced 2026-08-11 15:10:21 +00:00
tpm2: Have default case return TPM_RC_VALUE rather than FAIL()
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
9cf21831ba
commit
fce3cafa1a
@ -117,14 +117,18 @@ EntityGetLoadStatus(
|
||||
case TPM_RH_LOCKOUT:
|
||||
break;
|
||||
default:
|
||||
// handling of the manufacture_specific handles
|
||||
// If the implementation has a manufacturer-specific value
|
||||
// then test for it here. Since this implementation does
|
||||
// not have any, this implementation returns the same failure
|
||||
// that unmarshaling of a bad handle would produce.
|
||||
if(((TPM_RH)handle >= TPM_RH_AUTH_00)
|
||||
&& ((TPM_RH)handle <= TPM_RH_AUTH_FF))
|
||||
// use the value that would have been returned from
|
||||
// unmarshaling if it did the handle filtering
|
||||
// if the implementation has a manufacturer-specific value
|
||||
result = TPM_RC_VALUE;
|
||||
else
|
||||
FAIL(FATAL_ERROR_INTERNAL);
|
||||
// The handle is in the range of reserved handles but is
|
||||
// not implemented in this TPM.
|
||||
result = TPM_RC_VALUE;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user