mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-01-10 20:27:58 +01:00
Remove workaround for BC not properly parsing RevocationKey subpacket
This commit is contained in:
parent
d0544e690e
commit
5f65ca4437
1 changed files with 0 additions and 9 deletions
|
@ -596,15 +596,6 @@ public final class SignatureSubpacketsUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
org.bouncycastle.bcpg.SignatureSubpacket last = allPackets[allPackets.length - 1];
|
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;
|
return (P) last;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue