diff options
| author | Daniel Robbins <drobbins@funtoo.org> | 2017-12-21 09:24:40 -0700 |
|---|---|---|
| committer | Tomas Krizek <tomas.krizek@nic.cz> | 2018-07-20 16:24:14 +0200 |
| commit | ce248fd330def7ac3216507daa8e7a3c389e0142 (patch) | |
| tree | caa5e6e5b5a10c9f12098c8287fce6f502bb59fb /dns/tsig.py | |
| parent | de3b5befcfbbbf48e1cd8779998220b2f07fff42 (diff) | |
| download | dnspython-ce248fd330def7ac3216507daa8e7a3c389e0142.tar.gz | |
Update DNSSEC code to use pycryptodome instead of pycrypto. These changes
make dnspython *incompatible* with pycrypto -- pycryptodome must be used.
The ecdsa module continues to be used for ECDSA support.
Diffstat (limited to 'dns/tsig.py')
| -rw-r--r-- | dns/tsig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/tsig.py b/dns/tsig.py index c57d879..fd9d56a 100644 --- a/dns/tsig.py +++ b/dns/tsig.py @@ -19,9 +19,9 @@ import hmac import struct import dns.exception -import dns.hash import dns.rdataclass import dns.name +import dns.dnssec from ._compat import long, string_types, text_type class BadTime(dns.exception.DNSException): @@ -211,7 +211,7 @@ def get_algorithm(algorithm): algorithm = dns.name.from_text(algorithm) try: - return (algorithm.to_digestable(), dns.hash.hashes[_hashes[algorithm]]) + return (algorithm.to_digestable(), dns.dnssec._make_hash(algorithm)) except KeyError: raise NotImplementedError("TSIG algorithm " + str(algorithm) + " is not supported") |
