Merge branch 'master' into must-staple
This commit is contained in:
commit
d9fdfac666
|
|
@ -99,6 +99,14 @@ func (mock *MockDNSResolver) LookupCAA(_ context.Context, domain string) ([]*dns
|
|||
fallthrough
|
||||
case "servfail.com":
|
||||
return results, fmt.Errorf("SERVFAIL")
|
||||
case "multi-crit-present.com":
|
||||
record.Flag = 1
|
||||
record.Tag = "issue"
|
||||
record.Value = "symantec.com"
|
||||
results = append(results, &record)
|
||||
secondRecord := record
|
||||
secondRecord.Value = "letsencrypt.org"
|
||||
results = append(results, &secondRecord)
|
||||
}
|
||||
return results, nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -658,9 +658,6 @@ func (va *ValidationAuthorityImpl) checkCAARecords(ctx context.Context, identifi
|
|||
if caa.Value == va.IssuerDomain {
|
||||
valid = true
|
||||
return
|
||||
} else if caa.Flag > 0 {
|
||||
valid = false
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -679,6 +679,8 @@ func TestCAAChecking(t *testing.T) {
|
|||
CAATest{"example.co.uk", false, true},
|
||||
// Good (present)
|
||||
CAATest{"present.com", true, true},
|
||||
// Good (multiple critical, one matching)
|
||||
CAATest{"multi-crit-present.com", true, true},
|
||||
}
|
||||
|
||||
stats, _ := statsd.NewNoopClient()
|
||||
|
|
|
|||
Loading…
Reference in New Issue