Skip to content

Commit

Permalink
Check cross-signature details when signing/certifying
Browse files Browse the repository at this point in the history
  • Loading branch information
twiss committed Jan 15, 2025
1 parent 1bcd185 commit 118cc34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openpgp/v2/subkeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ func (s *Subkey) LatestValidBindingSignature(date time.Time, config *packet.Conf
if err == nil {
err = checkSignatureDetails(s.Primary.PrimaryKey, sig.Packet, date, config)
}
if err == nil && (sig.Packet.FlagCertify || sig.Packet.FlagSign || sig.Packet.FlagAuthenticate) {
err = checkSignatureDetails(s.PublicKey, sig.Packet.EmbeddedSignature, date, config)
}
valid := err == nil
sig.Valid = &valid
}
Expand Down

0 comments on commit 118cc34

Please sign in to comment.