Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling of OpenPGP card PIN change and unblock commands
"CHANGE REFERENCE DATA" (PIN change) and "RESET RETRY COUNTER" (PIN unblock) commands in OpenPGP card have various limitations. These also depend on whether the card is version 1.x or 2.x. Provide helpful debug messages for user in case he is trying to do a PIN command in a way that isn't supported by the card. Also, take into account that version 2.x cards don't support references to PW1-mode 2 (82) in these commands - change them to PW1 (81). Signed-off-by: Maciej S. Szmigiero <[email protected]>
- Loading branch information