PC/SC: Add "PIN length not in range" interpretation to PC/SC pinpad code.
This way this condition won't get translated to a generic -1200 error, as 0x6403 is not a known SW. git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5217 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
d59197748c
commit
711cbda2e0
|
@ -1507,6 +1507,9 @@ pcsc_pin_cmd(sc_reader_t *reader, struct sc_pin_cmd_data *data)
|
||||||
case 0x6402: /* PINs don't match */
|
case 0x6402: /* PINs don't match */
|
||||||
r = SC_ERROR_KEYPAD_PIN_MISMATCH;
|
r = SC_ERROR_KEYPAD_PIN_MISMATCH;
|
||||||
break;
|
break;
|
||||||
|
case 0x6403: /* Entered PIN is not in length limits */
|
||||||
|
r = SC_ERROR_INVALID_PIN_LENGTH; /* XXX: designed to be returned when PIN is in API call */
|
||||||
|
break;
|
||||||
case 0x6B80: /* Wrong data in the buffer, rejected by firmware */
|
case 0x6B80: /* Wrong data in the buffer, rejected by firmware */
|
||||||
r = SC_ERROR_READER;
|
r = SC_ERROR_READER;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue