1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-14 00:12:06 +01:00
This commit is contained in:
Paul Schaub 2022-01-04 17:53:37 +01:00
parent 4855f8063e
commit 09026f56b0

View file

@ -584,7 +584,9 @@ public final class SignatureSubpacketsUtil {
if (type == SignatureSubpacket.revocationKey) {
// RevocationKey subpackets are not castable for some reason
// We need to manually construct the new object
// 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());
}