added p11 error CKR_PIN_LOCKED

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@905 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
sth 2003-02-11 10:38:43 +00:00
parent 23d686576e
commit 7dcf350d7b
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ CK_RV sc_to_cryptoki_error(int rc, int reader)
return CKR_HOST_MEMORY;
case SC_ERROR_PIN_CODE_INCORRECT:
return CKR_PIN_INCORRECT;
case SC_ERROR_AUTH_METHOD_BLOCKED:
return CKR_PIN_LOCKED;
case SC_ERROR_BUFFER_TOO_SMALL:
return CKR_BUFFER_TOO_SMALL;
case SC_ERROR_CARD_NOT_PRESENT: