Fix StatusWords::code output for StatusWords::VerifyFailError (#479)
* Fix `StatusWords::code` output for `StatusWords::VerifyFailError` Closes iqlusioninc/yubikey.rs#473. * Refactor `Transaction::transfer_data` to match on `StatusWords` This makes the code more reliable, such that it would have avoided the bug in iqlusioninc/yubikey.rs#473.
This commit is contained in:
@@ -19,6 +19,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
calling `YubiKey::disconnect(pcsc::Disposition::LeaveCard)` if `Reader::open`
|
||||
succeeds).
|
||||
|
||||
### Fixed
|
||||
- `StatusWords::code` now returns the correct code (including embedded `tries`
|
||||
count) for `StatusWords::VerifyFailError`. Previously the returned code lost
|
||||
information and was not round-trip compatible with `StatusWords::from(u16)`.
|
||||
|
||||
## 0.7.0 (2022-11-14)
|
||||
### Added
|
||||
- Display inner PC/SC errors ([#420])
|
||||
|
||||
Reference in New Issue
Block a user