]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
RKEY is missing algorithm field 7615/head
authorLeo Vdw <48684914+DNS-Leo@users.noreply.github.com>
Thu, 21 Mar 2019 22:01:12 +0000 (23:01 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Mar 2019 22:01:12 +0000 (23:01 +0100)
This RR type is missing a data field.
draft-reid-dnsext-rkey-00 defines the data as flags (0) / protocol (1) / algorithm / key, and for these last two is refering to RFC4034

https://tools.ietf.org/html/draft-reid-dnsext-rkey-00
https://tools.ietf.org/html/rfc4034#section-2.1

pdns/dnsrecords.cc

index d89419e23229f5bb130a627b32975658e89abe13..d1d491d0b1ace121edd7f7ffab801b3a10f55a9b 100644 (file)
@@ -397,6 +397,7 @@ CDNSKEYRecordContent::CDNSKEYRecordContent() {}
 boilerplate_conv(RKEY, 57, 
                  conv.xfr16BitInt(d_flags); 
                  conv.xfr8BitInt(d_protocol); 
+                 conv.xfr8BitInt(d_algorithm); 
                  conv.xfrBlob(d_key);
                  )
 RKEYRecordContent::RKEYRecordContent() {}