mirror of
https://github.com/miekg/dns.git
synced 2025-10-13 19:01:01 +02:00
Rename Proof to VerifyNameError
This commit is contained in:
parent
8c9af25e1f
commit
0c252cfd17
12
nsecx.go
12
nsecx.go
@ -112,10 +112,10 @@ func (rr *NSEC3) Match(name string) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// Proof takes a slice of NSEC or NSEC3 RR, the qname and the qtype and tries
|
// VerifyNameError takes a slice of NSEC or NSEC3 RR, the qname and the qtype and tries
|
||||||
// to proof the authenticated denial of existence. If nil is returned the proof
|
// to proof the authenticated denial of existence. If nil is returned the proof
|
||||||
// succeeded otherwise the error will indicated what was wrong.
|
// succeeded otherwise the error will indicated what was wrong.
|
||||||
func Proof(nsecx []RR, qname string, qtype uint16) error {
|
func VerifyNameError(nsecx []RR, qname string, qtype uint16) error {
|
||||||
// TODO(miek): wildcard expanded reply
|
// TODO(miek): wildcard expanded reply
|
||||||
nsec3 := 0
|
nsec3 := 0
|
||||||
nsec := 0
|
nsec := 0
|
||||||
@ -128,16 +128,16 @@ func Proof(nsecx []RR, qname string, qtype uint16) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if nsec3 == len(nsecx) {
|
if nsec3 == len(nsecx) {
|
||||||
return proofNSEC3(nsecx, qname, qtype)
|
return verifyNameError3(nsecx, qname, qtype)
|
||||||
}
|
}
|
||||||
if nsec == len(nsecx) {
|
if nsec == len(nsecx) {
|
||||||
return proofNSEC(nsecx, qname, qtype)
|
return verifyNameError(nsecx, qname, qtype)
|
||||||
}
|
}
|
||||||
return ErrSig // ErrNotRRset?
|
return ErrSig // ErrNotRRset?
|
||||||
}
|
}
|
||||||
|
|
||||||
// NSEC3 Helper
|
// NSEC3 Helper
|
||||||
func proofNSEC3(nsec3 []RR, qname string, qtype uint16) error {
|
func verifyNameError3(nsec3 []RR, qname string, qtype uint16) error {
|
||||||
indx := Split(qname)
|
indx := Split(qname)
|
||||||
ce := "" // Closest Encloser
|
ce := "" // Closest Encloser
|
||||||
nc := "" // Next Closer
|
nc := "" // Next Closer
|
||||||
@ -176,4 +176,4 @@ ClosestEncloser:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// NSEC Helper
|
// NSEC Helper
|
||||||
func proofNSEC(nsecx []RR, qname string, qtype uint16) error { return nil }
|
func verifyNameError(nsecx []RR, qname string, qtype uint16) error { return nil }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user