Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "tpm2_ptool verify --sopin" without "--userpin"
When using option `--sopin` in `tpm2_ptool verify`, `usersealauth` is not initialized but is being used. In practise, the value in `verify_output['wrappingkey']['auth']` is the same as the one in `verify_output['pin']['user']`, so make sure this is set only when the user PIN is really used. Fixes: tpm2-software#624 Signed-off-by: Nicolas Iooss <nicolas.iooss@ledger.fr>
- Loading branch information