mirror of
https://github.com/miekg/dns.git
synced 2025-12-16 17:21:17 +01:00
fix up the rest
This commit is contained in:
parent
19edd05274
commit
42660c2a8e
3
dns.go
3
dns.go
@ -93,6 +93,9 @@ func (h *RR_Header) String() string {
|
|||||||
|
|
||||||
// Or expose the pack/unpack functions??
|
// 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.
|
// Return the wiredata of rdata portion of a RR.
|
||||||
func WireRdata(r RR) ([]byte, bool) {
|
func WireRdata(r RR) ([]byte, bool) {
|
||||||
buf := make([]byte, 4096) // Too large, need to FIX TODO(mg)
|
buf := make([]byte, 4096) // Too large, need to FIX TODO(mg)
|
||||||
|
|||||||
@ -28,7 +28,7 @@ func TestResolverTsig(t *testing.T) {
|
|||||||
tsig.Hdr.Rrtype = dns.TypeTSIG
|
tsig.Hdr.Rrtype = dns.TypeTSIG
|
||||||
tsig.Hdr.Class = dns.ClassANY
|
tsig.Hdr.Class = dns.ClassANY
|
||||||
tsig.Hdr.Ttl = 0
|
tsig.Hdr.Ttl = 0
|
||||||
tsig.GenerateMAC(m, "geheim")
|
tsig.Generate(m, "geheim")
|
||||||
// Add it to the msg
|
// Add it to the msg
|
||||||
m.Extra[0] = tsig
|
m.Extra[0] = tsig
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user