mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
Compare commits
2 commits
d8e903587a
...
9275a37a9f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9275a37a9f | ||
|
|
b8a5fa72d5 |
1 changed files with 5 additions and 3 deletions
|
|
@ -133,7 +133,7 @@ func (d *downloader) httpClient() util.Client {
|
||||||
client := util.Client(&hClient)
|
client := util.Client(&hClient)
|
||||||
|
|
||||||
// Overwrite for testing purposes
|
// Overwrite for testing purposes
|
||||||
if client != nil {
|
if d.client != nil {
|
||||||
client = *d.client
|
client = *d.client
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -514,7 +514,8 @@ nextAdvisory:
|
||||||
url: file.SHA512URL(),
|
url: file.SHA512URL(),
|
||||||
warn: true,
|
warn: true,
|
||||||
hashType: algSha512,
|
hashType: algSha512,
|
||||||
preferred: strings.EqualFold(string(d.cfg.PreferredHash), string(algSha512))})
|
preferred: strings.EqualFold(string(d.cfg.PreferredHash), string(algSha512)),
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
slog.Info("SHA512 not present")
|
slog.Info("SHA512 not present")
|
||||||
}
|
}
|
||||||
|
|
@ -523,7 +524,8 @@ nextAdvisory:
|
||||||
url: file.SHA256URL(),
|
url: file.SHA256URL(),
|
||||||
warn: true,
|
warn: true,
|
||||||
hashType: algSha256,
|
hashType: algSha256,
|
||||||
preferred: strings.EqualFold(string(d.cfg.PreferredHash), string(algSha256))})
|
preferred: strings.EqualFold(string(d.cfg.PreferredHash), string(algSha256)),
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
slog.Info("SHA256 not present")
|
slog.Info("SHA256 not present")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue