nsec type list must be uint16

This commit is contained in:
Miek Gieben 2011-01-09 20:46:21 +01:00
parent 44999ab9e7
commit 15fedf72e7
3 changed files with 15 additions and 13 deletions

View File

@ -3,5 +3,4 @@
# small wrapper to easy installment
make
make -C dnssec install
make -C resolver install

View File

@ -67,6 +67,7 @@ type tsig_generation_fmt struct {
// Generate the HMAC for msg. The TSIG RR is modified
// to include the MAC and MACSize. Note the the msg Id must
// be set, otherwise the MAC is not correct
// secret is encoded in base64 in BIND9
func (rr *RR_TSIG) Generate(msg *Msg, secret string) bool {
buf := make([]byte, 4096) // TODO(mg) bufsize!
tsig := new(tsig_generation_fmt)

View File

@ -412,7 +412,7 @@ func (rr *RR_RRSIG) String() string {
type RR_NSEC struct {
Hdr RR_Header
NextDomain string "domain-name"
TypeBitMap []int "NSEC"
TypeBitMap []uint16 "NSEC"
}
func (rr *RR_NSEC) Header() *RR_Header {
@ -420,7 +420,9 @@ func (rr *RR_NSEC) Header() *RR_Header {
}
func (rr *RR_NSEC) String() string {
return rr.Hdr.String() + "NSEC BLAH"
return rr.Hdr.String() +
" " + rr.NextDomain +
" " + "bitmap"
}
type RR_DS struct {
@ -472,7 +474,7 @@ type RR_NSEC3 struct {
Salt string "hex"
HashLength uint8
NextDomain string "domain-name"
TypeBitMap []int "NSEC3" // &{TypeSOA,TypeDS,etc}
TypeBitMap []uint16 "NSEC"
}
func (rr *RR_NSEC3) Header() *RR_Header {