rev183: Sync ActGetCapabilityData with upstream

Since go.preservedSignaled is not available due to __ACT_DISABLED being defined
apply the same conditional code enablement here.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2024-01-03 13:36:42 -05:00 committed by Stefan Berger
parent 046ee612ac
commit c63fd3f765

View File

@ -290,6 +290,10 @@ ActGetCapabilityData(TPM_HANDLE actHandle, // IN: the handle for the starti
SET_ATTRIBUTE(actData->attributes, TPMA_ACT, signaled);
else
CLEAR_ATTRIBUTE(actData->attributes, TPMA_ACT, signaled);
#ifndef __ACT_DISABLED // libtpms added
if(go.preservedSignaled & (1 << act))
SET_ATTRIBUTE(actData->attributes, TPMA_ACT, preserveSignaled);
#endif // libtpms added
actList->count++;
}
}