Merge pull request #61 from axaxs/master

Fixes for zone scanning and signature verification
This commit is contained in:
Miek Gieben 2013-12-04 23:44:47 -08:00
commit 857c4d663c
4 changed files with 4 additions and 1 deletions

View File

@ -5,3 +5,4 @@ CONTRIBUTORS
* Dave Cheney
* Dusty Wilson
* Peter van Dijk
* Alex A Skinner

View File

@ -654,7 +654,7 @@ func rawSignatureData(rrset []RR, s *RRSIG) (buf []byte) {
// NS, MD, MF, CNAME, SOA, MB, MG, MR, PTR,
// HINFO, MINFO, MX, RP, AFSDB, RT, SIG, PX, NXT, NAPTR, KX,
// SRV, DNAME, A6
switch x := r.(type) {
switch x := r1.(type) {
case *NS:
x.Ns = strings.ToLower(x.Ns)
case *CNAME:

1
msg.go
View File

@ -150,6 +150,7 @@ var TypeToString = map[uint16]string{
TypeURI: "URI",
TypeWKS: "WKS",
TypeX25: "X25",
Type65534: "TYPE65534",
}
// Reverse, needed for string parsing.

View File

@ -104,6 +104,7 @@ const (
TypeCAA uint16 = 257
TypeTA uint16 = 32768
TypeDLV uint16 = 32769
Type65534 uint16 = 65534
TypeReserved uint16 = 65535
// valid Question.Qclass