Prevent changing the default PIN to itself

Closes str4d/age-plugin-yubikey#120.
This commit is contained in:
Jack Grigg
2023-02-11 02:45:30 +00:00
parent 80e8072624
commit d2132b4ac2
3 changed files with 24 additions and 14 deletions
+2
View File
@@ -11,6 +11,8 @@ to 0.3.0 are beta releases.
- When `age-plugin-yubikey` assists the user in changing their PIN from the
default PIN, it no longer tells the user that PINs shorter than 6 characters
are allowed, and instead loops until the user enters a PIN of valid length.
It also now prevents the user from setting their PIN to the default PIN, to
avoid creating a cycle.
- More kinds of SmartCard readers are ignored when they have no SmartCard
inserted.