diff options
author | Daniel Salzman <daniel.salzman@nic.cz> | 2020-11-25 13:05:29 +0100 |
---|---|---|
committer | Daniel Salzman <daniel.salzman@nic.cz> | 2020-11-25 13:05:34 +0100 |
commit | 9479c15b01d63321a1d9e7bcd391146501c22a0e (patch) | |
tree | 6c57e6758599a8706ef16918f660b6673fb9eb8a | |
parent | f9cff5d9583aabeb352e07ce5b9c2e112e286b4a (diff) | |
download | dnspython-9479c15b01d63321a1d9e7bcd391146501c22a0e.tar.gz |
TSIG: don't relativize algorithm name
The domain name relativization of TSIG's algorithm name breaks TSIG validation
when using with the Root zone.
Example for algorithm hmac-sha224:
zone 'example.com.' -> hmac-sha224.
zone '.' -> hmac-sha224
-rw-r--r-- | dns/rdtypes/ANY/TSIG.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/rdtypes/ANY/TSIG.py b/dns/rdtypes/ANY/TSIG.py index 5462195..b43a78f 100644 --- a/dns/rdtypes/ANY/TSIG.py +++ b/dns/rdtypes/ANY/TSIG.py @@ -110,7 +110,7 @@ class TSIG(dns.rdata.Rdata): @classmethod def from_wire_parser(cls, rdclass, rdtype, parser, origin=None): - algorithm = parser.get_name(origin) + algorithm = parser.get_name() time_signed = parser.get_uint48() fudge = parser.get_uint16() mac = parser.get_counted_bytes(2) |