start with nsec3 proving

This commit is contained in:
Miek Gieben 2011-09-15 20:13:21 +02:00
parent af63a2f45d
commit c5c1a0eecc
1 changed files with 16 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import (
"hash"
"strings"
"crypto/sha1"
"os"
)
type saltWireFmt struct {
@ -57,3 +58,18 @@ func (nsec3 *RR_NSEC3) HashNames() {
nsec3.Header().Name = HashName(nsec3.Header().Name, int(nsec3.Hash), int(nsec3.Iterations), nsec3.Salt)
nsec3.NextDomain = HashName(nsec3.NextDomain, int(nsec3.Hash), int(nsec3.Iterations), nsec3.Salt)
}
// NsecVerify verifies the negative response (NXDOMAIN/NODATA) in
// the message m.
// NsecVerify returns nil when the NSECs in the message contain
// the correct proof. This function does not validates the NSECs
func (m *Msg) NsecVerify(q Question) os.Error {
return nil
}
// Nsec3Verify verifies ...
func (m *Msg) Nsec3Verify(q Question) os.Error {
return nil
}