mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Add check for missing either sha256 or sha512 hashes only
This commit is contained in:
parent
9275a37a9f
commit
b6721e1d5a
3 changed files with 6 additions and 2 deletions
|
|
@ -584,6 +584,10 @@ func (p *processor) rolieFeedEntries(feed string) ([]csaf.AdvisoryFile, error) {
|
|||
var file csaf.AdvisoryFile
|
||||
|
||||
switch {
|
||||
case sha256 == "" && sha512 != "":
|
||||
p.badROLIEFeed.info("%s has no sha256 hash file listed", url)
|
||||
case sha256 != "" && sha512 == "":
|
||||
p.badROLIEFeed.info("%s has no sha512 hash file listed", url)
|
||||
case sha256 == "" && sha512 == "":
|
||||
p.badROLIEFeed.error("No hash listed on ROLIE feed %s", url)
|
||||
case sign == "":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue