- 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:
okir 2002-12-09 13:33:39 +00:00
parent 6217b4adf5
commit 5a568eeb75
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}