p11tool: corrected issue preventing the deletion of objects in batch mode
Previously initialization of PIN callbacks would only happen during listing of objects, which happened only in non-batch mode.
Checklist
-
Code modified for feature -
Test suite updated with functionality tests
Reviewer's checklist:
-
There is a test suite reasonably covering new functionality or modifications -
Function naming, parameters, return values, types, etc., are consistent and according to CONTRIBUTION.md
-
This feature/change has adequate documentation added -
No obvious mistakes in the code