tpm2-pytss icon indicating copy to clipboard operation
tpm2-pytss copied to clipboard

nv_create return code

Open terilenard opened this issue 9 months ago • 2 comments

Currently, nv_create in fapi does not return a value, only verifies the return code. It is possible to have the function extended to return the code, similarly as create_key in fapi?

terilenard avatar May 08 '24 13:05 terilenard

Just so I understand, you want it to return True or False depending on if the path already exists if exists_ok=True is passed to the function?

whooo avatar May 08 '24 13:05 whooo

Just so I understand, you want it to return True or False depending on if the path already exists if exists_ok=True is passed to the function?

That can work, similar as it is done in other functions :)

terilenard avatar May 08 '24 13:05 terilenard

Added in https://github.com/tpm2-software/tpm2-pytss/pull/578 If possible, please test the PR so I'm sure it solves your issues

whooo avatar Jun 01 '24 11:06 whooo