Skip to content

Commit c8d7df2

Browse files
royalsreaferwhooo
authored andcommitted
ESAPI: Add PLATFORM_NV to expected handle types
Added PLATFORM_NV as valid handle to expected handle types for enable in function hierarchy_control. Signed-off-by: RoyalReafer <[email protected]>
1 parent 9ade518 commit c8d7df2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tpm2_pytss/ESAPI.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5227,7 +5227,12 @@ def hierarchy_control(
52275227
_check_handle_type(
52285228
enable,
52295229
"enable",
5230-
expected=(ESYS_TR.ENDORSEMENT, ESYS_TR.OWNER, ESYS_TR.PLATFORM),
5230+
expected=(
5231+
ESYS_TR.ENDORSEMENT,
5232+
ESYS_TR.OWNER,
5233+
ESYS_TR.PLATFORM,
5234+
ESYS_TR.PLATFORM_NV,
5235+
),
52315236
)
52325237
enable = ESAPI._fixup_hierarchy(enable)
52335238

0 commit comments

Comments
 (0)