Commit 4594a393 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Exclude card keys from encryption certificates for Key Management key

... because for card keys we do not have the secret key available for
import to a card

GnuPG-bug-id: 4794
parent b9c4e3bf
Pipeline #37429 passed with stage
in 30 minutes and 53 seconds
......@@ -290,7 +290,8 @@ static std::vector<Key> getEncryptionCertificates()
return ! (key.protocol() == GpgME::CMS &&
!key.subkey(0).isNull() &&
key.subkey(0).canEncrypt() &&
key.subkey(0).isSecret());
key.subkey(0).isSecret() &&
!key.subkey(0).isCardKey());
});
encryptionCertificates.erase(it, encryptionCertificates.end());
return encryptionCertificates;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment