From 54424a56b790302bc2f9be952e9bb56b0b7c32b2 Mon Sep 17 00:00:00 2001 From: Nicolas Stalder Date: Sat, 16 May 2020 00:29:25 +0200 Subject: [PATCH] PIV is slowly growing. Many intermediate bugs ;) --- src/response/status.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/response/status.rs b/src/response/status.rs index dab5913..c7fafc3 100644 --- a/src/response/status.rs +++ b/src/response/status.rs @@ -33,7 +33,11 @@ pub enum Status { //////////////////////////////// // 64XX: persistent memory unchanged (cf. SW2) + UnspecifiedNonpersistentExecutionError, + // 65XX: persistent memory changed (cf. SW2) + UnspecifiedPersistentExecutionError, + // 66XX: security related issues /////////////////////////////// @@ -83,6 +87,9 @@ impl Into for Status { u16::from_be_bytes([0x63, 0xc0 + x]) } + Self::UnspecifiedNonpersistentExecutionError => 0x6400, + Self::UnspecifiedPersistentExecutionError => 0x6500, + Self::LogicalChannelNotSupported => 0x6881, Self::SecureMessagingNotSupported => 0x6882, Self::CommandChainingNotSupported => 0x6884,