mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +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
|
var file csaf.AdvisoryFile
|
||||||
|
|
||||||
switch {
|
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 == "":
|
case sha256 == "" && sha512 == "":
|
||||||
p.badROLIEFeed.error("No hash listed on ROLIE feed %s", url)
|
p.badROLIEFeed.error("No hash listed on ROLIE feed %s", url)
|
||||||
case sign == "":
|
case sign == "":
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@
|
||||||
"messages": [
|
"messages": [
|
||||||
{
|
{
|
||||||
"type": 0,
|
"type": 0,
|
||||||
"text": "All checked ROLIE feeds validated fine."
|
"text": "{{.URL}}/white/avendor-advisory-0004.json has no sha512 hash file listed"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@
|
||||||
"messages": [
|
"messages": [
|
||||||
{
|
{
|
||||||
"type": 0,
|
"type": 0,
|
||||||
"text": "All checked ROLIE feeds validated fine."
|
"text": "{{.URL}}/white/avendor-advisory-0004.json has no sha256 hash file listed"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue