Skip to content

Commit

Permalink
include subpacket only when its not exportable
Browse files Browse the repository at this point in the history
  • Loading branch information
dedekind125 committed Mar 10, 2024
1 parent d4a1092 commit 5eb9b26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openpgp/packet/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -1270,8 +1270,8 @@ func (sig *Signature) buildSubpackets(issuer PublicKey) (subpackets []outputSubp
subpackets = append(subpackets, outputSubpacket{true, featuresSubpacket, false, []byte{features}})
}

if sig.Exportable != nil && *sig.Exportable {
subpackets = append(subpackets, outputSubpacket{true, exportableCertSubpacket, true, []byte{1}})
if sig.Exportable != nil && !*sig.Exportable {
subpackets = append(subpackets, outputSubpacket{true, exportableCertSubpacket, true, []byte{0}})
}

if sig.TrustLevel != 0 {
Expand Down

0 comments on commit 5eb9b26

Please sign in to comment.