Skip to content

Commit

Permalink
apdu: Add ReferenceDataNotFoundError SW
Browse files Browse the repository at this point in the history
  • Loading branch information
G1gg1L3s committed Feb 17, 2024
1 parent b07612e commit b5f6339
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/apdu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ pub(crate) enum StatusWords {
/// Not enough memory
NoSpaceError,

/// Referenced data or reference data not found
ReferenceDataNotFoundError,

//
// Custom Yubico Status Word extensions
//
Expand Down Expand Up @@ -428,6 +431,7 @@ impl StatusWords {
StatusWords::IncorrectParamError => 0x6a80,
StatusWords::NotFoundError => 0x6a82,
StatusWords::NoSpaceError => 0x6a84,
StatusWords::ReferenceDataNotFoundError => 0x6a88,
StatusWords::IncorrectSlotError => 0x6b00,
StatusWords::NotSupportedError => 0x6d00,
StatusWords::CommandAbortedError => 0x6f00,
Expand Down Expand Up @@ -462,6 +466,7 @@ impl From<u16> for StatusWords {
0x6a80 => StatusWords::IncorrectParamError,
0x6a82 => StatusWords::NotFoundError,
0x6a84 => StatusWords::NoSpaceError,
0x6a88 => StatusWords::ReferenceDataNotFoundError,
0x6b00 => StatusWords::IncorrectSlotError,
0x6d00 => StatusWords::NotSupportedError,
0x6f00 => StatusWords::CommandAbortedError,
Expand Down

0 comments on commit b5f6339

Please sign in to comment.