rev180: Replace handle with HierarchyNormalizeHandle(handle)

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2024-02-27 11:20:31 -05:00 committed by Stefan Berger
parent 44f0cb0535
commit f9e52bd044

View File

@ -240,7 +240,7 @@ EntityGetAuthValue(TPMI_DH_ENTITY handle, // IN: handle of entity
{
case TPM_HT_PERMANENT:
{
switch(handle)
switch(HierarchyNormalizeHandle(handle))
{
case TPM_RH_OWNER:
// ownerAuth for TPM_RH_OWNER
@ -347,7 +347,7 @@ EntityGetAuthPolicy(TPMI_DH_ENTITY handle, // IN: handle of entity
switch(HandleGetType(handle))
{
case TPM_HT_PERMANENT:
switch(handle)
switch(HierarchyNormalizeHandle(handle))
{
case TPM_RH_OWNER:
// ownerPolicy for TPM_RH_OWNER