while we don't have code to extract a key, tread
extractable keys like non extractable ones. git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1761 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
6e15c2421e
commit
02314bdd7e
@ -107,8 +107,15 @@ int pkcs11_get_rsa_private(PKCS11_KEY * key, EVP_PKEY * pk)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* TBD - extract RSA private key. */
|
/* TBD - extract RSA private key. */
|
||||||
|
/* In the mean time let's use the card anyway */
|
||||||
|
RSA_set_method(rsa, pkcs11_get_rsa_method());
|
||||||
|
rsa->flags |= RSA_FLAG_SIGN_VER;
|
||||||
|
RSA_set_app_data(rsa, key);
|
||||||
|
return 0;
|
||||||
|
/*
|
||||||
PKCS11err(PKCS11_F_PKCS11_GET_KEY, PKCS11_NOT_SUPPORTED);
|
PKCS11err(PKCS11_F_PKCS11_GET_KEY, PKCS11_NOT_SUPPORTED);
|
||||||
return -1;
|
return -1;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
int pkcs11_get_rsa_public(PKCS11_KEY * key, EVP_PKEY * pk)
|
int pkcs11_get_rsa_public(PKCS11_KEY * key, EVP_PKEY * pk)
|
||||||
|
Loading…
Reference in New Issue
Block a user