Skip to content

Commit

Permalink
Make Issuer Key ID subpacket non-critical (#175)
Browse files Browse the repository at this point in the history
Fix signature verification in RPM versions prior to 4.17.
  • Loading branch information
caarlos0 authored Jun 26, 2023
1 parent 3fbb1f1 commit 7e9e039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openpgp/packet/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ func (sig *Signature) buildSubpackets(issuer PublicKey) (subpackets []outputSubp
if sig.IssuerKeyId != nil && sig.Version == 4 {
keyId := make([]byte, 8)
binary.BigEndian.PutUint64(keyId, *sig.IssuerKeyId)
subpackets = append(subpackets, outputSubpacket{true, issuerSubpacket, true, keyId})
subpackets = append(subpackets, outputSubpacket{true, issuerSubpacket, false, keyId})
}
if sig.IssuerFingerprint != nil {
contents := append([]uint8{uint8(issuer.Version)}, sig.IssuerFingerprint...)
Expand Down

0 comments on commit 7e9e039

Please sign in to comment.