mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Be more verbose in case of signature check failures (#361)
* Simplify handling of signature keys. Be more verbose in case of signature check failures. * Fixed check for having no OpenPGP loaded
This commit is contained in:
parent
f32fba683d
commit
c263391821
2 changed files with 17 additions and 20 deletions
|
|
@ -301,7 +301,8 @@ func (r *publicPGPKeyReporter) report(p *processor, domain *Domain) {
|
|||
return
|
||||
}
|
||||
req.Messages = p.badPGPs
|
||||
if len(p.keys) > 0 {
|
||||
req.message(InfoType, fmt.Sprintf("%d public OpenPGP key(s) loaded.", len(p.keys)))
|
||||
if p.keys != nil {
|
||||
req.message(InfoType, fmt.Sprintf("%d public OpenPGP key(s) loaded.",
|
||||
p.keys.CountEntities()))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue