mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-24 06:25:50 +00:00
Let hard revocations apply at any time
This commit is contained in:
parent
4026e24585
commit
ebfb5b1085
@ -281,6 +281,13 @@ export async function isDataRevoked(primaryKey, signatureType, dataToVerify, rev
|
||||
// `verifyAllCertifications`.)
|
||||
!signature || revocationSignature.issuerKeyID.equals(signature.issuerKeyID)
|
||||
) {
|
||||
if (![
|
||||
enums.reasonForRevocation.keyRetired,
|
||||
enums.reasonForRevocation.keySuperseded,
|
||||
enums.reasonForRevocation.userIDInvalid
|
||||
].includes(revocationSignature.reasonForRevocationFlag)) {
|
||||
date = null; // Hard revocations apply at any time.
|
||||
}
|
||||
await revocationSignature.verify(
|
||||
key, signatureType, dataToVerify, date, false, config
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user