gofmt -w
This commit is contained in:
parent
e6fca0be3f
commit
534433a714
|
@ -30,7 +30,7 @@ func AssertDelegationSigner(m *Msg, trustdb []*RR_DNSKEY) error {
|
||||||
var sig *RR_RRSIG
|
var sig *RR_RRSIG
|
||||||
for _, r := range m.Ns {
|
for _, r := range m.Ns {
|
||||||
if d, ok := r.(*RR_DS); ok {
|
if d, ok := r.(*RR_DS); ok {
|
||||||
dss = append(dss ,d)
|
dss = append(dss, d)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if s, ok := r.(*RR_RRSIG); ok {
|
if s, ok := r.(*RR_RRSIG); ok {
|
||||||
|
@ -50,7 +50,6 @@ func AssertDelegationSigner(m *Msg, trustdb []*RR_DNSKEY) error {
|
||||||
}
|
}
|
||||||
println("SIG found")
|
println("SIG found")
|
||||||
|
|
||||||
|
|
||||||
// Ownername of the DSs should match the qname
|
// Ownername of the DSs should match the qname
|
||||||
if CompareLabels(dss[0].Header().Name, m.Question[0].Name) == 0 {
|
if CompareLabels(dss[0].Header().Name, m.Question[0].Name) == 0 {
|
||||||
// No match
|
// No match
|
||||||
|
@ -60,12 +59,10 @@ func AssertDelegationSigner(m *Msg, trustdb []*RR_DNSKEY) error {
|
||||||
println(dss[0].String())
|
println(dss[0].String())
|
||||||
println(sig.String())
|
println(sig.String())
|
||||||
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Types of answers (without looking the RFCs)
|
// Types of answers (without looking the RFCs)
|
||||||
// len(m.Ns) > 0
|
// len(m.Ns) > 0
|
||||||
// NS records in there? -> delegation (rcode should be rcode.Success)
|
// NS records in there? -> delegation (rcode should be rcode.Success)
|
||||||
|
@ -74,7 +71,6 @@ func AssertDelegationSigner(m *Msg, trustdb []*RR_DNSKEY) error {
|
||||||
// - plain old DNS delegation -> ...
|
// - plain old DNS delegation -> ...
|
||||||
// SOA record in there? -> nxdomain (rcode should be rcode.Nxdomain)
|
// SOA record in there? -> nxdomain (rcode should be rcode.Nxdomain)
|
||||||
|
|
||||||
|
|
||||||
// Lookup does a (secure) DNS lookup. The message m contains
|
// Lookup does a (secure) DNS lookup. The message m contains
|
||||||
// the question to be asked. Lookup returns last packet seen
|
// the question to be asked. Lookup returns last packet seen
|
||||||
// which is either the answer or a packet somewhere in the
|
// which is either the answer or a packet somewhere in the
|
||||||
|
|
Loading…
Reference in New Issue