pkcs11-tool: to be compiled without OpenSSL

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4136 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
viktor.tarasov 2010-03-18 10:49:53 +00:00
parent 0c9b9f21a8
commit 42b90f8ada
1 changed files with 2 additions and 0 deletions

View File

@ -1486,7 +1486,9 @@ static int write_object(CK_SLOT_ID slot, CK_SESSION_HANDLE session)
if (opt_object_class == CKO_PUBLIC_KEY) {
CK_OBJECT_CLASS clazz = CKO_PUBLIC_KEY;
CK_KEY_TYPE type = CKK_RSA;
#ifdef ENABLE_OPENSSL
CK_ULONG modulus_bits = rsa.modulus_len * 8;
#endif
FILL_ATTR(pubkey_templ[0], CKA_CLASS, &clazz, sizeof(clazz));
FILL_ATTR(pubkey_templ[1], CKA_KEY_TYPE, &type, sizeof(type));