mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
open R/O instead of R/W session for using keys
This commit is contained in:
parent
32a58564f5
commit
d4e78eb35c
@ -634,7 +634,7 @@ EVP_PKEY *pki_scard::decryptKey() const
|
||||
key_id = QString("slot_%1-label_%2").arg(slot_id).arg(slot_label);
|
||||
|
||||
pkcs11 p11;
|
||||
p11.startSession(slot_id, true);
|
||||
p11.startSession(slot_id);
|
||||
pin = p11.tokenLogin(card_label, false);
|
||||
if (pin.isNull())
|
||||
throw errorEx(tr("Invalid Pin for the token"));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user