1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-23 03:17:58 +01:00

Remove workaround for BC not properly parsing RevocationKey subpacket

This commit is contained in:
Paul Schaub 2022-04-07 20:28:45 +02:00
parent d0544e690e
commit 5f65ca4437
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -596,15 +596,6 @@ public final class SignatureSubpacketsUtil {
}
org.bouncycastle.bcpg.SignatureSubpacket last = allPackets[allPackets.length - 1];
if (type == SignatureSubpacket.revocationKey) {
// RevocationKey subpackets are not castable for some reason
// See https://github.com/bcgit/bc-java/pull/1085 for an upstreamed fix
// We need to manually construct the new object for now.
// TODO: Remove workaround when BC 1.71 is released (and has our fix)
return (P) new RevocationKey(last.isCritical(), last.isLongLength(), last.getData());
}
return (P) last;
}