- translate SC_ERROR_WRONG_LENGTH to CKR_DATA_RANGE
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@759 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
6217b4adf5
commit
5a568eeb75
|
@ -51,6 +51,8 @@ CK_RV sc_to_cryptoki_error(int rc, int reader)
|
|||
return CKR_TOKEN_NOT_PRESENT;
|
||||
case SC_ERROR_INVALID_CARD:
|
||||
return CKR_TOKEN_NOT_RECOGNIZED;
|
||||
case SC_ERROR_WRONG_LENGTH:
|
||||
return CKR_DATA_LEN_RANGE;
|
||||
}
|
||||
return CKR_GENERAL_ERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue