added: opensc SC_ERROR_KEYPAD_CANCELLED -> pkcs11 CKR_FUNCTION_CANCELED

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@890 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
sth 2003-01-31 12:50:26 +00:00
parent 7dab6baeee
commit f6a343712e
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ CK_RV sc_to_cryptoki_error(int rc, int reader)
return CKR_DATA_LEN_RANGE;
case SC_ERROR_INVALID_PIN_LENGTH:
return CKR_PIN_LEN_RANGE;
case SC_ERROR_KEYPAD_CANCELLED:
return CKR_FUNCTION_CANCELED;
}
return CKR_GENERAL_ERROR;
}