added error code CKR_PIN_INVALID

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@932 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
sth 2003-02-26 07:27:42 +00:00
parent 5c1ae16ac8
commit 9fe5baa4b7

View File

@ -63,6 +63,8 @@ CK_RV sc_to_cryptoki_error(int rc, int reader)
return CKR_DEVICE_REMOVED; return CKR_DEVICE_REMOVED;
case SC_ERROR_SECURITY_STATUS_NOT_SATISFIED: case SC_ERROR_SECURITY_STATUS_NOT_SATISFIED:
return CKR_USER_NOT_LOGGED_IN; return CKR_USER_NOT_LOGGED_IN;
case SC_ERROR_KEYPAD_PIN_MISMATCH:
return CKR_PIN_INVALID;
} }
return CKR_GENERAL_ERROR; return CKR_GENERAL_ERROR;
} }