framework-pkcs15: Do not populate the unwrap capability, because the corresponding function C_UnwrapKey isn't implemented.
http://www.opensc-project.org/opensc/browser/trunk/src/pkcs11/pkcs11-object.c?rev=4885#L969 git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4886 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
fd11c909bd
commit
636b0c1d27
|
@ -3053,8 +3053,9 @@ static int register_gost_mechanisms(struct sc_pkcs11_card *p11card, int flags)
|
||||||
sc_pkcs11_mechanism_type_t *mt;
|
sc_pkcs11_mechanism_type_t *mt;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
mech_info.flags = CKF_HW | CKF_SIGN | CKF_UNWRAP | CKF_DECRYPT;
|
mech_info.flags = CKF_HW | CKF_SIGN | CKF_DECRYPT;
|
||||||
#ifdef ENABLE_OPENSSL
|
#ifdef ENABLE_OPENSSL
|
||||||
|
/* That practise definitely conflicts with CKF_HW -- andre 2010-11-28 */
|
||||||
mech_info.flags |= CKF_VERIFY;
|
mech_info.flags |= CKF_VERIFY;
|
||||||
#endif
|
#endif
|
||||||
mech_info.ulMinKeySize = SC_PKCS15_GOSTR3410_KEYSIZE;
|
mech_info.ulMinKeySize = SC_PKCS15_GOSTR3410_KEYSIZE;
|
||||||
|
@ -3098,8 +3099,9 @@ static int register_mechanisms(struct sc_pkcs11_card *p11card)
|
||||||
/* Register generic mechanisms */
|
/* Register generic mechanisms */
|
||||||
sc_pkcs11_register_generic_mechanisms(p11card);
|
sc_pkcs11_register_generic_mechanisms(p11card);
|
||||||
|
|
||||||
mech_info.flags = CKF_HW | CKF_SIGN | CKF_UNWRAP | CKF_DECRYPT;
|
mech_info.flags = CKF_HW | CKF_SIGN | CKF_DECRYPT;
|
||||||
#ifdef ENABLE_OPENSSL
|
#ifdef ENABLE_OPENSSL
|
||||||
|
/* That practise definitely conflicts with CKF_HW -- andre 2010-11-28 */
|
||||||
mech_info.flags |= CKF_VERIFY;
|
mech_info.flags |= CKF_VERIFY;
|
||||||
#endif
|
#endif
|
||||||
mech_info.ulMinKeySize = ~0;
|
mech_info.ulMinKeySize = ~0;
|
||||||
|
|
Loading…
Reference in New Issue