- get_mechanism_list now reports correct number of mechanisms

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@719 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2002-11-22 09:07:43 +00:00
parent 4e61af2b57
commit 828819a1ec
1 changed files with 1 additions and 0 deletions

View File

@ -415,6 +415,7 @@ static CK_RV pkcs15_get_mechanism_list(struct sc_pkcs11_card *p11card,
return CKR_BUFFER_TOO_SMALL;
}
memcpy(pMechanismList, &mechanism_list, sizeof(mechanism_list));
*pulCount = numMechanisms;
return CKR_OK;
}