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:
sth 2003-02-12 14:20:53 +00:00
parent 0b9c44172d
commit d944d91714
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@ CK_RV sc_to_cryptoki_error(int rc, int reader)
return CKR_PIN_LEN_RANGE;
case SC_ERROR_KEYPAD_CANCELLED:
return CKR_FUNCTION_CANCELED;
case SC_ERROR_CARD_REMOVED:
return CKR_DEVICE_REMOVED;
}
return CKR_GENERAL_ERROR;
}