]> git.ipfire.org Git - thirdparty/pdns.git/commit
SVCB: Correctly parse and print unknown params
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 9 Dec 2020 16:03:53 +0000 (17:03 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 9 Dec 2020 16:03:53 +0000 (17:03 +0100)
commitb1a048a9caa0d14f9e6665c45af004c041fe5c5e
treebf58cadbd851e3c58f132698898a3ff9d23ca87c
parent714a6e19bedc0a89d3760add9fad6512da52cf09
SVCB: Correctly parse and print unknown params

There were multiple issues. With this commit, we *always* store the
bytes that are represented by the option. To do this, we needed to
properly parse RFC 1035 character-strings. This is now done with a
conversion of the ABNF from draft-ietf-dnsop-svcb-https-02 to ragel.

The resulting function could be used as a starting point for a better
TXT storage format.

Fixes #9829
pdns/dnslabeltext.rl
pdns/dnswriter.cc
pdns/misc.hh
pdns/rcpgenerator.cc
pdns/rcpgenerator.hh
pdns/test-dnsrecords_cc.cc
pdns/test-rcpgenerator_cc.cc