mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 00:18:51 -05:00
Don't use revoked keys
Check if keys are revoked when getting usable encryption keys. Only use keys which are not expired and not revoked.
This commit is contained in:
parent
7f46c40eb8
commit
f6d525da82
@ -137,7 +137,7 @@ public class PgpKeyHelper {
|
|||||||
PGPPublicKey masterKey = null;
|
PGPPublicKey masterKey = null;
|
||||||
for (int i = 0; i < encryptKeys.size(); ++i) {
|
for (int i = 0; i < encryptKeys.size(); ++i) {
|
||||||
PGPPublicKey key = encryptKeys.get(i);
|
PGPPublicKey key = encryptKeys.get(i);
|
||||||
if (!isExpired(key)) {
|
if (!isExpired(key) && !key.isRevoked()) {
|
||||||
if (key.isMasterKey()) {
|
if (key.isMasterKey()) {
|
||||||
masterKey = key;
|
masterKey = key;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user