Skip to content

Commit 7e9e039

Browse files
authored
Make Issuer Key ID subpacket non-critical (#175)
Fix signature verification in RPM versions prior to 4.17.
1 parent 3fbb1f1 commit 7e9e039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openpgp/packet/signature.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ func (sig *Signature) buildSubpackets(issuer PublicKey) (subpackets []outputSubp
904904
if sig.IssuerKeyId != nil && sig.Version == 4 {
905905
keyId := make([]byte, 8)
906906
binary.BigEndian.PutUint64(keyId, *sig.IssuerKeyId)
907-
subpackets = append(subpackets, outputSubpacket{true, issuerSubpacket, true, keyId})
907+
subpackets = append(subpackets, outputSubpacket{true, issuerSubpacket, false, keyId})
908908
}
909909
if sig.IssuerFingerprint != nil {
910910
contents := append([]uint8{uint8(issuer.Version)}, sig.IssuerFingerprint...)

0 commit comments

Comments
 (0)