1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00
This commit is contained in:
koplas 2025-01-08 08:50:30 +01:00
parent b8a5fa72d5
commit 9275a37a9f

View file

@ -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")
} }