Skip to content

Commit

Permalink
rev183: Sync ActGetCapabilityData with upstream
Browse files Browse the repository at this point in the history
Since go.preservedSignaled is not available due to __ACT_DISABLED being defined
apply the same conditional code enablement here.

Signed-off-by: Stefan Berger <[email protected]>
  • Loading branch information
stefanberger committed Aug 20, 2024
1 parent 046ee61 commit c63fd3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tpm2/ACT_spt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
}
Expand Down

0 comments on commit c63fd3f

Please sign in to comment.