fix up the rest

This commit is contained in:
Miek Gieben 2011-01-09 10:34:29 +01:00
parent 19edd05274
commit 42660c2a8e
2 changed files with 4 additions and 1 deletions

3
dns.go
View File

@ -93,6 +93,9 @@ func (h *RR_Header) String() string {
// Or expose the pack/unpack functions??
// These were created for dnssec.go, but now that
// this package is included again in dns, they are
// not really needed
// Return the wiredata of rdata portion of a RR.
func WireRdata(r RR) ([]byte, bool) {
buf := make([]byte, 4096) // Too large, need to FIX TODO(mg)

View File

@ -28,7 +28,7 @@ func TestResolverTsig(t *testing.T) {
tsig.Hdr.Rrtype = dns.TypeTSIG
tsig.Hdr.Class = dns.ClassANY
tsig.Hdr.Ttl = 0
tsig.GenerateMAC(m, "geheim")
tsig.Generate(m, "geheim")
// Add it to the msg
m.Extra[0] = tsig