Fix: allow keypair generation of keys other then the default length (Victor Tarasov)

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1602 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
sth 2003-11-12 18:28:03 +00:00
parent 2e898942c0
commit dfba889fba
1 changed files with 2 additions and 0 deletions

View File

@ -226,6 +226,8 @@ CK_RV attr_extract(CK_ATTRIBUTE_PTR pAttr, void *ptr, size_t *sizep)
size = sizeof(CK_BBOOL); break;
case CKA_CERTIFICATE_TYPE:
size = sizeof(CKA_CERTIFICATE_TYPE); break;
case CKA_MODULUS_BITS:
size = sizeof(CK_ULONG); break;
default:
return CKR_FUNCTION_FAILED;
}