Improved U2F APDU Message error handling.

This commit is contained in:
2018-08-10 13:13:38 +00:00
parent 5d1d0ccb63
commit 2ced303d3a
6 changed files with 94 additions and 41 deletions

View File

@@ -9,10 +9,9 @@ enum APDU : uint8_t
enum APDU_STATUS : uint16_t
{
SW_NO_ERROR = 0x9000,
SW_NO_ERROR = 0x9000,
SW_WRONG_DATA = 0x6A80,
SW_CONDITIONS_NOT_SATISFIED = 0x6985,
SW_WRONG_DATA = 0x6A80,
SW_WRONG_LENGTH = 0x6700,
SW_CLA_NOT_SUPPORTED = 0x6E00,
SW_INS_NOT_SUPPORTED = 0x6D00
SW_COMMAND_NOT_ALLOWED = 0x6986,
SW_INS_NOT_SUPPORTED = 0x6D00
};