Skip to content

Commit

Permalink
Revert "fapi: fix tests with policy and auth value."
Browse files Browse the repository at this point in the history
fapi now encrypts tpm2b parameters for objects with policy authorization
in a second session. Thus the related tests which did not work because
parameter encryption was done by the policy session now work again.

This reverts commit 7cb3fdf.

Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT committed Aug 15, 2023
1 parent c949591 commit 3d84784
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion test/integration/fapi/fapi-nv-write-read-policy-or.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ POLICY_NV_DATA=$TEMP_DIR/pol_nv_read_write.json
POLICY_NV=/policy/nv_read_write
LOG_FILE=$TEMP_DIR/log.file
touch $LOG_FILE
PW=""
PW=abc

tss2 provision

Expand Down
7 changes: 0 additions & 7 deletions test/integration/fapi/fapi-nv-write-read-policy-or2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,8 @@ LOG_FILE=$TEMP_DIR/log.file
touch $LOG_FILE
PW=abc

#
# Test will be temporally skipped because policy password does not make
# sense because password is allways needed for paramter encryption.
# The test has to be adapted to a better use case.
#
tss2 provision

skip_test

echo test > $DATA_WRITE_FILE

tss2 import -i $POLICY_PWD_NV_DATA -p $POLICY_PWD_NV
Expand Down

0 comments on commit 3d84784

Please sign in to comment.