added the CKR_DEVICE_REMOVED return code
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@907 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
0b9c44172d
commit
d944d91714
|
@ -59,6 +59,8 @@ CK_RV sc_to_cryptoki_error(int rc, int reader)
|
||||||
return CKR_PIN_LEN_RANGE;
|
return CKR_PIN_LEN_RANGE;
|
||||||
case SC_ERROR_KEYPAD_CANCELLED:
|
case SC_ERROR_KEYPAD_CANCELLED:
|
||||||
return CKR_FUNCTION_CANCELED;
|
return CKR_FUNCTION_CANCELED;
|
||||||
|
case SC_ERROR_CARD_REMOVED:
|
||||||
|
return CKR_DEVICE_REMOVED;
|
||||||
}
|
}
|
||||||
return CKR_GENERAL_ERROR;
|
return CKR_GENERAL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue