mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-23 03:17:58 +01:00
Do not reject bnacksig signatures when they predate subkey binding date
Fixes #334
This commit is contained in:
parent
faae5c64b1
commit
c253732ad9
1 changed files with 3 additions and 1 deletions
|
@ -375,7 +375,9 @@ public abstract class SignatureValidator {
|
|||
public void verify(PGPSignature signature) throws SignatureValidationException {
|
||||
signatureHasHashedCreationTime().verify(signature);
|
||||
signatureDoesNotPredateSigningKey(creator).verify(signature);
|
||||
signatureDoesNotPredateSigningKeyBindingDate(creator).verify(signature);
|
||||
if (signature.getSignatureType() != SignatureType.PRIMARYKEY_BINDING.getCode()) {
|
||||
signatureDoesNotPredateSigningKeyBindingDate(creator).verify(signature);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue