summaryrefslogtreecommitdiff
path: root/dns/tsig.py
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2016-05-12 14:19:35 -0700
committerBob Halley <halley@dnspython.org>2016-05-12 14:19:35 -0700
commit9f0f20ddea618563b55cf60591cbdbd00c62deb4 (patch)
tree25f9e20835e4fe128949b4ba5146efc1a502d75b /dns/tsig.py
parent5c1a60f269db2ed7356314079253ca06ada758f7 (diff)
downloaddnspython-9f0f20ddea618563b55cf60591cbdbd00c62deb4.tar.gz
Try again to fix TSIG hashes
Diffstat (limited to 'dns/tsig.py')
-rw-r--r--dns/tsig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/tsig.py b/dns/tsig.py
index 931d27d..92ce860 100644
--- a/dns/tsig.py
+++ b/dns/tsig.py
@@ -210,7 +210,7 @@ def get_algorithm(algorithm):
algorithm = dns.name.from_text(algorithm)
try:
- return (algorithm.to_digestable(), _hashes[algorithm])
+ return (algorithm.to_digestable(), dns.hash.hashes[_hashes[algorithm]])
except KeyError:
raise NotImplementedError("TSIG algorithm " + str(algorithm) +
" is not supported")