mirror of
https://github.com/miekg/dns.git
synced 2025-10-15 20:01:00 +02:00
nsec type list must be uint16
This commit is contained in:
parent
44999ab9e7
commit
15fedf72e7
1
install
1
install
@ -3,5 +3,4 @@
|
||||
# small wrapper to easy installment
|
||||
|
||||
make
|
||||
make -C dnssec install
|
||||
make -C resolver install
|
||||
|
1
tsig.go
1
tsig.go
@ -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)
|
||||
|
8
types.go
8
types.go
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user