Skip to content

Commit

Permalink
fix: make issuerKeyID non-critical again
Browse files Browse the repository at this point in the history
closes #263
  • Loading branch information
caarlos0 committed Jan 16, 2025
1 parent d703f49 commit 5090537
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openpgp/packet/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,9 @@ 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})
// XXX: making this critical breaks RPM <=4.16.
// See: https://github.com/ProtonMail/go-crypto/issues/263
subpackets = append(subpackets, outputSubpacket{true, issuerSubpacket, false, keyId})
}
// Notation Data
for _, notation := range sig.Notations {
Expand Down

0 comments on commit 5090537

Please sign in to comment.