mirror of
https://github.com/miekg/dns.git
synced 2025-12-10 14:21:02 +01:00
loose the dns. prefix
This commit is contained in:
parent
e7def2e94e
commit
8fbcb3e408
@ -72,7 +72,7 @@ func (k *RR_DNSKEY) KeyTag() uint16 {
|
|||||||
keywire.Protocol = k.Protocol
|
keywire.Protocol = k.Protocol
|
||||||
keywire.Algorithm = k.Algorithm
|
keywire.Algorithm = k.Algorithm
|
||||||
keywire.PublicKey = k.PublicKey
|
keywire.PublicKey = k.PublicKey
|
||||||
wire := make([]byte, dns.DefaultMsgSize)
|
wire := make([]byte, DefaultMsgSize)
|
||||||
n, ok := packStruct(keywire, wire, 0)
|
n, ok := packStruct(keywire, wire, 0)
|
||||||
if !ok {
|
if !ok {
|
||||||
return 0
|
return 0
|
||||||
@ -106,7 +106,7 @@ func (k *RR_DNSKEY) ToDS(h int) *RR_DS {
|
|||||||
keywire.Protocol = k.Protocol
|
keywire.Protocol = k.Protocol
|
||||||
keywire.Algorithm = k.Algorithm
|
keywire.Algorithm = k.Algorithm
|
||||||
keywire.PublicKey = k.PublicKey
|
keywire.PublicKey = k.PublicKey
|
||||||
wire := make([]byte, dns.DefaultMsgSize)
|
wire := make([]byte, DefaultMsgSize)
|
||||||
n, ok := packStruct(keywire, wire, 0)
|
n, ok := packStruct(keywire, wire, 0)
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user