removed unused variable
This commit is contained in:
parent
fbc9ff84bc
commit
3042a39705
|
@ -5072,7 +5072,6 @@ register_mechanisms(struct sc_pkcs11_card *p11card)
|
|||
/* TODO support other padding mechanisms */
|
||||
|
||||
if (rsa_flags & SC_ALGORITHM_RSA_PAD_PSS) {
|
||||
CK_FLAGS old_flags = mech_info.flags; // PSS is not available for decryption
|
||||
mech_info.flags &= ~(CKF_DECRYPT|CKF_VERIFY);
|
||||
|
||||
mt = sc_pkcs11_new_fw_mechanism(CKM_RSA_PKCS_PSS, &mech_info, CKK_RSA, NULL, NULL);
|
||||
|
@ -5090,7 +5089,6 @@ register_mechanisms(struct sc_pkcs11_card *p11card)
|
|||
if (rc != CKR_OK)
|
||||
return rc;
|
||||
}
|
||||
mech_info.flags = old_flags;
|
||||
}
|
||||
|
||||
if (rsa_flags & SC_ALGORITHM_ONBOARD_KEY_GEN) {
|
||||
|
|
Loading…
Reference in New Issue