Merge pull request #131 from ogasser/patch-1

Don't use revoked keys
This commit is contained in:
Dominik Schürmann 2013-09-17 14:11:06 -07:00
commit 4c461c1b44

View File

@ -137,7 +137,7 @@ public class PgpKeyHelper {
PGPPublicKey masterKey = null;
for (int i = 0; i < encryptKeys.size(); ++i) {
PGPPublicKey key = encryptKeys.get(i);
if (!isExpired(key)) {
if (!isExpired(key) && !key.isRevoked()) {
if (key.isMasterKey()) {
masterKey = key;
} else {