mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-01-09 19:57:57 +01:00
Fix accidental verification of thirdparty user-id revocations using primary key
This commit is contained in:
parent
fc65bb4496
commit
f1f7dec8b6
1 changed files with 5 additions and 0 deletions
|
@ -169,6 +169,11 @@ public final class SignaturePicker {
|
||||||
|
|
||||||
PGPSignature latestUserIdRevocation = null;
|
PGPSignature latestUserIdRevocation = null;
|
||||||
for (PGPSignature signature : signatures) {
|
for (PGPSignature signature : signatures) {
|
||||||
|
PGPPublicKey signer = keyRing.getPublicKey(signature.getKeyID());
|
||||||
|
if (signer == null) {
|
||||||
|
// Signature made by external key. Skip.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
SignatureVerifier.verifyUserIdRevocation(userId, signature, primaryKey, policy, validationDate);
|
SignatureVerifier.verifyUserIdRevocation(userId, signature, primaryKey, policy, validationDate);
|
||||||
} catch (SignatureValidationException e) {
|
} catch (SignatureValidationException e) {
|
||||||
|
|
Loading…
Reference in a new issue