From b5f63391d9f52c64ec1d34feea1f3f612f9d855b Mon Sep 17 00:00:00 2001 From: G1gg1L3s Date: Sat, 17 Feb 2024 15:54:14 +0200 Subject: [PATCH] apdu: Add ReferenceDataNotFoundError SW --- src/apdu.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/apdu.rs b/src/apdu.rs index d8942a32..faa5f92b 100644 --- a/src/apdu.rs +++ b/src/apdu.rs @@ -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 // @@ -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, @@ -462,6 +466,7 @@ impl From for StatusWords { 0x6a80 => StatusWords::IncorrectParamError, 0x6a82 => StatusWords::NotFoundError, 0x6a84 => StatusWords::NoSpaceError, + 0x6a88 => StatusWords::ReferenceDataNotFoundError, 0x6b00 => StatusWords::IncorrectSlotError, 0x6d00 => StatusWords::NotSupportedError, 0x6f00 => StatusWords::CommandAbortedError,