mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-22 19:08:00 +01:00
parent
f39d2c5566
commit
74c7b025a0
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,7 @@ class SignatureSubpacketsHelper {
|
|||
fun applyFrom(vector: PGPSignatureSubpacketVector, subpackets: SignatureSubpackets) =
|
||||
subpackets.apply {
|
||||
for (subpacket in vector.toArray()) {
|
||||
val type = SignatureSubpacket.requireFromCode(subpacket.type)
|
||||
val type = SignatureSubpacket.fromCode(subpacket.type)
|
||||
when (type) {
|
||||
SignatureSubpacket.signatureCreationTime,
|
||||
SignatureSubpacket.issuerKeyId,
|
||||
|
@ -134,6 +134,7 @@ class SignatureSubpacketsHelper {
|
|||
SignatureSubpacket.preferredAEADAlgorithms,
|
||||
SignatureSubpacket.attestedCertification ->
|
||||
subpackets.addResidualSubpacket(subpacket)
|
||||
else -> subpackets.addResidualSubpacket(subpacket)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue