]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Adds support for reading TSIG text format. 571/head
authorBrian Wellington <bwelling@xbill.org>
Mon, 10 Aug 2020 21:27:44 +0000 (14:27 -0700)
committerBrian Wellington <bwelling@xbill.org>
Mon, 10 Aug 2020 21:27:44 +0000 (14:27 -0700)
commit0cdfab7c1ea9470faf015493a6274f0637789dc8
tree614714f8d46b8f43243c6576bc4a2ce46783a0bb
parentb4e690c4b0a846b67701eeb7107c88765caab9ad
Adds support for reading TSIG text format.

Implements from_text for the TSIG record type, and clean up some other
things.

Fixes the text format to emit fields in the right order; fudge and
time_signed were reversed.  This also matches BIND's output format now.

Add get_uint48() to the tokenizer, so that from_text() can use it.  Add
get_uint48() to the wire parser, and use it in from_wire, for
consistency.

Change dns.tsig.sign() to use rdata.replace() rather than constructing a
new TSIG record manually; this couldn't be done before, because
replace() uses text format for validation.
dns/rdtypes/ANY/TSIG.py
dns/tokenizer.py
dns/tsig.py
dns/wire.py
tests/test_tokenizer.py
tests/test_tsig.py