mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
parent
cb291bb81b
commit
091854a248
1 changed files with 0 additions and 3 deletions
|
|
@ -253,12 +253,10 @@ func (p *processor) run(domains []string) (*Report, error) {
|
||||||
if !p.checkProviderMetadata(d) {
|
if !p.checkProviderMetadata(d) {
|
||||||
// We cannot build a report if the provider metadata cannot be parsed.
|
// We cannot build a report if the provider metadata cannot be parsed.
|
||||||
log.Printf("Could not parse the Provider-Metadata.json of: %s\n", d)
|
log.Printf("Could not parse the Provider-Metadata.json of: %s\n", d)
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
if err := p.checkDomain(d); err != nil {
|
if err := p.checkDomain(d); err != nil {
|
||||||
log.Printf("Failed to find valid provider-metadata.json for domain %s: %v. "+
|
log.Printf("Failed to find valid provider-metadata.json for domain %s: %v. "+
|
||||||
"Continuing with next domain.", d, err)
|
"Continuing with next domain.", d, err)
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
domain := &Domain{Name: d}
|
domain := &Domain{Name: d}
|
||||||
|
|
||||||
|
|
@ -1431,7 +1429,6 @@ func (p *processor) checkDNS(domain string) {
|
||||||
// checkWellknown checks if the provider-metadata.json file is
|
// checkWellknown checks if the provider-metadata.json file is
|
||||||
// available under the /.well-known/csaf/ directory.
|
// available under the /.well-known/csaf/ directory.
|
||||||
func (p *processor) checkWellknown(domain string) {
|
func (p *processor) checkWellknown(domain string) {
|
||||||
|
|
||||||
p.badWellknownMetadata.use()
|
p.badWellknownMetadata.use()
|
||||||
client := p.httpClient()
|
client := p.httpClient()
|
||||||
path := "https://" + domain + "/.well-known/csaf/provider-metadata.json"
|
path := "https://" + domain + "/.well-known/csaf/provider-metadata.json"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue